Skip to content

Show message when there are no contents in accountability #12012

Merged
alecslupu merged 3 commits intodevelopfrom
fix/accountability-no-results
Nov 18, 2023
Merged

Show message when there are no contents in accountability #12012
alecslupu merged 3 commits intodevelopfrom
fix/accountability-no-results

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

When there are no results projects nor categories in accountability, we don't show any message, just a blank page.

This PR changes it to show a message.

I've found about this error while reviewing #11480. On that case it's showing the error when there's a category, but if there isn't any category we don't show anything. I've added specs for that case too.

As I needed to change the indentation on the spec file, I recommend making the review on a commit by commit basis to see it better.

📌 Related Issues

Testing

  1. Create a new process
  2. Create an accountability component
  3. Click in the "Preview" icon in the admin's component page

📷 Screenshots

Screenshot of the no results page in accountability module

♥️ Thank you!

@andreslucena andreslucena added module: accountability type: fix PRs that implement a fix for a bug labels Nov 16, 2023
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

👍

@alecslupu alecslupu merged commit cb300f9 into develop Nov 18, 2023
@alecslupu alecslupu deleted the fix/accountability-no-results branch November 18, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants