[GH-ISSUE #5355] [Feature]: Move editor section navigation into responsive top bars #2961

Closed
opened 2026-10-21 05:58:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5355

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The Character, Persona, Lorebook, and Preset editors use a dedicated left-side section-navigation rail on desktop. This consumes useful editor width while the existing header row, which already contains the back button, editor name, Save, Delete, and related actions, has substantial unused space.

On mobile, the same section navigation becomes a horizontally scrollable top bar. It is awkward to scan and operate on a narrow touch screen, adds another navigation row, and can place destinations off-screen.

Proposed solution

Scope

Apply this only to these editors:

  • Characters
  • Personas
  • Lorebooks
  • Presets

Preserve each editor's existing section labels, order, active section, and navigation behavior. Depending on the editor, these include sections such as Metadata, Card, Convo, Lorebook, Sprites, Gallery, Colors, Stats or Overview, Entries or Overview, Sections, and Prompts.

Other sidebar editors are out of scope because they do not use this section-navigation pattern.

Desktop

  • Remove the editor's left-side section-navigation rail.
  • Move all section-navigation buttons into the existing editor header row that contains the back arrow, entity name, and editor actions.
  • Keep the section buttons on the same vertical level as the existing header controls, in one horizontal row.
  • Place the navigation between the editor identity area and the action cluster.
  • Preserve a clear active-section state and existing icons or labels where applicable.
  • Adapt button width, padding, gap, and label sizing to the available desktop width so every section remains visible without horizontal scrolling, clipping, or wrapping onto a second row.
  • Switch to the mobile dropdown treatment before compression would make labels illegible or controls inaccessible.

Mobile

  • Remove the horizontally scrollable section-navigation row.
  • Put section navigation in the existing primary editor header, one level above the current mobile section row.
  • Add a touch-friendly dropdown section button immediately to the left of the right-aligned editor action icons.
  • The dropdown initially selects the editor's first section and subsequently displays the currently active section.
  • Selecting an item closes the menu and navigates to that section.
  • Convert Save to an icon-only button, remove the visible “Save” text, and place it with the other right-side action icons.
  • Give the icon-only Save action an accessible name and tooltip. Keep all mobile controls large enough for touch use.

Shared behavior and acceptance criteria

  • Character, Persona, Lorebook, and Preset editors use one consistent responsive navigation pattern.
  • Navigation remains keyboard accessible, has visible focus states, and exposes the selected section to assistive technology.
  • Existing localized section labels are reused rather than duplicated as new static strings.
  • Save, Delete, Back, and other existing header actions retain their behavior.
  • Switching sections or crossing the responsive breakpoint must not discard unsaved editor state or recreate the active editor.
  • Desktop navigation has no horizontal scrollbar at supported desktop widths.
  • Mobile navigation has no separate scrollable tab row.
  • Verify all four editors in desktop and mobile Chromium, including narrow desktop widths, long localized labels, light and dark themes, keyboard navigation, and unsaved changes while resizing across the breakpoint.

Alternatives considered

  • Keep the desktop side rail: rejected because it consumes editor width while the existing header is underused.
  • Keep horizontally scrolling mobile tabs: rejected because destinations can remain off-screen and require unnecessary horizontal exploration.
  • Use the same dense horizontal button row at every width: rejected because mobile needs a standard touch-oriented disclosure control instead of compressed tabs.

Additional context

This should be a presentation-only navigation change. It must not alter editor data models, save semantics, section contents, or section ordering.

Use the existing top-bar, button, dropdown, responsive breakpoint, theme-token, and localization patterns where possible. Prefer a shared, simple navigation treatment across the four editors rather than separate implementations.

Regression reference: #4244 previously tracked unsaved Character and Persona drafts being lost when the responsive layout remounted the editor. This change must preserve the fix.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5355 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The Character, Persona, Lorebook, and Preset editors use a dedicated left-side section-navigation rail on desktop. This consumes useful editor width while the existing header row, which already contains the back button, editor name, Save, Delete, and related actions, has substantial unused space. On mobile, the same section navigation becomes a horizontally scrollable top bar. It is awkward to scan and operate on a narrow touch screen, adds another navigation row, and can place destinations off-screen. ## Proposed solution ### Scope Apply this only to these editors: - Characters - Personas - Lorebooks - Presets Preserve each editor's existing section labels, order, active section, and navigation behavior. Depending on the editor, these include sections such as Metadata, Card, Convo, Lorebook, Sprites, Gallery, Colors, Stats or Overview, Entries or Overview, Sections, and Prompts. Other sidebar editors are out of scope because they do not use this section-navigation pattern. ### Desktop - Remove the editor's left-side section-navigation rail. - Move all section-navigation buttons into the existing editor header row that contains the back arrow, entity name, and editor actions. - Keep the section buttons on the same vertical level as the existing header controls, in one horizontal row. - Place the navigation between the editor identity area and the action cluster. - Preserve a clear active-section state and existing icons or labels where applicable. - Adapt button width, padding, gap, and label sizing to the available desktop width so every section remains visible without horizontal scrolling, clipping, or wrapping onto a second row. - Switch to the mobile dropdown treatment before compression would make labels illegible or controls inaccessible. ### Mobile - Remove the horizontally scrollable section-navigation row. - Put section navigation in the existing primary editor header, one level above the current mobile section row. - Add a touch-friendly dropdown section button immediately to the left of the right-aligned editor action icons. - The dropdown initially selects the editor's first section and subsequently displays the currently active section. - Selecting an item closes the menu and navigates to that section. - Convert Save to an icon-only button, remove the visible “Save” text, and place it with the other right-side action icons. - Give the icon-only Save action an accessible name and tooltip. Keep all mobile controls large enough for touch use. ### Shared behavior and acceptance criteria - Character, Persona, Lorebook, and Preset editors use one consistent responsive navigation pattern. - Navigation remains keyboard accessible, has visible focus states, and exposes the selected section to assistive technology. - Existing localized section labels are reused rather than duplicated as new static strings. - Save, Delete, Back, and other existing header actions retain their behavior. - Switching sections or crossing the responsive breakpoint must not discard unsaved editor state or recreate the active editor. - Desktop navigation has no horizontal scrollbar at supported desktop widths. - Mobile navigation has no separate scrollable tab row. - Verify all four editors in desktop and mobile Chromium, including narrow desktop widths, long localized labels, light and dark themes, keyboard navigation, and unsaved changes while resizing across the breakpoint. ## Alternatives considered - Keep the desktop side rail: rejected because it consumes editor width while the existing header is underused. - Keep horizontally scrolling mobile tabs: rejected because destinations can remain off-screen and require unnecessary horizontal exploration. - Use the same dense horizontal button row at every width: rejected because mobile needs a standard touch-oriented disclosure control instead of compressed tabs. ## Additional context This should be a presentation-only navigation change. It must not alter editor data models, save semantics, section contents, or section ordering. Use the existing top-bar, button, dropdown, responsive breakpoint, theme-token, and localization patterns where possible. Prefer a shared, simple navigation treatment across the four editors rather than separate implementations. Regression reference: #4244 previously tracked unsaved Character and Persona drafts being lost when the responsive layout remounted the editor. This change must preserve the fix. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 21, 2026):

@SpicyMarinara is implementing this in draft PR #5360.

<!-- gh-comment-id:5370134898 --> @SpicyMarinara commented on GitHub (Aug 21, 2026): @SpicyMarinara is implementing this in draft PR #5360.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2961
No description provided.