-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
blockedIssue blocked by another issueIssue blocked by another issue
Description
!!! Blocked By: #945 !!!
Description:
Rename admin_v2 namespace to admin and move routes from /admin-new to /admin. Keep Administrate installed as safety net until Ticket 24.
Tasks:
- Rename
Admin::V2::*controllers toAdmin::*- Move
app/controllers/admin/v2/toapp/controllers/admin/ - Update all controller class names (remove
::V2)
- Move
- Rename view directories
- Move
app/views/admin_v2/toapp/views/admin/
- Move
- Rename layout
- Rename
app/views/layouts/admin_v2.html.erbtoadmin.html.erb
- Rename
- Rename components/helpers
- Move
app/components/admin/v2/toapp/components/admin/ - Move
app/helpers/admin/v2_helper.rbtoapp/helpers/admin_helper.rb - Move
app/form_builders/admin/v2/toapp/form_builders/admin/
- Move
- Update routes configuration
- Comment out
namespace :admin do(Administrate block) - don't delete yet - Rename
namespace :admin_v2, path: 'admin-new' dotonamespace :admin do - Remove path override (now uses
/admin) - Set admin root to
admin/classrooms#index
- Comment out
- Update all internal references to remove
V2namespace - Do NOT remove Administrate gem yet (safety net for rollback)
Acceptance Criteria:
- All controllers renamed from
Admin::V2::*toAdmin::* - All views moved from
admin_v2/toadmin/ - All components/helpers moved and renamed
- Routes updated: in-house admin now at
/admin/* - Admin root accessible at
/admin(not/admin-new) - No references to
Admin::V2oradmin_v2remain - All admin pages load correctly at
/admin/* - All tests pass
- No broken links or errors in admin interface
- Administrate gem still installed (can rollback if needed)
Files to Rename/Move:
app/controllers/admin/v2/→app/controllers/admin/app/views/admin_v2/→app/views/admin/app/views/layouts/admin_v2.html.erb→app/views/layouts/admin.html.erbapp/components/admin/v2/→app/components/admin/app/helpers/admin/v2_helper.rb→app/helpers/admin_helper.rbapp/form_builders/admin/v2/→app/form_builders/admin/
Files to Update:
config/routes.rb(comment out Administrate routes, activate new admin routes)
Metadata
Metadata
Assignees
Labels
blockedIssue blocked by another issueIssue blocked by another issue
Type
Projects
Status
Todo