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

WD-8394 - Add secrets tab #1684

Merged
merged 2 commits into from
Jan 22, 2024
Merged

WD-8394 - Add secrets tab #1684

merged 2 commits into from
Jan 22, 2024

Conversation

huwshimi
Copy link
Contributor

Done

  • Add a component for the secrets tab.
  • Linked to the secrets tab from the model details.

QA

  • Go to the details page for a model.
  • Check that there is a "Secrets tab".
  • Clicking on the secrets tab should take you to a blank page.

Details

https://warthogs.atlassian.net/browse/WD-8394

@webteam-app
Copy link

Demo starting at https://juju-dashboard-1684.demos.haus

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5e8ef26) 0.00% compared to head (d6273c8) 94.93%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #1684       +/-   ##
=========================================
+ Coverage      0   94.93%   +94.93%     
=========================================
  Files         0      178      +178     
  Lines         0     5175     +5175     
  Branches      0     1502     +1502     
=========================================
+ Hits          0     4913     +4913     
- Misses        0      242      +242     
- Partials      0       20       +20     

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

Copy link
Contributor

@vladimir-cucu vladimir-cucu left a comment

Choose a reason for hiding this comment

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

Looks good to me! 🚀

@@ -242,6 +243,7 @@ const Model = () => {
</>
)}
{shouldShow("logs", query.activeView) && <Logs />}
{shouldShow("secrets", query.activeView) && <Secrets />}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we might need to add case "secrets": in the definition of shouldShow. Currently, the Secrets page doesn't render.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, thanks!

{
active: activeView === "secrets",
label: "Secrets",
onClick: (e: MouseEvent) => handleNavClick(e),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a test here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@huwshimi huwshimi merged commit e320315 into canonical:main Jan 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants