Skip to content

add basic admin control panel#34

Merged
ccbrown merged 1 commit intomainfrom
control-panel
May 12, 2025
Merged

add basic admin control panel#34
ccbrown merged 1 commit intomainfrom
control-panel

Conversation

@ccbrown
Copy link
Owner

@ccbrown ccbrown commented May 12, 2025

What It Does

Adds a basic admin control panel where high level team configuration information can be viewed.

Copilot AI review requested due to automatic review settings May 12, 2025 14:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces a basic admin control panel for viewing high-level team configuration and billing information. Key changes include:

  • Adding a new fetchAll method to retrieve and store all teams in the frontend model.
  • Creating new pages for teams overview and individual team details in the control panel.
  • Updating the header and layout to integrate the control panel for administrator users.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/src/models/teams.ts Added a new fetchAll API call for loading teams.
frontend/src/app/(user-area)/control-panel/teams/page.tsx Introduced a teams overview page with team listing.
frontend/src/app/(user-area)/control-panel/teams/[teamId]/page.tsx Added team detail page with AWS integrations table.
frontend/src/app/(user-area)/control-panel/page.tsx Created a redirect page for the control panel entry.
frontend/src/app/(user-area)/control-panel/layout.tsx Defined the layout for the control panel pages.
frontend/src/app/(user-area)/control-panel/TabLayout.tsx Implemented the tab layout for the control panel.
frontend/src/app/(user-area)/Header.tsx Updated the header to conditionally show the control panel link for administrators.
Comments suppressed due to low confidence (1)

frontend/src/app/(user-area)/control-panel/teams/page.tsx:36

  • [nitpick] Consider refactoring the nested ternary operator to improve readability, for example by using an if/else block or a helper function.
{team.entitlements.teamFeatures ? 'Team Features' : team.entitlements.individualFeatures ? 'Individual Features' : 'None'}

@ccbrown ccbrown merged commit 3fb2fdb into main May 12, 2025
3 checks passed
@ccbrown ccbrown deleted the control-panel branch May 12, 2025 14:41
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