v2026.09.24 feat(admin): retire sidebar toggle, add farewell toast - #96
Merged
Merged
Conversation
Shopify's new admin ships a built-in sidebar toggle (⌘B), so Alfred's toggle, its collapsibleSidebar setting, and the toggle_admin_sidebar analytics action are removed. - Show a one-time farewell toast to merchants who used the toggle - Add an 'announcement' toast variant (larger, centered, <br> line breaks); other toasts keep plain text - Add removeItem to utils/storage Run deploy:track only after most users update: the regenerated allowlist drops toggle events from older clients.
Add TODO to retire the one-time farewell toast.
CONTRIBUTING pointed at co-located tests and a hand-edited VALID_ACTIONS list, but tests live in tests/ subfolders and the list is generated by bun run track:gen. Also document linkedom for DOM tests.
- wxt 0.21 no longer bundles vite and web-ext; add both as dev deps - oxfmt 0.70 reflows two files - typescript stays on 6: svelte-check peer range caps at ^6
CI reads the version from packageManager instead of tracking latest, so local and CI stay on the same bun.
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
Shopify's new admin dashboard ships a built-in sidebar toggle (⌘B), so Alfred's collapse toggle is retired, with a one-time goodbye for merchants who used it.
Sidebar toggle retirement
ToggleSidebar.ts, thecollapsibleSidebaroption (types, defaults, options page), and the README feature line.toggle_admin_sidebaranalytics action and regeneratedvalid-actions.gen.ts.One-time goodbye toast
admin-sidebar-statestorage key see a persistent announcement once. The key is cleared right away.removeItemtoutils/storage.ts.Toast announcement variant
'announcement'variant forToast.show: larger, centered, up to 800px wide. Only this variant turns<br>into line breaks; every other toast keeps plaintextContent, exactly as before.Docs
CLAUDE.mdnotes that/version-bumpruns inside/ship, and documents the linkedom DOM test convention.CONTRIBUTING.mdtesting guide synced with thetests/layout andbun run track:gen.TODOS.mdhas a P3 item to retire the goodbye toast once most toggle users have seen it.Deploy note: run
deploy:trackonly after most users have updated. The regenerated allowlist dropstoggle_admin_sidebarevents from older clients.Test Coverage
Tests: 27 → 29 files (+2 new). Coverage gate: 75%, remaining paths intentionally uncovered (visual/E2E only).
Pre-Landing Review
Two review cycles, 5 specialists each (testing, maintainability, security, performance, simplification) plus Red Team in cycle 1.
main(), test added.<br>parsing applied to all toasts, letting URL-sourced text add line breaks → limited to the announcement variant.~/utils/storagewrapper → addedremoveItem, dropped the process-wide#importstest mock.removeItem.Review did not fully converge: the cycle 2 Red Team was stopped to wrap up, and cycle 2 fixes were test-only.
Design Review
Design Review (lite): 0 findings. AI Slop: clean. Detector: not installed. Codex design pass: no visual findings.
Eval Results
No prompt-related files changed. Evals skipped.
Scope Drift
Scope Check: CLEAN
Plan Completion
No plan file detected.
Verification Results
Skipped: no plan file. The toast was previewed manually in the WXT dev browser on the Shopify admin.
TODOS
No TODO items completed in this PR. Added: "Retire the one-time sidebar toggle goodbye toast" (P3).
Documentation
tests/subfolders (example path fixed toentrypoints/popup/tests/robots.test.ts), analytics events are synced by runningbun run track:gento regeneratesupabase/functions/track/valid-actions.gen.tsrather than hand-editingindex.ts, and DOM tests use linkedom.afterAll).Test plan
bun test: 702 pass, 0 failbun run typecheck: cleanbun run lint: cleanbun run check(svelte-check): 0 errorsbun run build: succeeded