- Implement API fetching logic in src/model/index.ts with Bearer token authentication.
- Integrate main API endpoints provided by Leonardo AI with pagination for image generations.
- Set up error handling for API requests.
- Write unit tests for the API model logic.
- After setting up fetching: Discuss response details, write type definitions, and decide on internal representation of generation objects.
- Develop the main page in playground/pages/index.tsx for testing API integrations and components.
- Set up routes and environment variables for the playground.
- Implement a demo gallery using the Gallery component.
- Add functionality to interact with the dev Leonardo account.
- Interactive Development: Implement fetching logic and playground for testing, then refine based on feedback.
- Develop the Button component in src/components/ui/Button.tsx.
- Style the Button component using Tailwind CSS.
- Ensure accessibility standards are met for UI components.
- Create additional UI components as required.
- Before Starting UI Development: Discuss the structure of React components for the gallery.
- Implement the Gallery component logic in src/components/lib/Gallery.tsx.
- Develop the component to display and interact with images and generations.
- Integrate API calls within the Gallery component for fetching images and handling statuses.
- Implement custom interaction functionalities and handle image variants.
- After Each Endpoint Integration: Clarify response details and update component logic.
- Set up a workflow in .github/workflows for CI/CD.
- Include steps for linting, running tests, and building the project.
- Configure the workflow to run on push and pull request events.
- Develop utility functions for webhook integration to handle notifications of completed operations.
- Connect webhooks to the gallery component for real-time updates.
- Update README.md with detailed project information.
- Create detailed documentation in the docs folder.
- Document the API model and component usage.
- Ensure code quality with ESLint and Prettier.
- Conduct thorough testing of all components and functionalities.
- Regularly update chatbot.md with project progress and details.
- Review and test each component and functionality.
- Iterate based on feedback and additional requirements.
-
Update the structure of 'generated_image_variation_generics' based on actual data.
-
Implement testing for different 'presetStyle' values and complete the 'PresetStyle' enum.
-
Create a models map to associate 'modelId' with their titles.
-
Move all type definitions to types.ts in the model folder.
-
Update endpoint files to use API_BASE_URL from config.ts.
-
Add UserInfo type to types.ts.