brackt/app
Claude a2cbedbb82
Address all code review issues for draft room context menus
Layout bug: flex-1 min-w-20 was nested inside headerInner instead of the
direct flex-child wrapper in MiniDraftGrid, breaking equal column sizing.
Fixed by moving the classes to the outermost element in both the menu and
non-menu paths (matching DraftGridSection's pattern).

MiniDraftGrid improvements:
- Hoist hasHeaderMenu constant above the draftSlots.map() loop
- Add optional connectedTeams prop; disconnected teams render italic +
  muted-foreground, consistent with DraftGridSection
- connectedTeams now wired through the route's miniDraftGrid useMemo

DraftGridSection interface:
- Make onForceAutopick and onForceManualPickOpen optional (?) to match
  every other commissioner callback; add null checks at all three call
  sites (context menu, mobile MoreVertical button, mobile Sheet)
- Gate those two callbacks behind isCommissioner at the route level

Tests (new files):
- app/components/__tests__/MiniDraftGrid.test.tsx — covers layout classes,
  connected/disconnected styling, and all four context menu interactions
- app/components/__tests__/DraftGridSection.test.tsx — covers all three
  context menu surfaces for both commissioner and non-commissioner roles

Storybook: add CommissionerView and DisconnectedTeams stories to
MiniDraftGrid.stories.tsx

https://claude.ai/code/session_017JCShLVs9xZ6FZmyrUFaE1
2026-04-25 07:11:13 +00:00
..
components Address all code review issues for draft room context menus 2026-04-25 07:11:13 +00:00
contexts feat: implement middleware and context provider for Express integration 2025-10-11 20:56:00 -07:00
hooks Keep session alive during long drafts with a 15-minute ping 2026-04-24 23:27:52 -07:00
lib Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
models Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
routes Address all code review issues for draft room context menus 2026-04-25 07:11:13 +00:00
services Add projected-wins input mode to admin Elo Ratings page (#306) 2026-04-17 12:40:08 -07:00
test Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
types Redesign standings page with sortable table, 7-day change, and chart repositioned (#205) 2026-03-22 11:05:13 -07:00
utils Replace isDraftable boolean with draftOn/draftOff date range (#263) 2026-04-05 22:09:52 -04:00
welcome Redesign to dark-mode-only with navy palette and accent colors (#13) 2026-02-20 19:26:11 -08:00
app.css Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
entry.client.tsx Filter unnecessary sentry css and js errors. 2026-03-15 10:24:57 -07:00
entry.server.tsx Replace console.* with structured logger, fix no-inferrable-types (closes #98) (#199) 2026-03-21 13:41:39 -07:00
root.tsx Fix admin navbar link: use isUserAdmin DB call instead of session.user.isAdmin 2026-04-24 23:10:03 -07:00
routes.ts Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00