IA refactor and the custom-roles editor pass 11 left as data-only. Customize hub: - New /customize (admin/board) with a left section rail: Roles, Membership tiers, Areas, Invite codes, Onboarding. - One focused module per panel under app/(app)/customize/panels/ plus a shared card and types file. The client shell is ~75 lines; each panel is self-contained (smart separation of concerns). - Settings slimmed to Space, Integrations, Webhooks. Removed the Roles/Tiers/Invites/Onboarding tabs and the Areas block from settings-client.tsx (~700 lines) and the matching fetches from settings/page.tsx. Dead props/state/types removed. - Sidebar: added a Customize NavLink (admin/board). Roles editor: - Rename/recolor the five built-in roles (upsertRoleLabel) and full CRUD on custom org roles. Adds the read path the audit flagged as missing: lib/role-labels.ts (getRoleLabelMap/roleDisplayName) is consumed in (app)/layout.tsx so the sidebar shows the renamed role. Logo: - Reverted the brand mark to the terminal >_ glyph (components/brand-mark.tsx) on the landing nav/footer, onboarding header, and favicon (public/logo.svg). Removed the dead local IcoTerminal. AtlasLogo stays only on the resources project page. Invite links: - InvitesPanel has Copy code and Copy link (/signup?invite=CODE). signup reads ?invite= on mount, prefills the code, preselects join. Deferred and tracked in HANDOFF: types/database.ts sync, renamed-role display on the members table, splitting the still-large settings-client.tsx, custom-role assignment UI. 266/266 tests pass. Production build clean; /customize, /onboarding, slimmed /settings all in the route table. No migration this pass.
5.8 KiB
5.8 KiB
Changelog
All notable changes to this project are documented here. Format follows Keep a Changelog and the project loosely follows Semantic Versioning.
[Unreleased]
Added
- Customize hub at
/customize(admin/board): a dedicated home for per-space customization with a section rail (Roles, Membership tiers, Areas, Invite codes, Onboarding), split into one focused module per panel. Replaces the overloaded Settings tab strip. - Roles editor: rename and recolor the five built-in roles, and create/edit/delete custom org-structure roles. Renamed roles now display (sidebar user card; helper
lib/role-labels.ts). - Invite share links: copy a one-click
/signup?invite=CODElink in addition to the bare code; the signup page prefills the code and preselects join mode from?invite=.
Changed
- Brand mark reverted to the terminal
>_glyph (components/brand-mark.tsx) across the landing nav/footer, onboarding header, and favicon.AtlasLogoremains only on the resources project page. - Settings slimmed to Space, Integrations, and Webhooks. Roles, Tiers, Areas, Invites, and Onboarding moved to
/customize.
Added (continued)
- Configurable member onboarding: a new member who joins via invite code is walked through an admin-defined sequence of steps at
/onboardingbefore reaching the app. Built-in step types: welcome, code of conduct (required acknowledgement), profile, dues/payment nudge. Admins can add custom content steps with sanitized markdown/HTML, reorder, enable/disable, and mark steps required from Settings -> Onboarding. Founders skip the member flow (their onboarding is space configuration). Existing members were backfilled as completed so nobody is trapped. Server-side enforcement of required steps. New tables:space_onboarding_steps; new columnsspace_members.onboarding_completed_atandonboarding_progress. SafeMarkdowncomponent (react-markdown + remark-gfm + rehype-raw + rehype-sanitize) for rendering admin-authored markdown/HTML without XSS.docs/UX_AND_PERSONAS.md: persona model and the UX audit that drove onboarding.bioadded to the self-service profile schema.- Forum at
/forum: top-level discussion threads with categories, pinning, locking. Author or admin/board can edit; admin can delete. - Polymorphic comment threads on proposals, incidents, and policies. New
commentstable keyed on(entity_type, entity_id). Renders markdown. - User-creatable chat channels: inline "+ New channel" form in
/comms(name, description, type). RLS now allows any member to create; default channels stay protected. - Custom membership tiers with prices: new
space_tierstable per space. Settings -> Tiers tab to list, create, edit (including inline price edit), archive, and delete custom tiers. Built-inplus/basic/associatetiers seed on space creation and on existing spaces via backfill.space_members.tier_idFK backfilled from the legacy enum. - Customizable role labels and custom org roles:
space_role_labels(rename/recolor built-ins per space) andspace_custom_roles(non-privileged extra labels) with member m2m. Server actions wired; UI surface pending in a follow-up. - Multi-code invites:
space_inviteswith per-code expiry, max-use cap, and enable/disable. Legacyspaces.invite_codebackfilled as a permanent enabled invite. Settings -> Invites tab to manage.joinSpacehonors any valid invite and incrementsuses_count. - Knowledge base markdown rendering: clicking a KB entry opens a modal that renders
contentas markdown via react-markdown + remark-gfm. - AtlasLogo as the brand mark: replaces the terminal icon on the landing nav and footer;
public/logo.svgis the favicon. - Live site link in
README.md: https://hackerspace.sh.
Changed
- Secrets vault is now encrypted at rest: AES-256-GCM with a per-secret IV using a
SECRETS_ENCRYPTION_KEYenv var. The /ops list endpoint no longer sends plaintext or ciphertext to the client. A newrevealSecret(id)server action is the only path to plaintext and writes asecret.revealedrow toactivity_log. Existing legacy plaintext rows continue to work.
Added (continued)
- Production deployment to a self-hosted DigitalOcean Droplet with automatic HTTPS via Caddy and Let's Encrypt.
- GitHub Actions workflow that pushes a deploy on every commit to
main. Migrations are applied automatically via_migrations_appliedtracking. - Daily encrypted
pg_dumpallbackup cron, retained 14 days, written to the persistent block volume. - Resend SMTP integration for transactional email (GoTrue).
- Open-source release scaffolding:
LICENSE(MIT),CONTRIBUTING.md,SECURITY.md,CHANGELOG.md, refreshedREADME.md,docs/WEBHOOKS.md. - GitHub repository link on the landing page.
- Webhook signing secret is now displayed in the settings UI with show/hide and copy-to-clipboard.
Changed
- Mobile responsiveness pass on the Kanban board, members table, payments table, proposal voting grids, and the landing mini board preview.
membersdirectory now respects themember_directory_visibilityspace setting for non-admin viewers.lib/actions/settings.tsnow persistsmission_statementalongside the rest of the space metadata.
Removed
@vercel/analyticsdependency and all references to Vercel hosting. The project is self-hosted on a Droplet.- Dead v0 codegen artifacts.
Fixed
- Auth container crash-loop on first boot caused by an empty
DISABLE_SIGNUPenv value. - Kong port-binding race that left
supabase.hackerspace.shreturning 502 after a fresh stack bring-up.
[0.1.0] - 2026-03-10
Initial pre-production cut. See docs/HANDOFF.md for the full session-by-session history of work prior to the open-source release.