Skip to content

Conversation

jrauh01
Copy link
Collaborator

@jrauh01 jrauh01 commented Jan 3, 2025

This PR introduces new view modes for resource lists to enhance the user experience, following the approach used in icingadb-web. The implemantation includes three view modes:

  • minimal: display the most essential information in one line
  • common: like minimal, but additionally has a footer with further information
  • detailed: like common, but the information is spreaded over three lines

If a resource does not provide sufficient information for a more detailed view, the corresponding options in the view mode switcher will not be available.

Closes #136

@jrauh01 jrauh01 self-assigned this Jan 3, 2025
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jan 3, 2025
@jrauh01 jrauh01 requested a review from lippserd January 8, 2025 08:09
@lippserd lippserd requested a review from jhoxhaa January 13, 2025 07:18
Copy link
Contributor

@jhoxhaa jhoxhaa left a comment

Choose a reason for hiding this comment

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

Could you please clarify a few things:

What are the main changes introduced in this PR?
Is there anything specific you'd like me to review or pay extra attention to?

@jrauh01
Copy link
Collaborator Author

jrauh01 commented Jan 13, 2025

I've updated the PR description to show the main changes. I think there's nothing specific that requires extra attention.

Copy link
Contributor

@jhoxhaa jhoxhaa left a comment

Choose a reason for hiding this comment

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

Please use only one class instead of three (*ListItem, *ListItemMinimal, *ListItemDetailed) to handle the different levels of detail for displaying resource information.

Also use the ViewMode trait in the BaseItemList.php and BaseItemList.php instead of using it in all the other List classes.

@jrauh01
Copy link
Collaborator Author

jrauh01 commented Jan 14, 2025

I placed the constants in ViewModeSwitcher instead, because I think they fit better there.

@jrauh01 jrauh01 requested a review from jhoxhaa January 15, 2025 12:47
@jrauh01 jrauh01 force-pushed the viewmodes branch 2 times, most recently from ea8dcfc to 3f467af Compare January 15, 2025 14:22
@jrauh01 jrauh01 requested a review from jhoxhaa January 16, 2025 08:56
@jrauh01 jrauh01 requested a review from jhoxhaa January 16, 2025 10:37
@jrauh01 jrauh01 requested a review from jhoxhaa January 16, 2025 13:08
@jrauh01 jrauh01 requested a review from jhoxhaa January 21, 2025 14:31
@jrauh01 jrauh01 changed the base branch from main to fix-header-shadow February 28, 2025 09:34
@jrauh01 jrauh01 removed the request for review from jhoxhaa February 28, 2025 09:35
Base automatically changed from fix-header-shadow to main February 28, 2025 10:07
@jrauh01 jrauh01 force-pushed the viewmodes branch 2 times, most recently from 4686cda to 9104821 Compare May 13, 2025 07:26
jrauh01 added 12 commits May 20, 2025 11:23
Pass database via argument to fetchResource() instead of creating a new
connection for each loop pass what can lead to an 'Too many
connections' error.
Show footer instead of caption for `Secrets`.
... to provide a base to render resources.
Add SidecarContainers and InitContainers and return pvc for
PersistentVolumeClaims
@lippserd lippserd merged commit 3774532 into main May 21, 2025
3 of 5 checks passed
@lippserd lippserd deleted the viewmodes branch May 21, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty state styles are missing
3 participants