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

Standardise entity headers on entity detail pages #79

Merged
merged 32 commits into from
Apr 1, 2019

Conversation

barrymcgee
Copy link
Contributor

@barrymcgee barrymcgee commented Mar 22, 2019

Done

  • Standardised charm and bundle headers as 'entity header'
  • Updated styling to match new designs

QA

@webteam-app
Copy link
Collaborator

@spencerbygraves
Copy link

@barrymcgee how do I look at this? The links to charms in the demo link go to jujucharms.

@barrymcgee
Copy link
Contributor Author

@spencerbygraves Added QA instructions to description.

package.json Outdated Show resolved Hide resolved
static/sass/custom/_entities.scss Outdated Show resolved Hide resolved
templates/store/_entity-header.html Show resolved Hide resolved
templates/store/_entity-header.html Show resolved Hide resolved
templates/store/_entity-header.html Show resolved Hide resolved
templates/store/_entity-header.html Outdated Show resolved Hide resolved
webapp/store/views.py Outdated Show resolved Hide resolved
)
else:
entity["user"] = entity["bundle_data"]["Meta"]["owner"]["User"]
entity["id"] = entity["bundle_data"]["Id"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming that all of the other fields already match? So the charms version of entity["id"] is already populated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

"Info"
]
return render_template(
"store/bundle-details.html", context={"entity": entity}
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not at all clear here what data is available to the template. The only way to really find out is to run the query and log it out.

Something like https://github.com/juju/jaaslibjs/blob/master/lib/charmstore.js#L170 would clear this up here. So that every piece of data is explicitly called out.

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'm not sure what you mean - can you make the change you suggest please and push it to this branch?

Copy link

@spencerbygraves spencerbygraves left a comment

Choose a reason for hiding this comment

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

Thanks @barrymcgee

Can you make the text inside the labels font-weight: 500; please, to be regular rather than light in weight.

Also, the heading is still displaying as 40px rather than h1.

Thanks

@barrymcgee
Copy link
Contributor Author

@spencerbygraves

Screenshot 2019-03-27 at 14 30 31

@spencerbygraves
Copy link

@barrymcgee thanks 👍

Copy link

@spencerbygraves spencerbygraves left a comment

Choose a reason for hiding this comment

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

👍

hatched
hatched previously approved these changes Mar 28, 2019
@hatched hatched dismissed stale reviews from spencerbygraves and themself via c7a57c5 March 28, 2019 16:35
@hatched
Copy link
Contributor

hatched commented Mar 28, 2019

QA Notes: The example links now throw.

@hatched hatched merged commit 04384ce into canonical:master Apr 1, 2019
@barrymcgee barrymcgee deleted the charm-details-page branch April 17, 2019 09:59
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.

5 participants