Repository navigation
feat(content): put the editor's tags on a second line, and keep the side panel's tabs in sight, Rules first - #1347
Merged
Conversation
…ide panel's tabs in sight, Rules first The header's top row keeps the title and the page's actions; the page type, method, status, rules and cited-passages tags move to a line of their own under the title, all of them at any width and lined up (the status badge sat lower in its wrapper). While the side panel is closed, its tabs stay down the editor's right edge and open it on the one picked, so the panel is never out of sight on a window under 1280px, where it starts closed. Rules is the first tab and the panel opens on it; Impact reads when first opened. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk this one is the Content Editor's header and side panel from the feedback round. The tags move to a second line, the closed panel keeps its tabs on the right edge, and Rules is the first tab, which the panel opens on, at the user's request. It overlaps #1346 in en.json and page.test.tsx; whichever lands second I'll merge main into. Export (Word/HTML/Markdown) follows as its own PR on top of #1337, reusing docx. |
This was referenced Oct 22, 2026
gkhngyk
approved these changes
Oct 22, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. One small follow-up.
_draft-editor.tsx:197and_side-panel.tsx:128-130:tabRequestoutlives the panel. The panel's effect runs on every mount and replays the last request. Say you open Sources from the strip, close the panel, then open it from the header icon: it opens on Sources, not Rules. The rules chip on main had the same behaviour, but it was harmless there because the chip always asked for Rules. Fix: clear the request when the panel closes, e.g. a header toggle that callssetTabRequest(null)whenpanelOpenis true. Or have the panel apply a request only once, by remembering thenit last applied.
Impact now reads only when it's opened, which saves two reads per editor load.
Merge notes
- Merges cleanly on main. No migration.
- #1348 contains this PR at its current head (
91959bdc), so this one merges first. - Conflicts with #1346 in
page.test.tsx(the tab name "Live page" against the new tab order). Those notes are on #1346.
Tested on top of main together with #1353, #1347, #1348, #1350 and #1351: web and server tests, tsc, lint and Prettier pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Content Editor feedback (items 4 and 5 of the editor round, plus a follow-up from testing):
<span>wrapper.ec60de19…at 1600px the panel shows. Under 1280px it starts closed, and the only way to open it was the small icon at the top right, so "the panel is missing".EditorPanelRail).getContentImpact/getContentResults, only when it is first opened. This matches Brief and Sources.Overlap with #1346: both touch
en.json,page.test.tsxand the Impact tab's name ("Live page" there). Whichever lands second takes the other's lines; the strip and the tab list read the names fromen.json, so the rename carries over.Related issue
Content Editor feedback round (no issue).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
aeo:content-editor-panelin localStorage). The panel starts closed, the strip shows, and the header's icon opens the panel on Rules.Checked in the browser at 1024px and 375px, light and dark.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn test(2603 tests pass) andyarn build.🤖 Generated with Claude Code