Commit Graph

18 Commits

Author SHA1 Message Date
g
a07ca55a1e Improve dashboard prefetching and analytics charts
All checks were successful
Build Frontend / build (push) Successful in 1m14s
Removed dashboard prefetching from the login page to avoid unnecessary middleware redirects for unauthenticated users. Added delayed prefetching of dashboard routes after initial load for better navigation performance. Updated AdminAnalytics to use AreaChart instead of BarChart for daily metrics, improving visual clarity. Enhanced middleware to allow prefetch requests through without redirecting to login, supporting better caching and navigation.
2026-01-13 05:49:14 +00:00
g
fe01f31538 Refactor UI imports and update component paths
Some checks failed
Build Frontend / build (push) Failing after 7s
Replaces imports from 'components/ui' with 'components/common' across the app and dashboard pages, and updates model and API imports to use new paths under 'lib'. Removes redundant authentication checks from several dashboard pages. Adds new dashboard components and utility files, and reorganizes hooks and services into the 'lib' directory for improved structure.
2026-01-13 05:02:13 +00:00
g
2477e9bb0f fix docker? 2026-01-11 07:48:01 +00:00
g
c9c3f766a6 Improve admin ban UX, add product cloning, and enhance auth handling
Refines the admin ban page with better dialog state management and feedback during ban/unban actions. Adds a product cloning feature to the products dashboard and updates the product table to support cloning. Improves error handling in ChatDetail for authentication errors, and enhances middleware to handle auth check timeouts and network errors more gracefully. Also updates BanUserCard to validate user ID and ensure correct request formatting.
2025-12-27 20:58:08 +00:00
NotII
f0d18a9e67 Add dashboard navigation and request timeouts
Added 'Back to Dashboard' buttons to all admin dashboard pages for improved navigation. Introduced AbortSignal timeouts to API client and middleware requests to prevent hanging network calls. Also enabled messaging customers from the order details page if Telegram info is available.
2025-10-30 18:35:09 +00:00
NotII
bfc60012cf Add admin dashboard pages and restructure admin route
Introduces new admin dashboard pages for alerts, bans, invites, orders, settings, status, and vendors under app/dashboard/admin/. Moves the main admin page to the new dashboard structure and adds a shared admin layout. Updates sidebar configuration and adds supporting components and hooks for admin features.
2025-10-18 15:19:10 +01:00
NotII
1d7b378cd3 Update middleware.ts 2025-10-16 00:41:51 +01:00
NotII
4fb6d3f740 Add admin dashboard and middleware protection
Introduces an admin dashboard page with cards for inviting vendors, banning users, and viewing recent orders. Adds middleware logic to restrict /admin routes to the 'admin1' user and updates route matching. Also updates git-info.json with latest commit metadata.
2025-10-15 17:17:43 +01:00
NotII
d05d7b4938 other 2025-04-06 16:20:01 +01:00
NotII
3413e3b1e8 ugh 2025-03-23 23:53:45 +00:00
NotII
991593c301 Update middleware.ts 2025-03-23 22:20:43 +00:00
NotII
e3e630c211 fix 2025-03-23 22:14:05 +00:00
NotII
6ab5a9ac43 hmm 2025-03-23 21:59:28 +00:00
NotII
615282702a Update middleware.ts 2025-03-23 21:58:38 +00:00
NotII
8d7d9b9e1c cleanup 2025-03-23 21:25:37 +00:00
NotII
87a58a6736 fix alot of things 2025-03-14 16:48:08 +00:00
NotII
20d5559832 other 2025-03-10 17:39:37 +00:00
g
80eb0a6c1b Create middleswares 2025-02-07 22:21:26 +00:00