Skip to content

feat(admin): add admin app#476

Open
santosral wants to merge 11 commits intomainfrom
feat/admin-app
Open

feat(admin): add admin app#476
santosral wants to merge 11 commits intomainfrom
feat/admin-app

Conversation

@santosral
Copy link
Collaborator

@santosral santosral commented Jan 12, 2026

🚀 Summary

This PR is adds the admin application to solve the problem of manually doing the import of Glow's content to the database.

✏️ Changes

  • Grouped main and admin routes.
  • Added components.
  • Added authentication.
  • Added dashboard (Learning Units Data Table).
  • Added a Learning Unit Create form page.
  • Added user_admins table for storing admin users.

@santosral santosral self-assigned this Jan 12, 2026
@santosral santosral changed the title Feat/admin app feat: admin app Jan 12, 2026
@santosral santosral force-pushed the feat/admin-app branch 3 times, most recently from 05232fc to ea2bce6 Compare January 14, 2026 23:44
@santosral santosral requested review from YimingIsCOLD and nicholasjjlim and removed request for YimingIsCOLD January 15, 2026 00:08
@santosral santosral marked this pull request as ready for review January 15, 2026 00:08
@nicholasjjlim
Copy link
Collaborator

For the login flow implementation, thinking we should keep the login to app and admin sites separate.

Suggest we can have 2 separate routes:

  • /login for app login
  • /admin/login for admin login

Each of their login session states should be kept separate, so admin and app should each have their own states.
Sharing states for app and admin makes it very difficult to maintain and it introduces a lot of weird cases that I don't think we should handle them in that manner.

@santosral santosral closed this Jan 19, 2026
@santosral santosral reopened this Jan 19, 2026
@santosral santosral changed the title feat: admin app feat(admin): add admin app Jan 19, 2026
@santosral santosral force-pushed the feat/admin-app branch 4 times, most recently from 4c29a8d to 2bbcaa4 Compare January 26, 2026 08:26
@santosral santosral marked this pull request as draft February 4, 2026 07:21
@santosral santosral marked this pull request as ready for review February 13, 2026 09:10
event.setHeaders({ 'X-Request-Id': requestId });
event.locals.logger = logger.child({ requestId, module: 'admin' });

return await resolve(event);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for await here. refer to comments in #484

same for the rest of the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants