User data handling in sidebar and sign-out functionality in Dashboard.#4
Open
codeza-ai wants to merge 15 commits into
Open
User data handling in sidebar and sign-out functionality in Dashboard.#4codeza-ai wants to merge 15 commits into
codeza-ai wants to merge 15 commits into
Conversation
…out functionality in Dashboard.
…e form handling in dashboard. Unaithorized (token) error.
Add validation for GSTIN and password fields. Implement error handling with alert. Create user schema for consistent user data handling. Implement search user feature.
- Implemented an alert system for user notifications. - Added new components for invoice management: Active, History, and Request. - Updated login and registration forms to include new alert functionalities. - Enhanced the dashboard by adding right-sidebar Calendar. - Introduced new UI components for better user experience. - Updated authentication logic to handle additional user data for Profile. - Improved the sidebar navigation and user profile components.
- Enhance user profile management - Implement profile update API - Improve user search functionality - Refine UI components for better user experience
… middleware functional.
feat(api): implement invoice management endpoints - Added GET endpoint for fetching active invoices by recipient GSTIN. - Added GET endpoint for fetching invoice history by recipient GSTIN. - Added GET and DELETE endpoints for managing invoice requests by recipient GSTIN. - Added GET and DELETE endpoints for managing sent invoices by sender GSTIN. - Added GET endpoint for fetching transactions by sender GSTIN. feat(dashboard): create invoice layout component - Implemented a layout component for displaying individual invoices. feat(components): add encryption example and key management hooks - Created an example component demonstrating encryption key usage. - Implemented a custom hook for managing encryption key state and retrieval. feat(lib): enhance encryption and key storage functionality - Integrated libsodium for secure encryption and decryption of sensitive data. - Developed functions for generating, encrypting, and decrypting keys. - Implemented secure key storage with Argon2 hashing for password protection. chore(types): define TypeScript types for encryption and key management - Added types for Argon2 hashing and key attributes to improve type safety.
…factoring of encryption key management.
- Create keyEncryptionKey from passphrase after Login - Decrypt privateKey and masterKet using keyEncryptionKey - Store decrypted keys in session for further use - Delete decrypted keys from session on logout
- Verify receiver's GSTIN before submiting to get the publicKey - Encrypt invoice to .enc format - Encrypt invoiceKey to get primaryInvoiceKey and secondaryInvoiceKey
- Decrypt the primaryInvoiceKey if user is sender - Decrypt the secondaryInvoiceKey if user is recipient - Decrypt the encrypted invoice blob to get pdf file
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.
Update user data handling in sidebar and site header; implement sign-out functionality in Dashboard.