-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Description
Description
Allow users to save, view, and manage their previously generated contracts. This feature will improve user experience by providing access to their contract history and allowing them to mark favorites for quick access.
Expected Behavior
- Users can view a history of all their generated contracts
- Users can mark contracts as favorites
- Users can search and filter through their contract history
- Users can re-generate or modify previous contracts
- History should persist across browser sessions
Technical Details
- Files to create:
src/components/ContractHistory.tsx,src/hooks/useContractHistory.ts - Files to modify:
src/services/Chatbot.tsx,src/components/ui/chatbot.css - Skills needed: React, TypeScript, Local Storage, State Management
- Difficulty: Intermediate
Acceptance Criteria
- Create a ContractHistory component with list/grid view
- Implement local storage for persisting contract history
- Add favorite/unfavorite functionality
- Include search and filter capabilities
- Add ability to re-generate contracts from history
- Show contract metadata (name, date, type)
- Add proper TypeScript interfaces for contract history items
- Implement proper error handling for storage operations
Getting Started
- Fork the repository
- Create a feature branch:
git checkout -b feature/contract-history - Design the contract history data structure
- Implement the useContractHistory hook
- Build the ContractHistory component
- Integrate with the main chatbot interface
- Test persistence and functionality
- Submit a pull request
Resources
- React Hooks Documentation
- Local Storage API
- Existing message structure in
src/services/Chatbot.tsx
Labels
enhancement good first issue hacktoberfest
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest