Vérité - CONTEXTE DU PROJET : Application de gestion pour une entreprise d'électricité, connectée via API REST à une instance Dolibarr distante....
Generated Prompt
## APPLICATION OVERVIEW This project is a web application designed for an electricity management company, integrated via REST API with a remote Dolibarr instance. The application will function as a lightweight client that interacts with Dolibarr in real-time, without storing critical data locally. Authentication will be managed through Supabase, ensuring seamless access for technicians and administrators. ## CORE FEATURES 1. **Proposals Management**: Create, modify, validate, and send proposals via email. Users can generate PDFs and transform proposals into invoices. 2. **Invoices Management**: Handle invoice creation from proposals, manage payments, and track statuses (Draft, Unpaid, Paid) without enforcing overdue statuses by default. 3. **Interventions Scheduling**: Display and modify intervention details, including technician assignment and dates. Users can generate invoices from completed interventions. 4. **Client and Catalog Management**: Create and modify client records, including document history tracking. Manage labor and supply catalogs. 5. **Authentication**: Immediate account activation for technicians with no email confirmation required. Different access levels for administrators and technicians. 6. **Error Handling**: Clear feedback for API errors and issues during client deletions when documents are linked. ## DESIGN SPECIFICATIONS - **Visual Style**: minimalist - Clean, simple design with plenty of white space, minimal color palette, and focus on typography. - **Color Mode**: Light theme with dark text on light backgrounds. - **Primary Color**: #1978E5 (accent for buttons, links, highlights). - **Typography**: Use Inter from Google Fonts for headings, Inter for body text and UI elements. - **Border Radius**: 8px (moderately rounded) for buttons, cards, and inputs. - **Layout**: A responsive layout that emphasizes clarity and ease of navigation, with sections for proposals, invoices, interventions, clients, and error handling, all accessible from a side navigation bar. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS - **UI Components**: shadcn/ui - **State Management**: React Query for data fetching and caching. ## IMPLEMENTATION STEPS 1. **Set up the React application**: Initialize a new React project with TypeScript and install necessary dependencies including Tailwind CSS and shadcn/ui. 2. **Integrate Supabase for Authentication**: Configure Supabase for user authentication, ensuring immediate account activation and role-based access control. 3. **Connect to Dolibarr API**: Set up REST API calls for interacting with the Dolibarr instance, including handling errors as specified (e.g., error 304 and 409). 4. **Develop Core Features**: Implement the proposals, invoices, and interventions features with appropriate UI components and state management. 5. **Design UI Components**: Create components using Tailwind CSS that adhere to the design specifications, ensuring a minimalist aesthetic and responsiveness. 6. **Testing**: Conduct thorough testing for all functionalities, ensuring that API interactions and user flows work seamlessly. ## USER EXPERIENCE The application will provide a streamlined user experience with a focus on efficiency. Technicians will easily navigate through proposals, invoices, and interventions, with clear indications of status changes and immediate feedback on actions. The minimalist design will reduce clutter, enabling users to concentrate on their tasks without distraction. Error messages will be straightforward to ensure users understand any issues and how to resolve them. This web application will meet the business needs of the electricity management company while providing a user-friendly interface for technicians and administrators.
Loved by thousands of makers from
From early prototypes to real products, they started here.







































Generate optimized prompts for your vibe coding projects
Generate prompt
Enter a brief description of the app you want to build and get an optimized prompt
Review and use your prompt
Review (and edit if necessary) the generated prompt, then copy it or open it directly in your chosen platform
Get inspired with new ideas
Get AI-generated suggestions to expand your product with features that will surprise your users
Frequently Asked Questions
Everything you need to know about creating better prompts for your Lovable projects
Still have questions?
Can't find what you're looking for? We're here to help!
