Go to file
Damir Mukimov ea2ef8fa6d
Fix/typescript testing issues (#12)
* feat: Add missing shared schema types and fix TypeScript imports

- Add AuthorWithStats and AnnotationWithUser schemas with relations
- Add corresponding TypeScript type exports
- Update tsconfig.json with @shared/* path mapping
- Fix @shared/schema import issues across components
- Resolve major TypeScript compilation errors

Next: Fix remaining type mismatches and component prop issues

* fix: resolve major TypeScript errors and type mismatches

- Add AuthorWithStats and AnnotationWithUser schemas with proper relations
- Fix AnnotationSystem component type issues (string IDs, nested user objects)
- Update component props to match schema expectations
- Fix function parameter types for annotation operations
- Resolve null/undefined type assignments
- Add missing required properties (type, isOfficial) to annotations

Remaining issues: Test ES module configuration and some component prop type mismatches

* fix: resolve remaining TypeScript errors and improve type safety

- Fix tag-manager component to work with string IDs from schema
- Update author-stats component to use schema-based AuthorWithStats type
- Add missing utility functions (formatNumber, formatRating) to author utils
- Fix WorkCard test to use correct schema types with string IDs
- Resolve type mismatches in component props and form handling
- Update interface definitions to match schema requirements

Linting:  90%+ resolved, remaining minor issues
Testing: ⚠️ ES module configuration needs refinement

* fix: complete TypeScript fixes and testing refinements

- Fix remaining AnnotationSystem component type issues
- Update FilterSidebar to use string tag IDs
- Resolve all major TypeScript compilation errors
- Testing infrastructure fully functional with Jest + ES modules
- Linting errors reduced to minor unused variable warnings

All critical type safety and testing issues resolved!

* Fix annotation types and author utils

* Fix TypeScript and testing infrastructure issues

- Fix AnnotationSystem component types (string IDs, user objects, liked/likes properties)
- Add formatNumber and formatRating utilities for author components
- Update FilterSidebar to use correct tag ID types (string vs number)
- Fix EnhancedReadingView translation and work ID type mismatches
- Resolve Playwright dependency issues in testing setup
- Update Jest configuration for ES module compatibility
- Fix import paths and type conflicts across components

All unit tests now pass and major TypeScript compilation errors resolved.

* Fix Vite build configuration for CI

- Set root to 'client' directory to find index.html
- Configure path aliases (@/* and @shared/*) for proper module resolution
- Set build output directory to '../dist' to place files in frontend root

Resolves CI build failure: 'Could not resolve entry module index.html'

* Fix Docker build for Yarn v4

- Replace deprecated 'yarn install --immutable --production' with 'yarn workspaces focus --production'
- This resolves the YN0050 error in CI Docker builds

Yarn v4 deprecated the --production flag on install command.
2025-11-30 15:39:18 +01:00
.github feat: Add GitHub Actions workflows for frontend CI/CD (#5) 2025-11-27 06:58:03 +01:00
.vscode Major frontend development updates 2025-11-27 03:44:09 +01:00
.yarn Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
client Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
data Major frontend development updates 2025-11-27 03:44:09 +01:00
playwright-report Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
server feat: Fix TypeScript errors and improve type safety (#6) 2025-11-27 18:48:47 +01:00
shared Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
test-results Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
.gitignore feat: Fix TypeScript errors and improve type safety (#6) 2025-11-27 18:48:47 +01:00
.pnp.cjs Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
.pnp.loader.mjs Major frontend development updates 2025-11-27 03:44:09 +01:00
.yarnrc.yml Major frontend development updates 2025-11-27 03:44:09 +01:00
babel.config.cjs fix: update Jest configuration for ES modules compatibility 2025-11-30 06:41:50 +01:00
codegen.yml Major frontend development updates 2025-11-27 03:44:09 +01:00
COMPONENT-ANALYSIS-FINAL.md Plan and analyze missing components for authoring, reading and UI 2025-05-08 00:50:19 +00:00
COMPONENT-ANALYSIS-UPDATED.md Plan and analyze missing components for authoring, reading and UI 2025-05-08 00:50:19 +00:00
COMPONENT-ANALYSIS.md Analyze components and list missing ones for better project structure 2025-05-08 00:46:55 +00:00
COMPONENT-IMPLEMENTATION-PLAN.md Plan and analyze missing components for authoring, reading and UI 2025-05-08 00:50:19 +00:00
COMPONENT-IMPLEMENTATION-PRIORITY.md Major frontend development updates 2025-11-27 03:44:09 +01:00
COMPONENT-IMPLEMENTATION-TRACKER.md Complete author information section with interactive elements and details 2025-05-10 22:02:40 +00:00
component-status.md Add component status tracking and enable component testing in the application 2025-05-08 01:00:36 +00:00
COMPONENT-STRUCTURE.md Major frontend development updates 2025-11-27 03:44:09 +01:00
components.json Major frontend development updates 2025-11-27 03:44:09 +01:00
DASHBOARD-NEXT-STEPS.md Major frontend development updates 2025-11-27 03:44:09 +01:00
Dockerfile Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
generated-icon.png Initial commit 2025-05-01 02:38:33 +00:00
jest.config.cjs Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
jest.setup.js Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
package.json Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
playwright.config.ts feat: Add comprehensive testing infrastructure and production readiness improvements 2025-11-30 06:40:29 +01:00
postcss.config.js Major frontend development updates 2025-11-27 03:44:09 +01:00
schema.graphqls Major frontend development updates 2025-11-27 03:44:09 +01:00
tailwind.config.ts Major frontend development updates 2025-11-27 03:44:09 +01:00
TODO.md Update dependencies and project files 2025-11-30 03:05:49 +01:00
tsconfig.json Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
tsconfig.node.json Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
vite.config.ts Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00
yarn.lock Fix/typescript testing issues (#12) 2025-11-30 15:39:18 +01:00