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

Fix rendering of local charm name and icon #528

Merged
merged 6 commits into from
May 29, 2020

Conversation

hatched
Copy link
Contributor

@hatched hatched commented May 29, 2020

Done

When a model contained a local charm it would break the rendering because it was receiving the name in an incorrect format. This renders a default charm icon when it's a local charm for the time being and fixes a styling issue with the closed sidebar.

QA

  • Bootstrap a controller on a public cloud using the juju rc2 snap.
  • Deploy a local charm.
  • The one used in testing https://github.com/dshcherb/cockroachdb-operator
  • Clone that repo.
  • Then from within the cloned directory juju deploy .
  • juju dashboard and view the built in dashboard to accept the self-signed cert.
  • Pull code
  • Open config.js and change:
    • baseControllerURL to the ip address and port (if any) from above.
    • isJuju to true
    • identityProviderAvailable to false
  • ./run
  • Open http://0.0.0.0:8036/
  • View the default model, it should show you the model details as per the design below.

Details

Fixes #515
Fixes #527
Fixes #534

Screenshots

Screen Shot 2020-05-29 at 3 56 41 PM

@webteam-app
Copy link

Copy link
Contributor

@anthonydillon anthonydillon left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@spencerbygraves
Copy link

@anthonydillon I can't see the demo, does it now use the icon from here? - #527

@spencerbygraves
Copy link

Added +1 assuming the icon here will be added soon.

@hatched hatched force-pushed the local-charm-support branch from b668aa2 to 1dde375 Compare May 29, 2020 21:59
@hatched
Copy link
Contributor Author

hatched commented May 29, 2020

@spencerbygraves I've updated it to render the default icon and added a screenshot to show you what it looks like.

@hatched hatched merged commit c36b7ab into canonical:master May 29, 2020
@hatched hatched deleted the local-charm-support branch June 1, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment