fix: UI review bugs - #414
Conversation
871c3da to
d3b8440
Compare
|
Two actionable issues remain in this PR's exact diff:
|
|
Fixed the modal title contract and limited the manage screen to preview-only CodeMirror assets. Verified with lint, PHPUnit, build, and targeted E2E checks. |
|
One preview regression remains for users who disable syntax highlighting. |
|
Guarded the editor bootstrap so the read-only textarea remains a functional fallback when |
|
Follow-up adversarial re-audit found two remaining issues:
|
|
Resolved both follow-ups. The fallback E2E setup now explicitly establishes table view before using table selectors, and notice ownership compares normalized plugin-root paths with a directory-separator boundary, including a sibling-prefix regression case. The relevant tests, lint, and build pass. |
|
Round 4 found two issues in this PR's own head:
|
…te orphaned Prism wrapper
Download and install |
Integration branch for the admin UI review work. Includes #415 and #422.
Changes
Manage menu structure
Manage_Menu_Assets,Manage_Menu_Bulk_Download,Manage_Menu_Screen_OptionsandSnippet_Type_Counter.ListTable, table navigation and pagination components used by both the snippets table and the cloud tables.Snippet preview modal
Community cloud
Cloud_Snippet, covering every decode path, and rendered as plain text in the card and table views.Admin notices
Admin\Notice_Filterremoves notices that do not originate from the plugin on plugin screens, with a CSS fallback. Gated by thecode_snippets/admin/filter_foreign_noticesfilter, enabled by default.code-snippets-noticeclass so version switch, migration and React notices stay visible.Accessibility and styling
Maintenance
stripTagssimplified, with linear handling of comments, malformed tags and block separation.get_snippets()instead of a direct database query.Model::set_fields()ignores input that is neither an array nor an object.Testing
lint:js,lint:stylesandlint:php.