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

✨ Archetypes management: Add navigation and placeholder page component #1308

Merged
merged 7 commits into from
Sep 1, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Aug 23, 2023

Work done:

  • Add route /archetypes
  • Add sidebar navigation "Archetypes" under "Application Inventory"
  • Very basic placeholder page component
  • Archetypes page component
  • Add types, rest functions and queries for basic archetypes CRUD
  • Add MSW stub api for archetypes CRUD (assuming the endpoint isn't available from hub yet)
  • Archetypes "placeholder" table

Resolves #1263

Full function archetypes table will be done under #1264

Full function archetypes add/edit form will be done under #1265


Base display, with mock/stub data from MSW:
image

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch coverage: 57.14% and project coverage change: +0.03% 🎉

Comparison is base (4ad632d) 42.54% compared to head (5303609) 42.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1308      +/-   ##
==========================================
+ Coverage   42.54%   42.58%   +0.03%     
==========================================
  Files         136      136              
  Lines        4207     4220      +13     
  Branches     1000     1000              
==========================================
+ Hits         1790     1797       +7     
- Misses       2405     2411       +6     
  Partials       12       12              
Flag Coverage Δ
client 42.58% <57.14%> (+0.03%) ⬆️
server ∅ <ø> (∅)

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

Files Changed Coverage Δ
client/src/app/layout/SidebarApp/SidebarApp.tsx 26.66% <ø> (ø)
client/src/app/api/rest.ts 55.42% <53.84%> (-0.20%) ⬇️
client/src/app/Paths.ts 90.90% <100.00%> (+0.21%) ⬆️

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

@sjd78 sjd78 force-pushed the archetypes-issue1263 branch 2 times, most recently from ee8665a to b6fd2f7 Compare September 1, 2023 03:19
@sjd78 sjd78 marked this pull request as ready for review September 1, 2023 03:21
@sjd78 sjd78 force-pushed the archetypes-issue1263 branch from b6fd2f7 to 8ba8e5d Compare September 1, 2023 03:26
@sjd78 sjd78 changed the title ✨ [WIP] Archetypes: Add navigation and placeholder page component ✨ Archetypes management: Add navigation and placeholder page component Sep 1, 2023
comments: string;
criteriaTags: Tag[];
archetypeTags: Tag[];
assessmentTags?: Tag[];
Copy link
Member

Choose a reason for hiding this comment

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

I think these are going to be CategorizedTag but probably TBD what that data model will look like in its final form.

Copy link
Member Author

Choose a reason for hiding this comment

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

I figure there will be a bunch of those kinds of mismatches, but if we make some good guesses, we shouldn't be far off. I just named it after this mockup:
image

Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

A few small changes requested but looking good.

@sjd78 sjd78 mentioned this pull request Sep 1, 2023
  - Add route `/archetypes`
  - "Archetypes" added under "Application Inventory"
  - Very basic placeholder page component

Signed-off-by: Scott J Dickerson <[email protected]>
  - Display a list of archetypes

  - Simple column components for Tags, Maintainers, Applications

  - Filtering on name

  - Action button is in place but doesn't do anything

  - TODO items in sources for things that need to be added later

Signed-off-by: Scott J Dickerson <[email protected]>
Signed-off-by: Scott J Dickerson <[email protected]>
@sjd78 sjd78 force-pushed the archetypes-issue1263 branch from 8ba8e5d to 0c1db05 Compare September 1, 2023 16:04
@sjd78 sjd78 requested a review from ibolton336 September 1, 2023 16:05
@sjd78
Copy link
Member Author

sjd78 commented Sep 1, 2023

A few small changes requested but looking good.

Changes made. I also pulled the individual table column components out into their own files.

Copy link
Collaborator

@mturley mturley left a comment

Choose a reason for hiding this comment

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

One nit you can ignore if you want, otherwise LGTM

client/src/app/pages/archetypes/archetypes-page.tsx Outdated Show resolved Hide resolved
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.

Implement the Archetypes nav item & page
3 participants