How yash-05082006/rivet works
RIVET is an enterprise work-management application for employee activity logs, configurable modules, approvals, campaigns, and role-based administration. The main user workflow is to sign in, create or update work in a module, submit it for review, and receive an approval decision; managers review submissions, while administrators manage access and audit activity. The sampled store and demo data show that application state currently uses in-memory seed data and localStorage rather than a connected backend. The README describes a marketing-site deliverable, but the supplied source tree and excerpts document a substantial internal application; unsampled route behavior is represented only where paths or references support it.
Main entry points: store.tsx Session and state · app.tsx Application shell · permissions.ts Role permissions · index.tsx Module workspace
Components 20
Application routing
- Router setup
src/router.tsx - Route registry
src/routeTree.gen.ts - Application shell
src/routes/app.tsx - Sign-in and sign-up
src/routes/sign-in.tsx
Work and review
- My work
src/routes/app/work.tsx - Module workspace
src/routes/app/modules/$moduleKey/index.tsx - Entry form
src/components/work/EntryForm.tsx - Approval queue
src/routes/app/approvals/index.tsx - Approval detail
src/routes/app/approvals/$entryId.tsx - Campaigns
src/routes/app/campaigns/index.tsx
State and access
- Session and state
src/lib/rivet/store.tsx - Demo domain data
src/lib/rivet/demo-data.ts - Role permissions
src/lib/rivet/permissions.ts - Permission-aware navigation
src/lib/rivet/nav.ts - Domain types
src/lib/rivet/types.ts
Operations and insights
- Role dashboards
src/components/dashboard/EmployeeDashboard.tsx - Administration
src/routes/app/admin/audit.tsx - Reports
src/routes/app/reports.tsx - Notifications
src/routes/app/notifications.tsx
Other components
- Employee or manager
Connections 20
- Router setup → Route registry: loads routes
src/router.tsx - Route registry → Application shell: registers route
src/routeTree.gen.ts - Employee or manager → Sign-in and sign-up: signs in
- Application shell → Session and state: reads session
src/routes/app.tsx - Application shell → Permission-aware navigation: builds navigation
src/routes/app.tsx - My work → Session and state: reads work
src/routes/app/work.tsx - Module workspace → Session and state: reads module data
src/routes/app/modules/$moduleKey/index.tsx - Module workspace → Entry form: renders form
- Entry form → Session and state: saves entries
src/components/work/EntryForm.tsx - Approval queue → Session and state: reads submissions
src/routes/app/approvals/index.tsx - Approval detail → Session and state: reviews entries
src/routes/app/approvals/$entryId.tsx - Campaigns → Session and state: reads campaigns
src/routes/app/campaigns/index.tsx - Role dashboards → Session and state: reads summaries
src/components/dashboard/EmployeeDashboard.tsx - Administration → Session and state: reads audit data
src/routes/app/admin/audit.tsx - Notifications → Session and state: reads notifications
src/routes/app/notifications.tsx - Session and state → Role permissions: checks access
src/lib/rivet/store.tsx - Role permissions → Demo domain data: looks up modules
src/lib/rivet/permissions.ts - Session and state → Demo domain data: loads seed data
src/lib/rivet/store.tsx - Session and state → Domain types: uses domain shapes
src/lib/rivet/store.tsx - Permission-aware navigation → Role permissions: filters navigation
src/lib/rivet/nav.ts