-
Notifications
You must be signed in to change notification settings - Fork 153
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
Blog index with tags rebase #3464
Conversation
adding @patjouk for review because I might have done something really silly, python wise (and it'll be good to know if I have! =D) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, just a couple questions. Thanks for so many comments!
Not approving yet because I want to try it out and think rebuilding the review app is the fastest way?
network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/blog-card.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks fine, but I'm not convinced the term list is quite right. I see @mmmavis already had some comments about this, but the vertical alignment of the smaller text isn't sitting with me the right way.
My instinct is to keep the text the same size, border-radius back to 1em, remove the vertical-align property, and set the line-height of .term
to 1.
Though the point could also be raised that this whole "pill" style feels out of place and not like anything else we do, which is why this whole thing feels weird to work on.
That all being said, this isn't significant enough to block landing this, but I would want Kristina to have another look at this when she gets back, as I think any adjustments here would be a matter of a designer and dev sitting together for 10 minutes.
No question, when Kristina's back we need to look at a lot of things. |
If you're going to merge, file a bug for her. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea same thoughts as Alan's. We will need to work with Kristina when she's back to fine tune stuff.
Note Pulse also uses pill button so we should standardize the styling. |
I will leave this open until Kristina's back, since that's only a few days from now. |
@kristinashu I've added in the tweaks from our call, test URLs are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking and working swimmingly!
Closes #3371
Related PRs/issues #3427 (#3370)
This adds tag filtering to any page of type
IndexPage
- e.g. if there is a listing page with slug/blog
, visiting/blog/tags/tag1
or/blog/tags/tag1/tag2/tag3/...
effects listing only pages posts that match that specific tag, or any of the specified tags, respectively.(tags as used in urls should be the tag slug:
Internet Health
becomesinternet-health
, etc.)Test URL
https://foundation-mofostaging-pr-3464.herokuapp.com/en/blog/
Also click on any of the blog cards' main tag to go to the dedicated tag page, e.g:
https://foundation-mofostaging-pr-3464.herokuapp.com/en/blog/tags/iot
Also also, verify that "related posts" blog cards still work:
https://foundation-mofostaging-pr-3464.herokuapp.com/en/blog/initial-test-blog-post-with-fixed-title/
Deviations from the design
As tags are no longer "filters" but real URLs, so the "clear filters" link has been (for now) omitted, in favour of people using their browser's "back" button.
The "result" phrasing has been changed to "X pages for (tag)", as the URL and page content does not suggest any searching/filtering happens, so talking about "results" without the user performing a search or active filter was problematic.
On any tag-specific page, blog cards show all tags, not just their "main" tag, or just the tag that page is for.
Design questions
body
makes it feel very small.iot
posts, but because that's not the main tag for some pages, it'll look like there are pages listed that don't belong on that page.