Commit Graph
10 Commits
Author SHA1 Message Date
Daniel Samson 4c82e4f54c feat: add M6 setup admin area milestone
Backend (FastAPI):
- is_admin field added to User model with default False
- Admin-only dependency validates JWT AND is_admin flag
- Protected CRUD endpoints for items management
- Pagination, search by title/url, sort by title/date

Frontend (React + TypeScript):
- AdminLayout with sidebar navigation protected by auth check
- AdminDashboard with pagination controls and page size selector
- EditItemPage with Lexical WYSIWYG editor toolbar
- DeleteConfirmation modal requires explicit confirmation
- Warning icon and consequences message before delete

Security:
- Server-side 403 Forbidden for non-admin users
- JWT token validation required on all admin routes
2026-10-29 16:23:52 +00:00
Daniel Samson c1313c8758 feat: add M5 setup authentication milestone based on reference implementation
Backend (FastAPI):
- User model with username, password_hash, created_at fields
- PBKDF2 password hashing (120,000 iterations with salt)
- JWT token generation using HS256 algorithm (7-day expiry)
- Auth endpoints: POST /api/auth/register, POST /api/auth/login
- GET /api/auth/me validates Bearer tokens
- Environment variable HN_SECRET_KEY for JWT signing

Frontend (React + TypeScript):
- AuthContext for authentication state management
- Login.tsx, Register.tsx, SignOut.tsx pages
- AUTH_TOKEN stored in localStorage
- Session restoration on page load
- API client with auth methods and token attachment

Security:
- Passwords hashed with PBKDF2-SHA256 (not plaintext)
- Random salt per password using secrets.token_hex
- JWT signed with configurable SECRET_KEY
- 401 responses for invalid/expired tokens

Reference implementation used: /home/daniel/Gitea/daniel/news
2026-10-29 16:17:14 +00:00
Daniel Samson e6a72964b0 feat: add M4 setup developer environment milestone
- Add docker-compose.yml orchestrating backend and frontend services
- Create .env.example with documented environment variables
- Create .env file with default development configuration
- Makefile with dev, stop, restart, test, clean commands
- data/.gitignore excludes SQLite database from version control
- .dockerignore files for both frontend and backend builds
- Update README.md with M4 milestone links

This milestone enables developers to run the full application stack using Docker Compose.
2026-10-29 16:05:24 +00:00
Daniel Samson 091c7dc673 feat: add react-router-dom v6.x dependency and configuration to M3
Key changes:
- Added react-router-dom as required dependency (v6.x)
- App.tsx now includes BrowserRouter wrapper with Routes
- Route definitions map pages to URLs (/ → Home, /articles → ArticlePage, /categories → CategoriesPage)
- Header navigation uses React Router <Link> components instead of anchor tags
- Updated scoring rubric: 49 total points
- New critical requirement: Agent must install BOTH lucide-react AND react-router-dom
2026-10-29 15:59:14 +00:00
Daniel Samson b627ddc418 feat: update M3 frontend setup with comprehensive requirements
- Add lucide-react dependency with Home, FileText, Settings icons
- Create assets/ folder with styles/ subdirectory for global.css
- Establish clear separation between pages/ (route-level) and components/ui/, components/articles/
- Implement Layout.tsx wrapper component for page structure
- Update component list: Header, Layout, ArticleCard, AuthorAvatar, CategoryBadge
- Add ArticlePage.tsx and CategoriesPage.tsx as placeholders in pages/
- Update scoring rubric to 40 points reflecting all new requirements
2026-10-29 15:56:43 +00:00
Daniel Samson 85490bc0a2 feat: update M2/M3 milestones to include testing infrastructure
M2 (Backend):
- Add tests/ folder with pytest test files
- Add pytest.ini for test configuration and coverage
- Update scoring to require unit tests (Score 4+)

M3 (Frontend):
- Add tests/ folder with Vitest component unit tests
- Add playwright/e2e/ folder with E2E Playwright tests
- Add @playwright/test dependency and configuration
- Update scoring to require both unit and E2E tests (Score 5)

README.md updated with all milestone links and test requirements
2026-10-29 15:54:10 +00:00
Daniel Samson d66fe178c3 feat: add M3 setup frontend milestone with scoring rubric
- Add m3-setup-frontend-prompt.md with React + TypeScript + Vite setup instructions
- Add m3-setup-frontend-scoring.md with comprehensive acceptance criteria scoring (22 points)
- Update README.md with M3 frontend milestone links
2026-10-29 15:50:24 +00:00
Daniel Samson 48fcbf16f6 feat: update M2 backend setup with correct structure
- Move backend to proper subfolder structure (newzy/backend/)
- Add .gitignore file for Python exclusions
- Add Dockerfile for containerization
- Update requirements.txt and docker-compose references
- Expand scoring rubric to 19 points for comprehensive evaluation
2026-10-29 15:46:22 +00:00
Daniel Samson 8e05ae3497 feat: add M2 setup backend milestone with scoring rubric
- Add m2-setup-backend-prompt.md with structured documentation for FastAPI backend setup
- Add m2-setup-backend-scoring.md with acceptance criteria scoring table
- Update README.md with M2 milestone links
2026-10-29 15:43:10 +00:00
Daniel Samson db902a64df feat: add M1 setup git project milestone with scoring rubric
- Add m1-setup-git-project-prompt.md with structured documentation
- Add m1-setup-git-project-scoring.md with acceptance criteria scoring table
- Update README.md with milestones section
2026-10-29 15:39:51 +00:00