Skip to content

Add admin sidebar template and refactor admin pages#40

Merged
devzeeh merged 3 commits into
developmentfrom
feat/admin
Jun 1, 2026
Merged

Add admin sidebar template and refactor admin pages#40
devzeeh merged 3 commits into
developmentfrom
feat/admin

Conversation

@devzeeh
Copy link
Copy Markdown
Owner

@devzeeh devzeeh commented May 30, 2026

Introduce a standardized sidebar template for the admin dashboard, enhancing navigation consistency across pages. Refactor existing admin pages to utilize the new template, improving code maintainability and reducing redundancy.

devzeeh added 3 commits May 30, 2026 13:44
- Created a new sidebar template for the admin dashboard to standardize navigation across admin pages.
- Refactored `deactivateCard.html`, `hardware_registry.html`, and `system_settings.html` to utilize the new sidebar template, improving code maintainability and consistency.
- Removed redundant sidebar code from the aforementioned pages, enhancing readability and reducing duplication.
…gement

- Removed redundant transaction and dashboard user structs from dashboard.go, replaced with database queries for user data.
- Updated login.go to use username instead of user ID for login responses and adjusted redirect URLs based on user roles.
- Enhanced jsonWrite.go to include username in login responses.
- Added terminal struct and updated dashboard user struct in structs.go to accommodate recent transactions.
- Modified dashboard handler in user/dashboard.go to fetch user ID from query parameters instead of session cookies.
- Updated SQL schema to allow null merchant IDs in the terminals table.
- Improved admin merchant and terminal management UI with new JavaScript functionalities for terminal registration and pagination.
- Created new admin signup page and associated JavaScript for handling admin registrations.
- Removed outdated hardware registry template and replaced it with a new terminal management template.
@devzeeh devzeeh merged commit cb6941f into development Jun 1, 2026
1 check 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