Skip to content

Fix profile notifications#8943

Merged
andreslucena merged 4 commits intodecidim:developfrom
mainio:fix/usergroup_no_members_notification
Mar 2, 2022
Merged

Fix profile notifications#8943
andreslucena merged 4 commits intodecidim:developfrom
mainio:fix/usergroup_no_members_notification

Conversation

@lahdeero
Copy link
Copy Markdown
Contributor

@lahdeero lahdeero commented Mar 1, 2022

🎩 What? Why?

When viewing user group members, page shows "This group doesn't have any members yet." even it has members. This happens because notifications.js removed 'hide' class.

Fixes also similar issues with followers and user's own groups page (see screenshots below)

📌 Related Issues

#1784

Testing

  1. Sign in
  2. Usermenu -> "My public profile"
  3. "Groups"
  4. pick a group (after picking path should be similar to "/profiles/usergroupnickname/members")
  5. See notification (screenshot below) even group has members.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

image

image

image

♥️ Thank you!

@andreslucena andreslucena added module: core type: fix PRs that implement a fix for a bug labels Mar 1, 2022
@lahdeero lahdeero changed the title Fix user group no members notification Fix profile notifications Mar 1, 2022
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Awesome! I don't know why, but I thought this was something from how we were generating these associations in the seeds 😄
Just a small doubt, I see that we're still leaving this in following:

<div class="empty-notifications callout secondary">

<div class="empty-notifications callout secondary">

Should we drop it there too?

@lahdeero
Copy link
Copy Markdown
Contributor Author

lahdeero commented Mar 2, 2022

Should we drop it there too?

Yeah. Those classes (without 'hide' class) aren't breaking anything, but they are just useless.

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@andreslucena andreslucena merged commit 300c5db into decidim:develop Mar 2, 2022
@andreslucena
Copy link
Copy Markdown
Member

Can you please backport to v0.26-stable 🙏🏽? Thanks

entantoencuanto added a commit that referenced this pull request Mar 2, 2022
* develop: (57 commits)
  Add a subtitle to assemblies and processes pages (#8918)
  Add a subtitle to votings page (#8919)
  Fix profile notifications (#8943)
  Fix email for verification conflict with managed users (#8926)
  Move VAPID keys generators to core (#8923)
  Fix officialized user event missing translations (#8927)
  Fix verification report with multitenants: notify it only to admins of that organization (#8929)
  Fix processes creation form with stats, metrics and announcements (#8925)
  Fix flaky spec in meetings multi-date selectors (#8924)
  Local HTML validator for the CI (#8937)
  Fix translatable presence validator for hyphenated locales (#8795)
  Fix link to docs in initiatives admin (#8921)
  Fix initiatives signatures issues (#8448)
  Fix the meetings export to also include unpublished meetings (#8874)
  Fix heading order in the consultation question page (#8920)
  Fix diff mode selector roles and tabindexes (#8912)
  Fix budget hard dependency and caching flag issues in comments (#8899)
  Fix emoji picker hiding Foundation Abide form errors (#8886)
  Fix logical heading order for the endorsers list (#8892)
  Fix Foundation Abide errors for Rails remote (AJAX) forms (#8889)
  ...
lahdeero pushed a commit to mainio/decidim that referenced this pull request Mar 2, 2022
@lahdeero lahdeero deleted the fix/usergroup_no_members_notification branch March 2, 2022 12:33
lahdeero pushed a commit to mainio/decidim that referenced this pull request Mar 2, 2022
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants