Add step library foundation and user preferences #24

Merged
chihlasm merged 6 commits from feature/step-library-and-preferences into main 2026-02-03 07:07:47 +00:00

6 Commits

Author SHA1 Message Date
chihlasm
3b0f036077 Update CLAUDE.md with Phase 2.5 progress
- Document completed Issues #3, #5, #6, #7
- Add Step Categories and Step Library API docs
- Add userPreferencesStore and SettingsPage to structure
- Add step_category.py and step_library.py models
- Document ALLOW_RAILWAY_ORIGINS env var for PR CORS
- Note VITE_API_URL must include https:// prefix
- Add /debug/cors endpoint documentation
- Update roadmap with Phase 2.5 progress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 01:59:42 -05:00
chihlasm
46da0d78fd Add CORS debug logging and endpoint 2026-02-03 01:52:21 -05:00
chihlasm
afdb30e13d Trigger redeploy after adding ALLOW_RAILWAY_ORIGINS 2026-02-03 01:50:22 -05:00
chihlasm
b7e76fb45e Trigger redeploy for CORS env var 2026-02-03 01:45:23 -05:00
chihlasm
76653bab1e Fix CORS for Railway PR environments
Add ALLOW_RAILWAY_ORIGINS env var that enables regex-based CORS
allowing any *.up.railway.app origin. This makes PR environment
testing work without manually setting FRONTEND_URL for each PR.

Set ALLOW_RAILWAY_ORIGINS=true in Railway backend env vars.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 01:35:44 -05:00
chihlasm
c782d41eff Add step library foundation and user preferences (Issues #3, #5, #6, #7)
Issue #3: User Preferences - export format default
- Add userPreferencesStore with localStorage persistence
- Create Settings page with export format dropdown and theme toggle
- SessionDetailPage now uses default export format from preferences

Issue #5: Step Categories - database table and seed data
- Migration 007: step_categories table with team scoping
- Seed 10 default global categories (Citrix/VDI, AD, M365, etc.)
- Full CRUD API at /api/v1/step-categories

Issue #6: Step Library - database schema
- Migration 008: step_library, step_ratings, step_usage_log tables
- Support for decision/action/solution step types
- Visibility levels: private, team, public
- Rating aggregates and usage tracking

Issue #7: Step Library - CRUD API endpoints
- Full CRUD at /api/v1/steps with visibility filtering
- Full-text search endpoint
- Popular tags endpoint
- Rating/review system with verified use tracking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 01:25:31 -05:00