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

Hotfix/case studies redesign #739

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

VirginiaDooley
Copy link
Contributor

@VirginiaDooley VirginiaDooley commented Oct 4, 2023

Ref https://app.asana.com/0/0/1205591250217702/f

Dependent on #738

This work:

  • renames the current case studies template to 'In the Media' to reflect the content it displays
  • creates a new case studies page with a grid of blog posts filtered by 'case_study'

I've also included a few fixes following #738

  • fixes the list structure for screen readers when multiple tags exist on a post
  • adds the conditional for blog post list
  • adds some custom css to format the tags now that they are lists
Screenshot 2023-10-09 at 12 20 52 PM Screenshot 2023-10-09 at 12 21 05 PM Screenshot 2023-10-09 at 3 14 23 PM Screenshot 2023-10-09 at 3 14 13 PM

@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (ded9955) 79.08% compared to head (19ffe08) 79.08%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #739   +/-   ##
=======================================
  Coverage   79.08%   79.08%           
=======================================
  Files          27       27           
  Lines         545      545           
=======================================
  Hits          431      431           
  Misses        114      114           
Files Coverage Δ
democracy_club/apps/hermes/admin.py 100.00% <ø> (ø)
...mocracy_club/apps/hermes/templatetags/post_tags.py 100.00% <100.00%> (ø)

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

@VirginiaDooley VirginiaDooley force-pushed the hotfix/case-studies-redesign branch 3 times, most recently from d85696e to 5fafe77 Compare October 4, 2023 16:44
@@ -1,7 +1,7 @@
{% load thumbnail %}
{% load typogrify_tags %}
{% if posts %}
<h2>On the blog</h2>
{% comment %} <h2>On the blog</h2> {% endcomment %}
Copy link
Contributor Author

@VirginiaDooley VirginiaDooley Oct 4, 2023

Choose a reason for hiding this comment

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

I'd like to use this functionality to DRY up the case study template but it doesn't work if we keep this header or the link to all posts below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Bekabyx any thoughts on this? This template is used as an includes in a few spots.

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've resolved this by adding a boolean to the context tag to show the header expect for the case studies template.

Copy link
Contributor

@Bekabyx Bekabyx left a comment

Choose a reason for hiding this comment

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

Works as expected locally - wasn't able to check it on staging as this code isn't what's currently up there but it was fairly easy to replicate anyway :)

- Rename blog tags
- Add custom css for tags in a list
- Refactor conditional when tags exist
@VirginiaDooley VirginiaDooley merged commit 6f12120 into master Oct 10, 2023
3 checks passed
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.

3 participants