Skip to content

Clean up leftovers of the removed phone sidebar dialogs #6144

Open

Description

@ThomasK33

Follow-up from the phone sidebar stack (#6106, #6127, #6140). #6140 deleted the phone Stats, Timeline and Artifacts dialogs, but some text still describes them. None of this changes behavior.

  1. These comments mention the deleted dialogs:
    • src/browser/features/RightSidebar/rightSidebarVisibility.ts:6-7
    • src/common/constants/events.ts:161
    • src/browser/components/WorkspaceMenuBar/WorkspaceMenuBar.tsx (around L250, "timeline dialog gate")
    • src/browser/features/RightSidebar/StatsContainer.sync.test.tsx:11
    • tests/ui/rightSidebar/timeline.test.ts:835
    • the test name at src/browser/utils/commands/sources.test.ts:2369
    • the seed text in src/browser/stories/App.phoneViewports.stories.tsx:576,636
  2. The keybind IDs OPEN_TIMELINE_DIALOG and OPEN_STATS_DIALOG and the event OPEN_STATS_DIALOG still say "dialog". Renaming them touches settings, the palette and tests.
  3. To check: the "two mounted copies" sync (the StatsContainer sub-tab listener, the Timeline filter listener, the shared Artifacts capped memory) existed for dialog-plus-hidden-sidebar copies. Keep it, or remove it deliberately.
  4. Timeline and Artifacts still load eagerly in tabRegistry.tsx. Only the dialogs needed that. Moving them to LazyFeature is a separate perf change.

Trigger: after #6140 merges.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. ThomasK33 commented on Oct 11, 2026

    @ThomasK33
    MemberAuthor

    Trigger met: #6140 merged on main as c0a7564 (2026-10-11 15:50Z). This cleanup can start from current main.

  3. ThomasK33 commented on Oct 20, 2026

    @ThomasK33
    MemberAuthor

    Items 1 and 3 are done in #7050 (merge d4d3628): the comments, the test name and the story seed text no longer describe the removed phone dialogs. The sync listeners stay on purpose, because listener: true also syncs across browser tabs. Only their comments changed.

    Item 2 (rename OPEN_TIMELINE_DIALOG / OPEN_STATS_DIALOG and the event): not done, by decision. The IDs are internal only. Keybinds are not user-customizable, and the labels users see already say "Open Timeline tab (small viewports)". Open PR #7040 edits the same lines.

    This issue stays open only for item 4: moving Timeline and Artifacts to LazyFeature in tabRegistry.tsx, a perf change for the perf owner.


    Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions