Feat/fi 272 searching law#92
Open
PHUOBG wants to merge 59 commits into
Open
Conversation
…ogin, resgister request and response and error type
… account, processing OTP response and set up route for user dashboard
* Register for user and lawyer * feat[FI-12]: Cleaned up register and login code * feat[FI-12]: Cleaned up register and login code (commit 2) * feat[FI-12]: added access and refresh tokens * feat[FI-12]: Separated login for user and lawyer. Cleaned up code. * feat[FI-12]: Added forgot password and verify OTP. Cleaned up code from login and register. * feat[FI-12]: Added reset password. Changed interceptors to not accept invalid password. Cleaned up code. * feat[FI-12}: Added viewing and updating personal data. Changed formats of date and email for input * feat[FI-12]: Added refresh-token. Renamed confusing functions. * feat[FI-12]: Implemented RBAC middleware and auth guard. Cleaned up code. * feat[FI-12]: added access and refresh tokens * feat[FI-12]: Separated login for user and lawyer. Cleaned up code. * feat[FI-12]: Added forgot password and verify OTP. Cleaned up code from login and register. * feat[FI-12]: Added reset password. Changed interceptors to not accept invalid password. Cleaned up code. * feat[FI-12}: Added viewing and updating personal data. Changed formats of date and email for input * feat[FI-12]: Added refresh-token. Renamed confusing functions. * feat[FI-12]: Implemented RBAC middleware and auth guard. Cleaned up code. * feat[FI-12]: Log out * feat[FI-36]: Log out API * feat[FI-36]: Fix log out * feat[FI-36]: fix log out (2) * feat[FI-36]: fix log out (3) * feat[FI-36]: fix log out (4)
* feat(FI-71): get lawyer details by ID * refactor(FI-71): extract mapping logic into dedicated mapper
* fix(FI-71): add barrel index for lawyer api module * fix(FI-71): resolve swagger undefined schema ref for array type params
* fix(FI-71): add barrel index for lawyer api module * fix(FI-71): resolve swagger undefined schema ref for array type params * fix: remove leading slash from route definitions in resolvers
Co-authored-by: Nguyen Hong Son <snguyenhong8@gmail.com>
…ocument, refactor UI and legal analysis (#51)
* feat/FI-59: implement lawyer api combine with mock api, lawyer page for search, filter * fix(FI-59): remove footer and header in landing page, fix responsive padding
* refactor(frontend): replace any types with TypeScript strict types Replace loose `any` types with proper TypeScript types throughout the codebase: - Use `unknown` for uncertain external data types - Add `Record<string, unknown>` for untyped object structures - Apply inline type assertions with `as` postfix syntax - Update import statements to use `type` keyword per convention This improves type safety and code maintainability without changing runtime behavior. * feat(frontend): add type safety for API responses and law service - Import Citation type in workspaceApi for proper typing of RAG query responses - Replace `unknown` types with proper interfaces in document.service.ts - Add comprehensive backend response types (BackendLaw, BackendLawVersion, BackendLawListResponse) in law.service.ts - Update type mappers to use strict backend types instead of Record<string, unknown> - Improve type safety across API calls by replacing `as unknown` casts with specific types This change eliminates unsafe type assertions and provides better type checking throughout the frontend API layer. * fix/(document): fix conflict template page * fix: resolve merge conflicts across docker-compose, dependencies, and template files Cleaned up Git merge conflict markers left from commit 80a32bd across multiple files: - Standardized docker-compose.yml volumes configuration - Resolved puppeteer version conflict (kept v22.0.0) and Chrome executable path - Restored preconnect links in frontend index.html - Fixed font URLs in template components to use correct local paths - Removed duplicate code blocks in template editor component - Ensured consistent API error handling and state management * feat(frontend): reorder imports in AIChat component Reorder imports to follow convention: external libraries first, then internal modules organized by path depth (constants, helpers, lib utilities). Moves `cn` utility import after date-time helper to maintain consistent import ordering. * refactor: remove unused imports across backend codebase Remove unused imports from Python and JavaScript files to improve code cleanliness and reduce linter warnings. Changes include: - Remove unused FastAPI status codes, Pydantic validators, and typing imports in Python files - Remove unused Cloudinary, Prisma, and middleware imports in JavaScript resolvers - Add ruff noqa comment and reorder imports in main.py for proper linter compliance - Add eslint-disable comment to seed.js for generated code * chore: resolve merge conflicts in package-lock.json Remove duplicate entries and merge conflicts from package-lock.json after merging puppeteer version updates. Updates lockfile version to 3 and removes peer dependency markers from several packages including @babel/core, @types/node, and acorn. --------- Co-authored-by: Nguyen Hong Son <snguyenhong8@gmail.com>
* style: Refactor landing page chat UI, fix template format * fix: landing page
* style: Refactor landing page chat UI, fix template format * fix: landing page * feat(FI-230): complete demo web * feat(FI-230): complete demo web * fix(FI-230): duplicate function
* style: Refactor landing page chat UI, fix template format * fix: landing page * feat(FI-230): complete demo web * feat(FI-230): complete demo web * fix(FI-230): duplicate function * fix:(FI-230): optimize image
* wip: legal-documents admin (pagination/portal modals) + chat/api work [local only, pre-pull dev] * wip: metadata edit in detail drawer [local only] * feat: initialize backend reasoning service and integrate legal document management features into frontend * feat: implement backend reasoning ingest pipeline with document extraction, text fixing, metadata parsing, and relationship extraction nodes * feat: implement legal documents management module with document CRUD, AI ingestion tracking, and detail viewing capabilities * feat: implement legal inspection service and UI components for document tree and relation management * feat: implement admin sidebar, auth token refresh logic, and template preview UI components * feat: create document detail drawer component for managing versions and metadata edits
* wip: legal-documents admin (pagination/portal modals) + chat/api work [local only, pre-pull dev] * wip: metadata edit in detail drawer [local only] * feat: initialize backend reasoning service and integrate legal document management features into frontend * feat: implement backend reasoning ingest pipeline with document extraction, text fixing, metadata parsing, and relationship extraction nodes * feat: implement legal documents management module with document CRUD, AI ingestion tracking, and detail viewing capabilities * feat: implement legal inspection service and UI components for document tree and relation management * feat: implement admin sidebar, auth token refresh logic, and template preview UI components * feat: create document detail drawer component for managing versions and metadata edits * feat: implement core ingestion pipeline with graph-based document processing, database publishing, and automated relational linking services
…INACTIVE/BANNED (#68)
* wip: legal-documents admin (pagination/portal modals) + chat/api work [local only, pre-pull dev] * wip: metadata edit in detail drawer [local only] * feat: initialize backend reasoning service and integrate legal document management features into frontend * feat: implement backend reasoning ingest pipeline with document extraction, text fixing, metadata parsing, and relationship extraction nodes * feat: implement legal documents management module with document CRUD, AI ingestion tracking, and detail viewing capabilities * feat: implement legal inspection service and UI components for document tree and relation management * feat: implement admin sidebar, auth token refresh logic, and template preview UI components * feat: create document detail drawer component for managing versions and metadata edits * feat: implement core ingestion pipeline with graph-based document processing, database publishing, and automated relational linking services * feat: implement VBPL integration service and ingest workflow for automated legal document extraction
* feat: implement lawyer-specific dashboard, appointments, messages, profile management, and settings features with updated routing and top-bar navigation * feat(FI-244): implement analysis history api * feat(FI-212): implement create draft api * feat(db): add consultation workflow schema, seed data, and migration * feat(backend): implement consultation service, WebRTC socket signaling and API endpoints * feat(frontend): add API client services, Socket.io integration and types * feat(frontend-ui): implement consultation workflow UI, stage components, WebRTC calling and A11y improvements * fix(lint): resolve eslint errors on backend after rebase --------- Co-authored-by: hoanninh123 <anninh2508@gmail.com>
* test: CI/CD * test: CI/CD
) - llm.py: khi USE_NINE_ROUTER=true mà 9router lỗi hết retry, rớt thẳng về local qwen3 (OLLAMA_FALLBACK_MODEL) thay vì raise 500. Áp cho cả complete() async lẫn complete_sync(). - vbpl.py: VBPL editor tách số Điều ra nhiều <span> ("Điều 1 3") làm vỡ số hiệu; gộp lại chữ số ngay sau "Điều" trong _strip_html. Co-authored-by: Claude <noreply@anthropic.com>
* fix:(FI-40): fix conflict * Fix Bad Request on update profile and resolve all stash pop conflicts * Fix Bad Request (400) by converting null values to empty strings in update profile payload * Sync updated profile data to authStore to prevent old data flash on reload * Fix data unwrap and authStore synchronization in use-query-auth * Refactor authentication workflow to strictly keep AccessToken in-memory with silent refresh on initialization and 401 interceptor * Fix reload logging out and navigation issues in in-memory auth workflow * Fix ProtectedRoute block by reading AccessToken from in-memory Zustand store instead of LocalStorage * Restore authentication workflow back to storing AccessToken and RefreshToken in localStorage * Refactor auth: in-memory AT, rt_token key in LS, doubly nested response handling and fix navigation stuck * Fix automatic logout by using doRefresh() in response interceptor to handle token rotation correctly * Fix dashboard fullName sync issue by properly unwrapping response data in useUpdateProfile * Commit user manual rollback changes to LocalStorage auth flow * Manage user profile strictly in-memory using Zustand and React Query, disable LocalStorage persistence * Fix reload page blanks by fetching user info on app initialization * Fix reload token loss by only logging out on explicit auth failures (401/403) instead of any network errors * Correctly unwrap res.data in updateProfile onSuccess mutation handler to prevent undefined values in store * Safeguard status mapping in LawyerProfile by checking both lawyerStatus and status fields * Optimize Axios clients to prevent auto-logouts on network failures during token refresh * Refactor authentication flow and sync lawyer location field across components
* fix:(FI-40): fix conflict * Fix Bad Request on update profile and resolve all stash pop conflicts * Fix Bad Request (400) by converting null values to empty strings in update profile payload * Sync updated profile data to authStore to prevent old data flash on reload * Fix data unwrap and authStore synchronization in use-query-auth * Refactor authentication workflow to strictly keep AccessToken in-memory with silent refresh on initialization and 401 interceptor * Fix reload logging out and navigation issues in in-memory auth workflow * Fix ProtectedRoute block by reading AccessToken from in-memory Zustand store instead of LocalStorage * Restore authentication workflow back to storing AccessToken and RefreshToken in localStorage * Refactor auth: in-memory AT, rt_token key in LS, doubly nested response handling and fix navigation stuck * Fix automatic logout by using doRefresh() in response interceptor to handle token rotation correctly * Fix dashboard fullName sync issue by properly unwrapping response data in useUpdateProfile * Commit user manual rollback changes to LocalStorage auth flow * Manage user profile strictly in-memory using Zustand and React Query, disable LocalStorage persistence * Fix reload page blanks by fetching user info on app initialization * Fix reload token loss by only logging out on explicit auth failures (401/403) instead of any network errors * Correctly unwrap res.data in updateProfile onSuccess mutation handler to prevent undefined values in store * Safeguard status mapping in LawyerProfile by checking both lawyerStatus and status fields * Optimize Axios clients to prevent auto-logouts on network failures during token refresh * Refactor authentication flow and sync lawyer location field across components * Restore direct API call for user info initialization and sync status field in authStore * Fix user roleName and status lost after /auth/me fetch in both backend and frontend * Restrict BANNED status interceptor checks to auth endpoints in axios-client.ts * Fix Admin unban refresh state and prevent Admin logout on user ban action * Fix queryClient declaration in user ban/unban mutations
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.