Commit Graph

8 Commits

Author SHA1 Message Date
bb6019ae8d fix(frontend): resolve file loading, display, and cursor issues
- Fix API to return JSON response for file content instead of plain text
- Fix file display showing [object Object] by properly extracting content field
- Fix infinite save loop by tracking last saved content
- Remove auto-save that was causing cursor jumping on every keystroke
- Add manual save button with disabled state when content unchanged
- Add validation in FileList to prevent undefined filenames
- Improve error handling for file operations
2026-02-05 19:09:07 -05:00
67c4bdf0c7 chore: remove server binary from git tracking
Remove the binary from version control and add it to .gitignore to
prevent future commits of build artifacts.
2026-02-05 18:22:33 -05:00
c3a84dc14f chore: exclude server binary from version control
Add server binary to .gitignore to prevent committing build artifacts.
2026-02-05 18:22:30 -05:00
ae2eb1fac0 chore: add .gitignore to backend directory
Exclude build artifacts and runtime data from version control:
- server binary
- data directory
- Go-related build artifacts
- IDE-specific files
2026-02-05 18:22:28 -05:00
d2d8370c95 feat: add CORS middleware to backend server
Add cross-origin resource sharing support to the backend API to fix
frontend console errors when accessing resources from different origins.
The middleware handles preflight requests and includes necessary CORS
headers for API endpoints.

Fixes: Cross-Origin Request Blocked error
2026-02-05 18:21:47 -05:00
8e04f51b2d fix(frontend): resolve npm install and development server issues
Downgrade eslint to v8.57.0 and TypeScript to v4.9.5 to match
react-scripts@5.0.1 requirements. Force install ajv@8.17.1 and
ajv-keywords@5.1.0 to resolve peer dependency conflicts. Add missing
dependencies (remark-gfm, rehype-highlight, @testing-library/dom).
Update test imports to work with @testing-library/react@16.
2026-02-05 18:16:41 -05:00
5b67cb61d2 feat(markdown-editor): implement wysiswyg markdown editor with live preview
- Build Go backend with Cobra CLI and REST API
  - CRUD operations for markdown files (GET, POST, PUT, DELETE)
  - File storage with flat .md file structure
  - Comprehensive logrus logging with JSON format
  - Static asset serving for frontend

- Build React/TypeScript frontend with Tailwind CSS
  - Markdown editor with live GFM preview
  - File management UI (list, create, open, delete)
  - Theme system (Dark/Light/System) with persistence
  - Responsive design (320px mobile, 1920px desktop)

- Add comprehensive test coverage
  - Backend: API, storage, and logger tests (13 tests passing)
  - Frontend: Editor and App component tests

- Setup Nix development environment with Go, Node.js, and TypeScript
2026-02-05 17:48:23 -05:00
78f33053fb Initial: setup evaluation environment 2026-02-05 17:27:31 -05:00