3.7 KiB
3.7 KiB
Task List: Angular Clarity to React+Bootstrap Migration
This document tracks the tasks required to migrate the application from Angular/Clarity to React/Bootstrap.
Phase 1: Project Setup & Core Implementation
- Task 1: Initialize React Project
- Use Vite to create a new React project with the TypeScript template.
- Name the project
react-bootstrap-migration.
- Task 2: Install Dependencies
- Install
react-router-domfor routing. - Install
bootstrapandreact-bootstrap. - Install
axiosfor HTTP requests. - Install
sassfor styling.
- Install
- Task 3: Setup Project Structure
- Create directories:
src/components,src/hooks,src/contexts,src/services,src/pages,src/types,src/styles.
- Create directories:
- Task 4: Implement Core Configuration
- Create a
config.tsto replaceAppConfig.
- Create a
- Task 5: Implement API Client
- Create an
axiosinstance to replaceApiRequestService. - Implement interceptors for adding auth tokens and handling errors.
- Create an
- Task 6: Implement Auth Context
- Create an
AuthContextto manage user state, replacingUserInfoService. - Implement login, logout, and session persistence logic.
- Create an
- Task 7: Implement Notification System
- Create a
NotificationContextand component to replaceAlertService. Usereact-bootstrapToasts or Alerts.
- Create a
Phase 2: Feature Migration
Authentication
- Task 8: Setup Routing
- Configure
react-router-domwith public and private routes.
- Configure
- Task 9: Migrate Login Page
- Create a
LoginPagecomponent. - Convert login form and logic from
LoginService.
- Create a
- Task 10: Migrate User Registration
- Create a
UserRegistrationPagecomponent. - Convert
UserRegistrationComponentlogic andUserRegistrationServicecalls.
- Create a
- Task 11: Migrate Password Reset
- Create a
PasswordResetPagecomponent. - Convert
PasswordResetComponentlogic andForgotpassServicecalls.
- Create a
Admin Module
- Task 12: Migrate Menu Group Feature
- Create
EditMenuGroupandReadOnlyMenuGroupcomponents. - Re-implement logic from
MenuGroupService.
- Create
- Task 13: Migrate User Maintenance
- Create user list and edit components.
- Re-implement logic from
UsermaintanceService.
- ...(other admin features)
Builder Module
- Task 14: Migrate Dashboard
- Create
Dashboardpage. - Convert
DashboardnewComponent.
- Create
- Task 15: Migrate Line Chart Gadget
- Create
LineChartcomponent using a library likereact-chartjs-2orrecharts. - Convert data fetching logic.
- Create
- ...(other builder features)
FND Module
- Task 16: Migrate API Registry
- Create components for
addapiregisteryandeditapiregistery.
- Create components for
- ...(other fnd features)
Phase 3: Finalization
- Task 17: Review and Refactor
- Code review all migrated components and hooks.
- Ensure consistent coding style and best practices.
- Task 18: Finalize Styling
- Perform a full UI review to ensure Bootstrap is applied correctly.
- Fix any styling inconsistencies.
- Task 19: Create Documentation
- Write
instruction.mdwith detailed setup, build, and run instructions. - Update
analysis_report.mdwith any findings during migration.
- Write
- Task 20: Final Deliverable Packaging
- Ensure all logs, reports, and the final project are organized.