Skip to content

Conversation

@HomayoonAlimohammadi
Copy link
Contributor

Summary

This PR implements the V2 of the Detran project.

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
… logging for default JWT secret

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…n functionality

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…t status models

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…ment integration, including custom exceptions and repository models

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…agent access

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…rchestrator routing

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…payment

- Created `AuthContext.tsx` for authentication state management (login, register, logout).
- Developed `useRenewalFlow.ts` hook to manage the renewal process state (form, payment, confirmation).
- Added `LoginForm.tsx` for user authentication with validation.
- Implemented `RenewalForm.tsx` for CNH renewal input (CPF, CNH number, mirror) with validation.
- Created `PaymentQR.tsx` to display Lightning payment QR code and amount.
- Developed `PaymentStatus.tsx` to show payment confirmation status (pending/paid).
- Integrated components into `CopilotKitPage.tsx` for seamless user experience.
- Added `qrcode.react` dependency for QR code generation.

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…PostgreSQL setup

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…tion steps

- Updated `useRenewalFlow` hook to fetch operation price from API and handle default pricing.
- Added new state for form confirmation before ticket creation.
- Implemented error handling for API calls and improved state management.
- Introduced new `editForm` function to allow users to return to the form from confirmation.
- Created comprehensive design document for DETRAN-SP v2, detailing architecture, data models, and API specifications.
- Added technical design document for citizen services, outlining user flow and database schema.

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
…ESIGN.md review

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
… updates for renewal flow

Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
Signed-off-by: Homayoon Alimohammadi <homayoonalimohammadi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants