Skip to content

feat(teacher-dashboard): move Redux slice + Tier 3 + standalone dev host#74067

Draft
stephenliang wants to merge 1 commit into
stephen/teacher-dashboard-leavesfrom
stephen/teacher-dashboard-home
Draft

feat(teacher-dashboard): move Redux slice + Tier 3 + standalone dev host#74067
stephenliang wants to merge 1 commit into
stephen/teacher-dashboard-leavesfrom
stephen/teacher-dashboard-home

Conversation

@stephenliang

@stephenliang stephenliang commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

Move the `teacherSections` Redux slice + all Tier 3 homepage components into the package via `git mv`, with import-path codemod across ~146 apps files. Includes the standalone MSW dev host with 6 personas — the demoable prototype.

Stacked on #74059 (leaf moves).

The diff

225 files changed, 2018 insertions, 1041 deletions.

Git detects the moves as renames (77%–100% similarity):

  • 5 Redux slice files + 2 test files → `src/redux/`
  • 29 Tier 3 homepage components → `src/home/`
  • 21 homepage test files → `src/home/tests/`
  • ~146 apps files: import-path codemod (1–2 lines each)

Standalone dev host (`VITE_API_MODE=msw yarn dev`)

6 personas: established, new-teacher, archived-only, coteacher-invite, many-sections, degraded. Realistic fixture data with assigned courses, varied grades/dates/student counts, proper avatars. Real English locale strings. Vite `@cdo/*` resolver plugin stubs non-moved dependencies in serve mode.

7 Playwright visual baselines (maxDiffPixels: 0, frozen clock, 21/21 stable).

Key patterns

  • `@/` alias for internal imports (matches Studio convention)
  • `hostSeams` for DCDO/experiments/analytics (configured by apps adapter)
  • Ambient type stubs (`cdo-ambient.d.ts`) for `@cdo/*` retained in moved files
  • ESLint permissive overrides for apps-era code (lint alignment is a follow-up)

Test plan

  • Build green
  • Typecheck green
  • PW visual baselines: 7/7 at maxDiffPixels: 0 (21/21 with 3x repeat)
  • Apps jest suites pass via codemod'd imports
  • Drone CI

🤖 Generated with Claude Code

@stephenliang
stephenliang force-pushed the stephen/teacher-dashboard-home branch from c5287ed to db71336 Compare July 23, 2026 19:01
@stephenliang stephenliang changed the title feat(teacher-dashboard): move Redux slice + Tier 3 components with codemod feat(teacher-dashboard): move Redux slice + Tier 3 + standalone dev host Jul 23, 2026
@stephenliang
stephenliang force-pushed the stephen/teacher-dashboard-home branch 2 times, most recently from 1ecb276 to 9f84b37 Compare July 23, 2026 22:13
git mv the teacherSections slice, selectors, types, and all remaining
homepage components. Import-path codemod applied across ~146 apps files.

Standalone MSW dev host with 6 personas, Playwright visual baselines
(7 checks, maxDiffPixels: 0, 21/21 stable), real English locale strings,
lesson dropdown data, co-taught section, Bootstrap anchor reset.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@stephenliang
stephenliang force-pushed the stephen/teacher-dashboard-home branch from 9f84b37 to bd614b4 Compare July 23, 2026 22:25
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.

1 participant