Staff is the is_staff column, and production is one app on Hetzner. The agent brief, the auth doc, and the generated API page still said otherwise, so the next session kept reopening closed work. lint:claims fails the build if those sentences come back.
Notify staff on timecard submit and submitters on review; fix TIME HH:MM
submit validation and membership/marketplace bell deep links; add feature
inventory SSOT and Playwright smoke tests for appointments and notifications.
Co-authored-by: Cursor <cursoragent@cursor.com>
A lot of documentation still described the retired stack. Updated to ground truth:
prod DB = self-hosted Postgres 17 on Hetzner (Neon retired for prod+auth, single
DATABASE_URL pool); images on Cloudflare R2 (revampit-media); deploys via GitHub
Actions → rsync → systemd revampit-app (Vercel retired); nightly off-box backups
to R2 (revampit-backups). Rewrote DISASTER_RECOVERY.md and deployment.md for the
self-host flow, marked github-vercel-setup.md legacy, and added HISTORICAL banners
to point-in-time audit/architecture docs (DATABASE_AUDIT, AUDIT_REPORT, CODE_AUDIT,
guides/ARCHITECTURE, BACKEND_CONTENT_MANAGEMENT, hosting-migration-frauenfeld).
Surgical factual fixes to README, SHARED_CONTEXT, COMMANDS, MIGRATIONS,
ARCHITECTURE_DATABASE_BACKEND, system-integration, installation, MIGRATION_PLAN_QQQ5,
production-ready-checklist, and the docs index.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Refresh UNIFIED_AUTH and SSOT docs for JWT sessions, verify-code flow,
and shared admin login. Drive OnboardingChecklist from DB profile state,
remove orphaned onboarding info page, and close ARCHITECTURE_DEBT #2.
Co-authored-by: Cursor <cursoragent@cursor.com>
Two of the four follow-ups from the post-team-rebuild backlog.
#7 — docs/MIGRATIONS.md (new):
Spells out that scripts/db/migrations/ is the canonical path,
./drizzle/ is leftover from a retired Drizzle Kit trial and is
only useful for drizzle-kit studio browsing. Covers naming
conventions, idempotency rules, the schema_migrations tracking
table (added in migration 075), local vs Neon application, and
the most common foot-guns (editing an applied migration, drift
between Drizzle schema and SQL).
Linked from docs/README.md under Operations.
#5 — Drizzle .check() declarations mirroring existing migration
constraints. The DB already enforces these (migrations 079 + 080);
adding .check() at the schema level just makes the constraint
visible to developers reading the TypeScript model. Touched only
constraints from migrations the project owns (not the broader
historical schema), so Drizzle Kit's generate flow stays consistent:
src/db/schema/auth.ts
+ users_token_version_non_negative (mig 079)
src/db/schema/team.ts
+ team_profiles_work_state_valid (mig 080)
+ compensation_history_at_least_one_amount (mig 080)
+ compensation_history_amounts_non_negative (mig 080)
+ leave_periods_kind_valid (mig 080)
+ leave_periods_dates_ordered (mig 080)
+ payroll_batches_dates_ordered (mig 080)
src/db/schema/timecards.ts
+ timecards_rate_applied_non_negative (mig 080)
Each name matches the migration's pg_constraint name so a future
drizzle-kit diff sees them as same-name same-shape — no phantom
migration generated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repo cleanup pass focused on what visitors (engineers evaluating the
codebase, prospective contributors, allied non-profits, donors) see when
they land on the GitHub page.
README.md:
- Reframe lede around the one-line value prop ("Used computers repaired
and rehomed — not landfilled") so the mission is immediately legible.
- Add a "What this platform does" surface table (storefront, P2P
marketplace, IT-Hilfe, workshops, erfassung, member services, HIRN AI).
- Add a "How a non-profit funds this kind of platform" section laying
out the five revenue + sustenance streams (storefront margin, paid
services, donations, membership, grants) so the economic model is
transparent. Explicit "not VC-backed" framing so VC visitors don't
bounce confused — we're built for adoption by other circular-economy
orgs, not for an exit.
docs/:
- 42 dated/one-time files (PHASE_*, PROGRESS_*, AUDIT_REPORT, INCIDENT_*,
HANDOFF_*, *_COMPLETE, DATABASE_CONNECTION_ISSUE_RESOLUTION, all the
email-solution-comparisons whose decisions long since shipped, etc.)
moved to docs/archive/ via `git mv` so history is preserved but the
index isn't drowning in work logs.
- docs/README.md rewritten as a real index — six sections (Getting
started, Architecture, Product surfaces, Design, Operations, Mission)
pointing at the 24 curated reference docs that remain at docs/ root.
- The stale "Current Status (2025-12-02)" block in docs/README.md is gone.
Also (separate, prior in this session): 5 stale remote branches deleted
on origin — merged/closed/abandoned `claude/loop-bugfixes-2026-05`,
`claude/audit-ssot-dry-violations-k4aVl`, `snyk-fix-*` (x2),
`claude/improve-partnerships-page-ELMcD`. Remaining 11 origin branches
all correspond to open PRs (10 dependabot + 1 active feature).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Remove all Medusa-specific documentation (MEDUSA_*.md, SETUP_*.md,
README_MEDUSA.md, AI_AGENT_QUICK_REFERENCE.md, REVAMPIT_SHOP_*.md).
Update remaining docs, README, AGENTS.md, CLAUDE.md, env examples,
sitemap, and agent config files to reflect the simplified architecture
without Medusa dependency. Replace Medusa.js with WooCommerce in
service offerings documentation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove redundant feedback system components and API routes
- Consolidate RevampCopilot functionality into floating-ui feature
- Update chatbot components and hooks
- Add new suggestions route to CMS API
- Update documentation and migration schema
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Major structural improvements for professional open source presentation:
🗂️ **Repository Organization:**
- Organized tools/ directory with deployment/ and development/ subdirectories
- Moved all scripts to appropriate locations (deploy.sh → tools/deployment/)
- Created archive/legacy/ for historical files
- Removed outdated directories (strapi/, backend/, content/, messages/, etc.)
📚 **Documentation Structure:**
- Reorganized docs/ with guides/, reference/, api/, and legacy/ structure
- Created comprehensive docs/README.md with clear navigation
- Added detailed ARCHITECTURE.md explaining Strapi vs Custom CMS decision
- Moved legacy documentation to docs/legacy/ folder
🔧 **Developer Experience:**
- Added professional GitHub issue templates (bug_report.yml, feature_request.yml)
- Enhanced .gitignore with comprehensive patterns for clean repository
- Fixed import issues and development server configuration
- Created proper folder structure for maintainability
✨ **Professional Presentation:**
- Repository now presents as legitimate, well-organized open source project
- Clear separation of concerns in folder structure
- Professional documentation hierarchy
- Ready for new contributor onboarding
This brings the repository to senior engineering standards with clear organization,
comprehensive documentation, and professional development workflow setup.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add Next.js admin routes (/admin, /admin/login, /admin/pages, /admin/pages/new, /admin/pages/[id])
- Create admin layout with navigation and authentication
- Build login page with email/password form
- Implement pages list with search and create functionality
- Add WYSIWYG editor for content creation/editing
- Create API routes for admin authentication and content management
- Add middleware for route protection
- Include sample data population script
- Add comprehensive admin interface documentation for non-technical users
- Create test page for validating admin functionality
- Update environment configuration for JWT secret
Admin interface is now super easy and intuitive for non-technical team members to:
- Login with email/password
- View all pages with search
- Create new pages
- Edit existing pages with rich text editor
- Save as draft or publish immediately
- Preview content before publishing
All code follows best practices with proper error handling, security, and accessibility.