Skip to content

prototype(groups): explore active-scope switcher variants - #288

Closed
chiptus wants to merge 6 commits into
mainfrom
claude/brainstorm-prototype-ideas-bjkpfb
Closed

prototype(groups): explore active-scope switcher variants#288
chiptus wants to merge 6 commits into
mainfrom
claude/brainstorm-prototype-ideas-bjkpfb

Conversation

@chiptus

@chiptus chiptus commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Adds a throwaway /prototype/active-scope route with 3 UI variants exploring a unified Active Group + Vote Scope model (Settings-pinned default, transient header override), following a grill session on issue #124's null-overloading bug and epic #122/#125.

No schema or production code touched — mock data only, gated out of prod builds.

Verification

  • Run pnpm run dev, visit /prototype/active-scope?variant=A (and B, C), or use the floating bottom-bar arrows / / keys to cycle.
  • In each variant, pick a different scope in the header dropdown, confirm the "back to default" affordance appears, and pin a new default via the mocked Settings card.
  • No verification needed for production behavior — this route is dev-only (import.meta.env.PROD guard on the switcher bar) and not linked from any nav.

Generated by Claude Code

Throwaway UI at /prototype/active-scope, 3 variants of a unified
Active Group + Vote Scope model (Settings-pinned default, transient
header override) surfaced during the grill session on issue #124.
Copilot AI lite review requested due to automatic review settings August 4, 2026 09:04
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
upline Ready Ready Preview Aug 5, 2026 6:30am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a throwaway /prototype/active-scope TanStack Router route to explore three UI variants for a unified “Active Group + Vote Scope” switcher concept using mock, in-memory state (no Supabase / schema / production behavior changes intended).

Changes:

  • Registers a new /prototype/active-scope route in the generated router tree.
  • Adds a prototype page implementing variants A/B/C for pinned-default vs transient-override scope switching.
  • Adds internal prototype notes documenting the question, variants, and cleanup plan.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/routeTree.gen.ts Registers the new prototype route in the generated TanStack Router tree/types.
src/routes/prototype/NOTES.md Documents the prototype goal, variants, and intended deletion plan.
src/routes/prototype/active-scope.tsx Implements the prototype route UI and variant switcher logic using mock state.

Comment thread src/routes/prototype/active-scope.tsx Outdated
Comment thread src/routes/prototype/active-scope.tsx
Address Copilot review on #288: block the route in production via
beforeLoad, and skip attaching the keydown listener (with correct
deps) when PROD instead of relying on a post-effect early return.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Playwright test results

passed  50 passed

Details

stats  50 tests across 14 suites
duration  1 minute, 8 seconds
commit  885dd76

The PROD block on beforeLoad was addressing a real-production-risk
concern, but this is a throwaway prototype PR that won't land on main
— the guard just breaks the shareable Vercel preview link.
Same reasoning as the route guard revert — this PR never merges to
main, so hiding the variant switcher in PROD only breaks the
shareable preview link instead of protecting anything.
…menu

Model per feedback: two independent settings ("active group" — which
group; "active scope" — group/everyone/me) instead of one flat pin
target. Header dropdown reordered to a compact, mobile-friendly
grouping: active group + pinned scope context lines, then groups,
then everyone/me, each separated.
Variant A won: single flat dropdown + two independent Settings
controls. Refined per feedback — the pinned scope always sorts first
in the list (still starred) so reverting to it never requires
scanning past groups/Everyone/Me in their natural order.
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.

3 participants