Yimaru/Yimaru-Admin
production
d16cb8400629576b64c4822ecf8b7e0674946be0
success
No local changes to save
HEAD is now at feea83a Fix admin white screen from circular imports and route guards.
From https://gitea.yaltopia.com/Yimaru/Yimaru-Admin * branch production -> FETCH_HEAD
Already on 'production'
Updating feea83a..d16cb84 Fast-forward src/api/analytics.api.ts | 1 + src/app/AppRoutes.tsx | 13 +- src/components/access/AdminAccessGates.tsx | 31 ++ src/components/sidebar/Sidebar.tsx | 17 +- src/components/topbar/Topbar.tsx | 5 +- src/hooks/useAdminAccess.ts | 26 + src/lib/activityLogDisplay.ts | 10 +- src/lib/adminAccess.ts | 25 +- src/lib/analytics.ts | 2 +- src/pages/analytics/AnalyticsPage.tsx | 569 ++++++--------------- src/pages/content-management/AddPracticeFlow.tsx | 2 +- .../content-management/AttachPracticeFlow.tsx | 2 +- .../AttachProgramPracticeFlow.tsx | 2 +- .../content-management/CourseCategoryPage.tsx | 2 +- src/pages/content-management/EditPracticeFlow.tsx | 2 +- src/pages/content-management/NewContentPage.tsx | 3 +- src/pages/content-management/ProgramDetailPage.tsx | 6 +- .../ProgramTypeSelectionPage.tsx | 8 +- .../components/ExamPrepContentHierarchyList.tsx | 2 +- .../practice-steps/AttachPracticeStep1.tsx | 2 +- .../practice-steps/ProgramAttachStep1.tsx | 2 +- .../practice-steps/SelectPracticeToAttachStep.tsx | 2 +- src/pages/notifications/NotificationsPage.tsx | 3 + src/pages/personas/PersonasPage.tsx | 2 +- src/pages/role-management/RolesListPage.tsx | 8 +- src/pages/team/TeamManagementPage.tsx | 15 +- .../components/UserLearningActivitySection.tsx | 10 +- src/types/analytics.types.ts | 1 + 28 files changed, 315 insertions(+), 458 deletions(-) create mode 100644 src/components/access/AdminAccessGates.tsx create mode 100644 src/hooks/useAdminAccess.ts
From https://gitea.yaltopia.com/Yimaru/Yimaru-Admin * branch production -> FETCH_HEAD
bun install v1.3.8 (b64edcb4) Checked 410 installs across 431 packages (no changes) [21.00ms]
[0.03ms] ".env"
vite v7.3.0 building client environment for production... transforming... ✓ 2871 modules transformed. rendering chunks... computing gzip size... dist/index.html 1.19 kB │ gzip: 0.56 kB dist/assets/logo-Bg-9_lvv.svg 10.87 kB │ gzip: 4.90 kB dist/assets/inter-latin-100-normal-Cg8nSI4P.woff2 23.39 kB dist/assets/inter-latin-400-normal-C38fXH4l.woff2 23.66 kB dist/assets/inter-latin-900-normal-D4nM5aha.woff2 23.90 kB dist/assets/inter-latin-300-normal-BVlfKGgI.woff2 23.92 kB dist/assets/inter-latin-200-normal-CGIQ4gbF.woff2 23.92 kB dist/assets/inter-latin-500-normal-Cerq10X2.woff2 24.27 kB dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 24.36 kB dist/assets/inter-latin-800-normal-BYj_oED-.woff2 24.40 kB dist/assets/inter-latin-600-normal-LgqL8muc.woff2 24.45 kB dist/assets/inter-latin-100-normal-J9XNenR1.woff 30.37 kB dist/assets/inter-latin-900-normal-EUCDUbiG.woff 30.68 kB dist/assets/inter-latin-400-normal-CyCys3Eg.woff 30.70 kB dist/assets/inter-latin-200-normal-fAycq8N-.woff 30.97 kB dist/assets/inter-latin-300-normal-i8F0SvXL.woff 31.01 kB dist/assets/inter-latin-600-normal-CiBQ2DWP.woff 31.26 kB dist/assets/inter-latin-500-normal-BL9OpVg8.woff 31.28 kB dist/assets/inter-latin-800-normal-D1mf63XC.woff 31.30 kB dist/assets/inter-latin-700-normal-BLAVimhd.woff 31.32 kB dist/assets/amanuel-3PkNQsVd.png 50.71 kB dist/assets/bethel-CaBDZdXX.png 52.68 kB dist/assets/hana-DkOuFQ0V.png 54.50 kB dist/assets/liya-DVdvbcn2.png 54.81 kB dist/assets/dawit-COAAGGAT.png 55.08 kB dist/assets/aseffa-C4oEbevw.png 56.02 kB dist/assets/nahom-DxgM5_gd.png 57.35 kB dist/assets/mahlet-Do3fcSgJ.png 60.57 kB dist/assets/index-fFN6Jsv5.css 125.17 kB │ gzip: 19.14 kB dist/assets/index-93ZOc-dD.js 2,617.82 kB │ gzip: 655.32 kB ✓ built in 23.19s
$ vite build Browserslist: browsers data (caniuse-lite) is 8 months old. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme A PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue. (!) Some chunks are larger than 500 kB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.