Skip to content

Fix/frontend structure#30

Merged
esspindola merged 7 commits intodevelopfrom
fix/frontend-structure
Aug 26, 2025
Merged

Fix/frontend structure#30
esspindola merged 7 commits intodevelopfrom
fix/frontend-structure

Conversation

@esspindola
Copy link
Copy Markdown
Collaborator

No description provided.

…e imports and API service calls

- Removed AuthContext and PluginContext, replacing them with Zustand-based auth store.
- Updated all components to use the new auth store for authentication state management.
- Refactored API service to use Axios for requests and improved error handling.
- Changed import paths for utility functions and components to maintain consistency.
- Updated product and inventory API calls to align with the new structure.
- Removed unused Supabase client files and middleware.
- Adjusted various components to reflect changes in authentication logic and routing.
…nd mobile detection hook

- Implemented Toaster component for displaying toast notifications.
- Created ToggleGroup and ToggleGroupItem components for toggle functionality.
- Developed Toggle component with variant support for different styles.
- Added Tooltip component for displaying contextual information on hover.
- Introduced useIsMobile hook for mobile device detection.

feat: implement language context and hooks for language management

- Added LanguageContext for managing language state and toggling between English and Spanish.
- Created useLanguage hook to handle language detection and toggling.
- Integrated translations for UI elements in both English and Spanish.

feat: add toast management system inspired by react-hot-toast

- Implemented a custom toast system with add, update, dismiss, and remove functionalities.
- Created useToast hook for easy access to toast management in components.

feat: add utility functions for class name merging and translations

- Implemented cn utility function for merging class names using clsx and tailwind-merge.
- Added translations utility for managing and retrieving translations based on selected language.
…on paths

- Updated import paths for `useLanguageContext` and `getTranslation` in multiple landing components to use the new structure from `@/context` and `@/utils`.
- Adjusted the import path for the `Sheet` component in the header to reflect its new location.
- Ensured consistent use of single quotes in JSX and JavaScript files for better readability.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Aug 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
zatobox Ignored Ignored Aug 26, 2025 5:32pm

@esspindola esspindola merged commit 9b0961a into develop Aug 26, 2025
2 checks passed
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.

1 participant