5456deb727
feat: Refactor authentication to leverage AppContext, removing redundant API calls and simplifying loading state.
main
2304172026-02-27 15:38:47 +00:00
c59e0ba1b0
feat: Display a loading spinner during initial app load if no user session is stored, otherwise skip the loading state.
2304172026-02-27 15:29:52 +00:00
24cb02bf0c
feat: Refactor app initialization to sequentially authenticate users and load shops from the database, removing mock data and local storage dependency for shops.
2304172026-02-27 15:27:26 +00:00
f41791adb2
fix: Handle duplicate shop errors during synchronization and refresh the shop list.
2304172026-02-27 15:12:42 +00:00
8c35b8b6e0
carregar imagem para barbearia
2304172026-02-26 17:38:31 +00:00
2c78a28a3e
fix: Add nullish coalescing to shop rating, services, and barbers properties to prevent UI crashes
2304172026-02-26 17:19:07 +00:00
d948273c16
alteração do shopcard
2304172026-02-26 17:11:49 +00:00
b1099f04bc
feat: Load shops and their services from the database instead of using mock data.
2304172026-02-26 17:00:31 +00:00
e5a167beb8
feat: Persist new barber shops to Supabase and use a unified ID for new barberia users and their shops.
2304172026-02-26 16:47:40 +00:00
a9ac6dc310
feat: Ensure all owner-created shops are globally listed using the owner's user ID as the shop ID.
2304172026-02-26 16:31:01 +00:00
5b866a161e
docs: Add JSDoc and inline comments to enhance code readability and explain functionality across multiple pages and components.
2304172026-02-26 10:38:13 +00:00
42b1eb6459
Enhance ShopCard and ShopDetails components with image support and favorite functionality; update AppContext for favorites management; improve Explore page with filtering and sorting options; refine AuthLogin and AuthRegister forms for better user experience; update types for BarberShop to include imageUrl.
2304172026-01-27 16:45:08 +00:00
2d1f09154f
Add RequireAuth and events module for user authentication and event management
2304172026-01-21 09:52:34 +00:00