Skip to content

Feat/migrate study levels & groups - #10

Open
Ryan2486 wants to merge 20 commits into
masterfrom
feat/Migrate-Study-Levels-&-Groups
Open

Feat/migrate study levels & groups#10
Ryan2486 wants to merge 20 commits into
masterfrom
feat/Migrate-Study-Levels-&-Groups

Conversation

@Ryan2486

Copy link
Copy Markdown
Member

This pull request introduces foundational changes for routing and API integration in the Angular app, laying the groundwork for future feature development. Key updates include setting up application routing to a new LevelComponent, adding HTTP client support, and implementing a new API service for managing groups. Additionally, it removes the placeholder template and legacy license file, streamlining the codebase.

Routing and App Structure

  • Added initial routing in app.routes.ts, redirecting the root path to the new LevelComponent for the /level route.
  • Replaced the placeholder template in app.html with a minimal router outlet for dynamic content rendering.

API Integration

  • Added provideHttpClient() to the app configuration to enable HTTP services across the app.
  • Implemented GroupApi service with CRUD methods for group management, using Angular's HttpClient.

Dependency and Model Updates

  • Added lucide-angular dependency to package.json, preparing for future UI enhancements.
  • Removed the unused levelAbr property from the Group model.

Cleanup

  • Removed the legacy MIT license file from the project.

feat(app): update app configuration to include HTTP client
feat(app): clean up app.html by removing placeholder content
# Conflicts:
#	src/app/app.config.ts
#	tsconfig.json

@rivon0507 rivon0507 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some concerns should be addressed so that we follow the angular coding style guide:

  • we should use input signals instead of the @Input decorator for component inputs. Here's how to migrate
  • we should use the inject() function instead of the constructor injection for dependency injection. Here's how to migrate

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.

2 participants