Commit Graph
13 Commits
Author SHA1 Message Date
Cato 6c94ad5f25 Stop briefing agents with retired Revamp-IT facts. (#560)
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.
2026-10-14 05:23:24 -07:00
Mao NakamotoandCursor 2f5fbdd4b7 feat: timecard approver notifications, href fixes, and Phase 4 E2E smoke
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>
2026-06-25 10:58:36 +02:00
Mao NakamotoandClaude Opus 4.8 dd5d40e325 docs: refresh stale Neon/Vercel references to current Hetzner + R2 + Actions reality
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>
2026-06-19 03:46:20 +02:00
Mao NakamotoandCursor da4df6b02c fix(auth): align docs and dashboard onboarding with live JWT stack
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>
2026-06-15 10:57:57 +02:00
g-butandClaude Opus 4.7 0de78dab83 docs+refactor: canonical migration path doc (#7) + Drizzle .check() sweep (#5)
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>
2026-05-29 10:50:10 +02:00
g-butandClaude Opus 4.7 2a0829efc3 docs: clean repo presentation — README rewrite + archive 42 stale doc files
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>
2026-05-28 08:12:16 +02:00
g-butandClaude Opus 4.6 3419caaa69 docs: update all documentation and configuration for post-Medusa architecture
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>
2026-02-25 11:44:25 +01:00
Your Name 7974d5c61f feat: deploy latest frontend (auth, admin, shop); docs + CI updates 2025-12-14 16:06:55 +01:00
Your Name 2355f723f5 feat(shop): add routing page and multi-channel shop navigation 2025-11-26 16:25:15 +01:00
Your NameandClaude 115df43b96 refactor: clean up feedback system and consolidate floating UI components
- 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>
2025-09-17 13:05:31 +02:00
Your NameandClaude 40a7f6e5b3 feat: optimize SuggestionButton with performance improvements and comprehensive documentation
## Major Improvements

### 🐛 Fixed Critical Issues
- **Single character typing bug**: Fixed by implementing memoized onChange handlers
- **Email recipient**: Confirmed correct address (georgy.butaev@revamp-it.ch)
- **Performance optimizations**: Reduced unnecessary re-renders

### 🔧 Technical Enhancements
- **Memoized event handlers**: useCallback for onChange, handleQuickSuggestion
- **Modular type system**: Created centralized types.ts and utils.ts
- **Better state management**: Optimized form state updates

### 📚 Documentation & Architecture
- **Comprehensive documentation**: 400+ line component guide in docs/components/SuggestionButton.md
- **Best practices implementation**: Performance, accessibility, UX patterns
- **Type safety improvements**: Centralized interfaces and validation

### 🎨 User Experience
- **Smooth typing experience**: No more cursor jumping or character loss
- **Contextual feedback**: Scope-specific suggestions and styling
- **Accessibility**: ARIA labels, keyboard navigation, focus management
- **Mobile responsive**: Touch-friendly interface

### 📧 Email Features (Already Working)
- **Rich HTML templates**: Scope-specific styling and AI-ready prompts
- **Complete context**: Page, URL, elements, timestamp for implementation
- **Rate limiting**: 3 suggestions per 5 minutes per IP
- **Spam protection**: Content filtering and validation

### 🗂️ Code Organization
- **Modular structure**: Separated types, utilities, and documentation
- **Clean interfaces**: TypeScript interfaces for all data structures
- **Centralized constants**: Configuration and validation rules
- **Documentation standards**: Established patterns for future components

## Files Changed
- Enhanced: src/components/ui/SuggestionButton.tsx (performance fixes)
- Added: src/components/ui/suggestion/types.ts (type definitions)
- Added: src/components/ui/suggestion/utils.ts (helper functions)
- Added: docs/components/SuggestionButton.md (comprehensive guide)
- Added: docs/README.md (documentation standards)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 11:38:47 +02:00
Your NameandClaude 23a94cfbf2 refactor: complete repository organization with senior engineering standards
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>
2025-09-08 16:55:20 +02:00
Your Name 53caf6c3aa feat: implement complete admin interface for Reboot Content
- 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.
2025-09-08 13:18:07 +02:00