Repository navigation
#241: Option to hide the bar under the composer - #245
Merged
Merged
Conversation
jparker2006
commented
Nov 24, 2026
jparker2006
left a comment
Member
Author
There was a problem hiding this comment.
Review of 88f23b4:
I checked every acceptance criterion in #241 against the code and tests at this commit. In wizbar/, npm ci, npm run typecheck (0 errors) and npm test -- --maxWorkers=2 (56 files passed, 1 skipped; 1644 tests passed, 2 skipped) are all green.
Criteria
- Each mode sets or clears the attribute for pinned, unpinned and no active thread: met.
composer-footer.test.tshas an 11-row table, a switch from pinned to unpinned and back, and an unmount test. The red run is recorded at2d0e5da. - The stylesheet is added once and the disposer removes it: met.
mountComposerFooterStylesheetreuses an existingstyle[data-wizbar-composer-footer-style], and its disposer removes the node. The SDK says generations never overlap, so sharing one node is safe. - The attribute is cleared on unmount: met. A separate effect with empty dependencies clears it, and the attribute effect clears it when the active thread is unpinned or missing.
- 0.6 and 0.7 settings reload unchanged and
composerFooterstarts atshow: met.settings.test.tsadds a 0.7-shaped store reload. The upgrade-050 and upgrade-060 snapshots only gaincomposerFooter: "show". Unknown or wrong-typed values read asshow. - CLI parity: met.
wizbar footer <show|pinned|all> [--json]saves the setting, survives a reload, rejects a bad or missing mode with a usage error (exit 2), and is in the command list with[--json]. - Scope: the only rule is
html[data-wizbar-hide-composer-footer] [data-follow-up-composer-footer] { display: none }. Both attributes belong to WizBar or the host, so the rule cannot hide anything else. If the host drops its attribute, the rule matches nothing.
Findings
- R1 (polish):
wizbar/src/ThreadInbox.tsx:83-89. In "Hide on pinned threads" mode,activeThreadis null untiluseSidebarThreads()is ready. So on app start or reload with a pinned thread open, the bar shows and then disappears. Fix: skip the sync whilestatus !== "ready", so the attribute keeps its last value. Add a test that renders withstatus: "loading"and thenready. - R2 (polish):
wizbar/src/ThreadInbox.tsx:87-89. The setting only works while WizBar's thread list is mounted. If the host unmounts the thread list (for example a closed mobile drawer or a collapsed sidebar), the unmount cleanup clears the attribute and the bar comes back. I could not confirm how the host behaves here. Fix: confirm it in the host. If the list does unmount, move the logic into the content script and read the active thread and setting from there. Or say in the settings note that it applies while WizBar's thread list is shown. - R3 (polish):
wizbar/src/SettingsPage.tsx:141-169. The<label>wraps the description and the host note, butaria-labelsets the name, so screen readers never hear either line. Fix: give the two spans ids and setaria-describedbyon the<select>. - R4 (polish):
wizbar/src/command.ts:211. The plain-text output is the raw key and value (composerFooter: pinned). Fix: print the same words as the settings page, for exampleComposer footer: Hide on pinned threads, and keep--jsonas it is.
Verdict: approve
This was referenced Nov 24, 2026
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.
What changed
composerFooterplugin setting (show,pinned,all; defaultshow) with descriptor and reader inwizbar/src/settings.ts.wizbar/src/composer-footer.tsand registered thecomposer-footercontent script inwizbar/app.tsxto injecthtml[data-wizbar-hide-composer-footer] [data-follow-up-composer-footer] { display: none }once and remove it on dispose.wizbar/src/ThreadInbox.tsxto set or cleardata-wizbar-hide-composer-footerondocument.documentElementbased oncomposerFooterand the active thread'sisPinnedstate, and clear it on unmount.data-follow-up-composer-footertowizbar/src/SettingsPage.tsx.wizbar footer <show|pinned|all> [--json]inwizbar/src/command.tsandwizbar/src/server.ts.wizbar/README.mdand addedchanges/241.md.Out-of-owned-path changes
wizbar/src/upgrade-050.test.tsandwizbar/src/upgrade-060.test.ts: addedcomposerFooter: "show"to the expected full-store reload snapshots, since both tests read every declaredbb.settings.definehandle and assert exact object equality.How it was tested
2d0e5da):npx vitest run --config vitest.config.ts --maxWorkers=2 src/composer-footer.test.ts src/settings.test.ts src/SettingsPage.test.tsx src/cli-parity.test.ts— 4 failed test files, 11 failed | 82 passed (93).88f23b4):npm run typecheck— passed (0 errors).npm test -- --maxWorkers=2— 56 passed | 1 skipped (57 test files), 1644 passed | 2 skipped (1646 tests).Closes #241
Built with Cloudroom