Skip to content

[codex] PR_26175_ALFA_001-002 toolbox status bar#119

Merged
ToolboxAid merged 2 commits into
mainfrom
codex/pr-26175-alfa-001-toolbox-selected-game-status-bar
Jun 23, 2026
Merged

[codex] PR_26175_ALFA_001-002 toolbox status bar#119
ToolboxAid merged 2 commits into
mainfrom
codex/pr-26175-alfa-001-toolbox-selected-game-status-bar

Conversation

@ToolboxAid

@ToolboxAid ToolboxAid commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Added the shared Theme V2 toolbox selected-game status bar for toolbox pages.
  • Preserved Game Hub ownership of selected-game context and Idea Board selected-game filtering exclusion.
  • Polished the status bar context display so the left side shows selected game name/purpose and the center shows tool action, save state, validation, warning, or error context.
  • Kept environment details out of the status bar because the platform banner owns that context.
  • Added ALFA_001 and ALFA_002 reports plus repo-structured delta ZIP artifacts under tmp/.

Validation

  • npx playwright test tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs --workers=1 - PASS, 6 passed
  • rg -n "<style|style=" assets/theme-v2/js/toolbox-status-bar.js assets/theme-v2/css/status.css tests/playwright/tools/ToolboxSelectedGameStatusBar.spec.mjs - PASS, no matches
  • git diff --cached --check before ALFA_002 commit - PASS

Artifacts

  • tmp/PR_26175_ALFA_001-toolbox-selected-game-status-bar_delta.zip
  • tmp/PR_26175_ALFA_002-toolbox-status-bar-context-polish_delta.zip

Commits

  • ALFA_001: 359d48c50
  • ALFA_002: 3557b13e8

@ToolboxAid ToolboxAid changed the title [codex] PR_26175_ALFA_001 toolbox selected game status bar [codex] PR_26175_ALFA_001-002 toolbox status bar Jun 23, 2026
@ToolboxAid ToolboxAid marked this pull request as ready for review June 23, 2026 20:36
@ToolboxAid ToolboxAid merged commit 6d94477 into main Jun 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3557b13e88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1053 to +1054
if (pagePath.indexOf("toolbox/") !== 0) {
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mount the bar on the toolbox clean URL

When the toolbox landing is opened as /toolbox/ or /toolbox (the common directory-index URL), currentPagePath() returns toolbox, so this guard returns before loading the shared status bar. That leaves the toolbox index without the new selected-game/context UI even though /toolbox/index.html gets it; normalize the exact toolbox path to the index page or allow it here.

Useful? React with 👍 / 👎.

Comment on lines +175 to +178
const prioritized = messages
.filter((entry) => entry.priority > 0)
.pop();
return prioritized?.text || messages[messages.length - 1]?.text || "";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Select the status that changed instead of the last one

When a toolbox page has several data-backed status regions, this always picks the last data-status in DOM order rather than the status that actually changed. For example, Game Journey's note/type/editor status nodes appear before data-journey-target-status, so saving or adding a note updates data-journey-note-status but the shared bar keeps showing the recommended-target status instead of the actual tool action/save message.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants