Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): add package detail page #172 #251

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Conversation

christophenne
Copy link
Member

@christophenne christophenne commented Feb 13, 2024

Closes #172

📑 Description

This PR introduces the package detail page, as well as the corresponding changes to the package overview page. The actions available for each package are different on the two views, so I split them into two "components" (template + some controller functions).
For the new details appearing on the detail page, the PackageManifest schema had to be changed, this is the corresponding PR in the packages repo: glasskube/packages#24

I also did some refactoring which almost got a little out of hand:

  • added mux router (for easier path param handling) and moved all route handlers into separate functions
  • moved support page to a separate endpoint
  • moved template loading

✅ Checks

  • My code requires changes to the documentation
  • I have updated the documentation as required

ℹ Additional Information

@christophenne christophenne force-pushed the christoph/package-details branch from 1b0d09b to e1fef48 Compare February 13, 2024 15:53
@christophenne christophenne force-pushed the christoph/package-details branch from e1fef48 to 4b2f242 Compare February 14, 2024 08:11
@christophenne christophenne marked this pull request as ready for review February 14, 2024 08:19
@christophenne christophenne requested a review from a team as a code owner February 14, 2024 08:19
@christophenne christophenne force-pushed the christoph/package-details branch from 4b2f242 to f9aa45c Compare February 14, 2024 09:52
Copy link
Member

@kosmoz kosmoz left a comment

Choose a reason for hiding this comment

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

Please also run go mod tidy to update the go.mod file.

cmd/glasskube/cmd/serve.go Outdated Show resolved Hide resolved
internal/web/components/pkg_detail_btns/controller.go Outdated Show resolved Hide resolved
@christophenne christophenne force-pushed the christoph/package-details branch from f9aa45c to 926a58b Compare February 14, 2024 11:12
@christophenne christophenne requested a review from kosmoz February 14, 2024 11:12
@kosmoz kosmoz merged commit 1298292 into main Feb 15, 2024
6 checks passed
@kosmoz kosmoz deleted the christoph/package-details branch February 15, 2024 10:53
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.

Show Package Details on separate page
2 participants