How idonov8/meet-case-studies works
Purpose and Delivery Model
Case Study Room is a student-team workspace for creating and tracking case-study deliverables across a Sun–Wed timeline. It is an Astro static-site application with React-powered interactive UI, intended to run without a required backend and persist workspace data in browser storage. Primary project entry and build configuration are src/pages/index.astro, astro.config.mjs, and package.json.
Page and Application Entry Points
Astro routes define the top-level surfaces:
• Landing/login flow: src/pages/index.astro
• Main team workspace: src/pages/app.astro
• Administration surface: src/pages/admin.astro
• Contact and isolated test routes: src/pages/contact.astro, src/pages/test-button.astro
Shared document structure is supplied by src/layouts/Layout.astro; application-wide styling resides in src/styles/global.css.
Workspace Composition
The main interactive experience is assembled from React components centered on deliverable authoring and submission:
• Workspace orchestration: src/components/Workspace.tsx
• Case-study deliverable rendering: src/components/CaseStudy.tsx
• Submission/progress-facing panel: src/components/SubmitPanel.tsx
• Reusable interactive widgets: src/components/widgets.tsx
These components represent purpose-built tools rather than a single generic form, supporting structured inputs such as planning, matrices, trees, checklists, and visual selections.
Deliverable Data and Progress Flow
Deliverable definitions, grouping, and completion-related logic are separated from UI:
• Core data model/content: src/lib/data.ts
• Deliverable processing: src/lib/deliverables.ts
• Submission state/actions: src/lib/submission.ts
• Deadline/countdown calculations: src/lib/deadline.ts
The expected flow is: workspace loads deliverable structure, renders the relevant interactive component/widget, records answers and completion state, then derives per-deliverable, part-level, and overall progress for display and submission.
Client State and Persistence Boundary
Browser-side persistence is a primary architectural boundary: the README specifies localStorage and no required backend. State/session utilities are isolated in:
• Storage abstraction: src/lib/store.ts
• Session handling: src/lib/session.ts
• Read-only behavior: src/lib/readonly.ts
This keeps UI components from directly owning persistence mechanics and permits workspace modes such as editable versus read-only.
Identity, Collaboration, and External-Service Boundary
The current landing flow uses mock Google login rather than wired OAuth, while authentication concerns are isolated in src/lib/auth.ts. The repository also contains a Supabase integration boundary and SQL assets:
• Client/service integration: src/lib/supabase.ts
• Realtime enablement: supabase/enable_realtime.sql
• Seed and schema-extension scripts: supabase/seed.sql, supabase/add_challenge_doc_urls.sql
These files indicate optional or evolving backend/realtime capabilities, but the documented baseline remains local browser persistence.
Supporting Product Features
Cross-cutting product behavior is encapsulated outside the core workspace:
• Admin UI: src/components/Admin.tsx
• Contact-related logic: src/lib/contacts.ts
• Upload boundary: src/lib/uploads.ts
• Theme state: src/lib/theme.ts
• Easter-egg feature set, including doomsday clock behavior: src/components/EasterEggs.tsx, src/lib/easter-eggs.ts, src/lib/doomsday-clock.ts
Runtime and Deployment
The application requires Node 22+ for development/build. Astro produces static output, with React used for interactivity and Tailwind CSS v4 for styling; deployment can target static hosts such as Vercel. Operational deployment guidance is in DEPLOY.md.
Main entry points: Workspace.tsx Workspace · Layout.astro Shared layout · app.astro Team workspace route · index.astro Landing & mock login
Components 21
Astro app
Static routes and shared document shell.
- Landing & mock login
src/pages/index.astro - Team workspace route
src/pages/app.astro - Admin route
src/pages/admin.astro - Shared layout
src/layouts/Layout.astro - Global styles
src/styles/global.css - Deployment guidance · Static-host deployment guidance.
DEPLOY.md
Workspace UI
React authoring and submission experience.
- Workspace
src/components/Workspace.tsx - Deliverable renderer
src/components/CaseStudy.tsx - Structured widgets · Planning, matrix, tree, checklist, and visual inputs.
src/components/widgets.tsx - Submission panel
src/components/SubmitPanel.tsx - Admin UI
src/components/Admin.tsx
Deliverable domain
Definitions, progress, and deadline logic.
- Deliverable definitions
src/lib/data.ts - Deliverable processing · Builds grouped deliverables and completion state.
src/lib/deliverables.ts - Progress & submission · Derives part, deliverable, and overall progress.
src/lib/submission.ts - Deadline countdown
src/lib/deadline.ts
Client state
Browser persistence and workspace access modes.
- Storage abstraction · Wraps browser localStorage.
src/lib/store.ts - Session handling
src/lib/session.ts - Read-only mode
src/lib/readonly.ts - Authentication boundary · Current landing flow uses mock Google login.
src/lib/auth.ts
Optional services
Evolving external integration boundary.
- Supabase boundary · Optional backend and realtime integration.
src/lib/supabase.ts - Realtime SQL enablement
supabase/enable_realtime.sql
Connections 21
- Landing & mock login → Shared layout: uses
- Team workspace route → Shared layout: uses
- Admin route → Shared layout: uses
- Shared layout → Global styles: loads
- Team workspace route → Workspace: mounts
- Admin route → Admin UI: mounts
- Workspace → Deliverable renderer: renders
- Deliverable renderer → Structured widgets: uses
- Workspace → Submission panel: shows
- Workspace → Deliverable processing: loads structure
- Deliverable processing → Deliverable definitions: reads
- Workspace → Progress & submission: records answers
- Submission panel → Progress & submission: displays progress
- Workspace → Deadline countdown: calculates countdown
- Workspace → Storage abstraction: persists workspace
- Session handling → Storage abstraction: persists session
- Read-only mode → Workspace: controls editability
- Landing & mock login → Authentication boundary: initiates login
- Authentication boundary → Session handling: establishes session
- Supabase boundary → Realtime SQL enablement: configured by
- Deployment guidance → Team workspace route: deploys static output