Commit Graph

19 Commits

Author SHA1 Message Date
google-labs-jules[bot]
1dcd8f076c
feat: Fix TypeScript errors and improve type safety (#6)
This commit addresses 275 TypeScript compilation errors and improves type safety, code quality, and maintainability across the frontend codebase.

The following issues have been resolved:
- Standardized `translationId` to `number`
- Fixed missing properties on annotation types
- Resolved `tags` type mismatch
- Corrected `country` type mismatch
- Addressed date vs. string mismatches
- Fixed variable hoisting issues
- Improved server-side type safety
- Added missing null/undefined checks
- Fixed arithmetic operations on non-numbers
- Resolved `RefObject` type issues

Note: I was unable to verify the frontend changes due to local setup issues with the development server. The server would not start, and I was unable to run the Playwright tests.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-11-27 18:48:47 +01:00
Damir Mukimov
4a23f496fa
Major frontend development updates
- Enhanced annotation system with improved inline editing
- Updated author components with new card and header designs
- Improved reading view with enhanced line numbering and controls
- Added new blog management features and tag management
- Updated UI components with improved accessibility and styling
- Enhanced search functionality with better filtering
- Added new dashboard features and activity feeds
- Improved translation selector and work comparison tools
- Updated GraphQL integration and API hooks
- Enhanced responsive design and mobile experience
2025-11-27 03:44:09 +01:00
mukimovd
104574847b Provide access to key metrics on content, users, and engagement
Expose new /api/stats endpoints for works, users, blog posts, and comments.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/7c072142-a097-4bbe-b044-d7c30fc110f1.jpg
2025-05-08 00:37:15 +00:00
mukimovd
d67963de51 Add capabilities to store and retrieve user content and analysis data
Implements data access methods for analysis results and annotations in JsonStorage, including get, filter, and create operations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/80f57837-9ae3-42b7-8c9f-0582d861d96f.jpg
2025-05-08 00:21:06 +00:00
mukimovd
fc3a941647 Enable analysis and annotation features for literary works on the platform
Implements new API routes in `server/routes.ts` for fetching, creating, and retrieving analysis results and annotations, including user enrichment.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/15578bf6-749f-46f9-89a4-2849cb59c0ac.jpg
2025-05-08 00:20:04 +00:00
mukimovd
085270ea6f Add methods to retrieve and store analysis results and annotations
Implement new methods in storage.ts to manage analysis results and annotations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/88f93614-9963-4c58-9597-c6404ee3b576.jpg
2025-05-08 00:18:18 +00:00
mukimovd
14a42223a8 Add ability to analyze content and create personal reading notes
Implements analysis result and annotation methods with in-memory storage for managing work analysis and user annotations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/6727ab9c-0666-4f48-a09c-58761e6a20ea.jpg
2025-05-08 00:16:22 +00:00
mukimovd
07e354075e Populate the platform with sample literary data and analysis features
Adds sample author data, text content, analysis results and annotation entities to JSON storage.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/32264298-034a-445f-8b51-86b6180c466c.jpg
2025-05-08 00:13:10 +00:00
mukimovd
9d24f47e68 Serve demo content from a separate JSON file for easier data management
Implements JsonStorage class to load and manage sample data from sampleData.json, replacing MemStorage.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/3575e342-a373-4351-a35e-5c684b14fd0f.jpg
2025-05-08 00:05:04 +00:00
mukimovd
5431f751fa Serve sample data from a dedicated JSON file instead of memory
Refactors `MemStorage` to read initial data from `data/sampleData.json` and creates `Translation` entries directly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/eb989528-3752-4578-8a9b-855b9310e0d3.jpg
2025-05-08 00:02:50 +00:00
mukimovd
f9db5f9a74 Show available translations to allow users to select a secondary language
Adds translation options to SimpleWorkReading and seed translations in storage.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/14db3b3e-24d2-4071-aaf1-9c1dcb22c2d7.jpg
2025-05-07 23:58:09 +00:00
mukimovd
9bd6071451 Populate database with richer user profiles and expanded literary data
Seeds the database with user roles, author bios, and translation descriptions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/3006cc85-785c-44b7-b08e-1a53835d9139.jpg
2025-05-01 23:46:57 +00:00
mukimovd
7b8519f768 Ensure blog posts and tags are correctly linked when the site initially loads
Refactors MemStorage to directly create BlogPost objects and explicitly manage tag relationships for proper initial data loading.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/fd5143c4-e876-4e0a-b046-bf6a49323077.jpg
2025-05-01 03:54:50 +00:00
mukimovd
1e4ca9b72e Improve the platform by adding more helpful internal logging messages
Adds console.log statements to improve debugging and track data flow in storage.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/fd5143c4-e876-4e0a-b046-bf6a49323077.jpg
2025-05-01 03:52:01 +00:00
mukimovd
a6d53a2e93 Show blog post comments and tags when users view blog post pages
Adds logging for blog post comments and tags in server/routes.ts and sets workId, translationId, and lineNumber to null in a comment in server/storage.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/e488806c-29f3-4e0d-845a-fc3319b866d8.jpg
2025-05-01 03:48:41 +00:00
mukimovd
3cb048ea9e Enable discussions on various content types and enhance user engagement
Refactors comment storage to support generic entities using entityType and entityId fields in storage.ts and schema.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/079d6656-1153-4bbe-8f09-2e865c68b583.jpg
2025-05-01 03:46:09 +00:00
mukimovd
bfbc4c336e Add comments and tags to blog posts and display user info on comments
Implements blog post commenting and tagging functionality, and retrieves user information for displaying comments.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/ecd8ef89-4efc-4907-bb4c-b74a23ed7e4a.jpg
2025-05-01 03:43:32 +00:00
mukimovd
78d07df844 Enhance blog posts with author info, comments, likes, and tags
Improves blog post API endpoints to fetch author details, comment/like counts, and tags using storage methods.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/809eda1d-d63f-4926-be8e-d300221b59bf.jpg
2025-05-01 03:40:07 +00:00
mukimovd
024e5d0ef5 Introduce the core functionality and basic structure of the platform
Sets up the project with initial files, components, routes, and UI elements.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/affc56b0-365e-4ece-9cba-9e70bbbf0893.jpg
2025-05-01 03:05:33 +00:00