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

UI – update 4 Software > details pages with desired empty state for 404 responses #16944

Merged

Conversation

jacobshandling
Copy link
Contributor

@jacobshandling jacobshandling commented Feb 16, 2024

Addresses #16948

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (15919-vulnerabilities-page@9ed0c19). Click here to learn what that means.

Additional details and impacted files
@@                      Coverage Diff                      @@
##             15919-vulnerabilities-page   #16944   +/-   ##
=============================================================
  Coverage                              ?   51.88%           
=============================================================
  Files                                 ?      331           
  Lines                                 ?     7600           
  Branches                              ?     2472           
=============================================================
  Hits                                  ?     3943           
  Misses                                ?     3635           
  Partials                              ?       22           
Flag Coverage Δ
frontend 51.88% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacobshandling jacobshandling changed the title prototype - vuln details UI – update 4 Software > details pages with desired empty state for 404 responses Feb 17, 2024
@jacobshandling jacobshandling marked this pull request as ready for review February 17, 2024 00:18
@jacobshandling jacobshandling requested a review from a team as a code owner February 17, 2024 00:18
@ghernandez345
Copy link
Contributor

ghernandez345 commented Feb 19, 2024

@jacobshandling I recently did some work on showing error pages for incorrect permissions for viewing software here https://github.com/fleetdm/fleet/pull/16561/files#diff-21f40eda68a8ae68da1327e18c2fbe1337e06f7e6be0b5d0325954d5794e6bc9. Im not sure if this will effect your changes but you might want to pull in main and see if everything works as expected still.

This work was part of this issue to add auth checks to viewing software.

Jacob Shandling added 7 commits February 20, 2024 10:17
Copy link
Member

@RachelElysia RachelElysia left a comment

Choose a reason for hiding this comment

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

Approved

TODO: Testing when backend is merged.

@@ -103,7 +102,13 @@ const SoftwareOSDetailsPage = ({
{
enabled: !!osVersionIdFromURL,
select: (data) => data.os_version,
onError: (error) => handlePageError(error),
onError: (error) => {
// 403s returned for both non-existent and non-accessable entities
Copy link
Member

Choose a reason for hiding this comment

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

typo *non-accessible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I knew something didn't look right there!

Copy link
Member

Choose a reason for hiding this comment

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

100 ty for jumping on error states

@jacobshandling jacobshandling merged commit 436e900 into 15919-vulnerabilities-page Feb 20, 2024
@jacobshandling jacobshandling deleted the updates-to-frontend-empty-states branch February 20, 2024 18:28
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.

None yet

3 participants