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

[#8467] Display questions (Filters and Like buttons) #5744

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

sevfurneaux
Copy link
Collaborator

@sevfurneaux sevfurneaux commented Nov 13, 2024

Describe your changes
This PR:

  1. Styles the <Filters /> component and changes the filters to be submittable via a <button />
  2. Add a new <LikeCard /> component used in both <QuestionModerator /> and <QuestionUser />

<Filters />

2024-11-13 09 25 43

<LikeCard />

2024-11-13 09 28 47

Tasks

  • PR name contains story or task reference
  • Steps to recreate and test the changes
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

@sevfurneaux sevfurneaux self-assigned this Nov 13, 2024
@sevfurneaux sevfurneaux changed the title [WIP] #8467 Display questions (Filters and Like buttons) #8467 Display questions (Filters and Like buttons) Nov 13, 2024
Copy link
Collaborator

@vellip vellip left a comment

Choose a reason for hiding this comment

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

Awesome work, I left you some remarks.

meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
changelog/_8467.md Outdated Show resolved Hide resolved
meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/LikeCard.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/LikeCard.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/LikeCard.jsx Outdated Show resolved Hide resolved
@sevfurneaux sevfurneaux force-pushed the sf-2024-10-display-questions branch 2 times, most recently from dcfb26b to 68f2f1c Compare November 13, 2024 11:43
@sevfurneaux
Copy link
Collaborator Author

Thanks for your comments @vellip! Hopefully I've got all of them, alongside converting to functional components.

Copy link
Collaborator

@vellip vellip left a comment

Choose a reason for hiding this comment

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

Thanks for your changes! I left you some final few notes, after that feel free to merge.

changelog/_8467.md Outdated Show resolved Hide resolved
meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
meinberlin/react/livequestions/Filters.jsx Outdated Show resolved Hide resolved
Comment on lines 9 to 11
useEffect(() => {
setIsOnShortlist(isOnShortlist)
}, [isOnShortlist])
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this for?

Copy link
Collaborator Author

@sevfurneaux sevfurneaux Nov 13, 2024

Choose a reason for hiding this comment

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

It's for users that are on "shortlists": I've reverted the HTML for this, in case there will be a future ticket to style it: https://github.com/liqd/a4-meinberlin/pull/5744/files#diff-049654a90fe27d059ce8bf97f8bfba60e7543bc13b2e847888e1010604fb2462R43-R47

@sevfurneaux sevfurneaux merged commit b6a6d8c into dev Nov 13, 2024
3 checks passed
@sevfurneaux sevfurneaux deleted the sf-2024-10-display-questions branch November 13, 2024 12:42
@sevfurneaux
Copy link
Collaborator Author

sevfurneaux commented Nov 13, 2024

Thanks for your changes! I left you some final few notes, after that feel free to merge.

@vellip thanks for your comments as well! Merged 🚀

@sevfurneaux sevfurneaux changed the title #8467 Display questions (Filters and Like buttons) [#8467] Display questions (Filters and Like buttons) Nov 14, 2024
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.

2 participants