Files
hackerspace.sh/lib/actions/index.ts
T
Moheeb Zara 2732269d5f feat(classes): server actions + page guard
classes.ts: class/session CRUD (classes.manage; delete refused once
sessions/signups exist, archive instead), member signUpForClass /
cancelMySignup as validated service-client writes enforcing eligibility,
capacity vs waitlist, de-dupe and earliest-waitlist promotion on cancel,
listUpcomingSessions (service-client counts so members see spots-left
without seeing who signed up), instructor markAttendance and
completeSession. completeSession awards a class's certification via the
normal grantCertification path, so it only issues when the acting
instructor also holds certifications.grant; otherwise completion still
succeeds and reports certificatesSkipped. classes-guard mirrors the
forms/certifications guards. Barrel + API_REFERENCE updated.
2026-05-16 19:32:17 -07:00

56 lines
1.4 KiB
TypeScript

/**
* Barrel re-export for server actions.
*
* Client components and pages import action functions via `@/lib/actions`.
* Each domain lives in its own file in this directory; this barrel keeps
* the import path stable as the directory grows.
*
* Do NOT add `'use server'` here. The directive lives on the domain files
* themselves; re-exports preserve the marking.
*/
export * from './tasks'
export * from './projects'
export * from './members'
export * from './contacts'
export * from './payments'
export * from './knowledge-base'
export * from './secrets'
export * from './area-leads'
export * from './settings'
export * from './imports'
// Governance kernel (Tier 1)
export * from './proposals'
export * from './incidents'
export * from './policies'
// Per-space configurable taxonomies
export * from './areas'
// Forum and polymorphic comments
export * from './forum'
// User-creatable chat channels
export * from './comms'
// Custom tiers, custom roles, multi-code invites
export * from './tiers'
export * from './roles'
export * from './invites'
// Configurable member onboarding
export * from './onboarding'
// Customizable permissions, per-item Ops ACLs, area-lead roles
export * from './permissions'
// Custom forms and waivers
export * from './forms'
// Certifications + Instructor capability
export * from './certifications'
// Classes (offerings, sessions, signups)
export * from './classes'