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

Report types listed in a modal @ report plugins #3718

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Rieven
Copy link
Contributor

@Rieven Rieven commented Oct 23, 2024

Changes

Added modal to list report types of report plugins.

Issue link

#3719

Closes #3719

Demo

image

QA notes

Run yarn dev or yarn build to see the changes. (clear cache needed maybe)


Code Checklist

  • All the commits in this PR are properly PGP-signed and verified.
  • This PR only contains functionality relevant to the issue.
  • I have written unit tests for the changes or fixes I made.
  • I have checked the documentation and made changes where necessary.
  • I have performed a self-review of my code and refactored it to the best of my abilities.
  • Tickets have been created for newly discovered issues.
  • For any non-trivial functionality, I have added integration and/or end-to-end tests.
  • I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
  • I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.

Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

@Rieven Rieven requested a review from a team as a code owner October 23, 2024 12:00
@Rieven Rieven requested a review from HeleenSG October 23, 2024 12:14
@Rieven Rieven self-assigned this Oct 23, 2024
ammar92
ammar92 previously approved these changes Oct 23, 2024
@stephanie0x00
Copy link
Contributor

Checklist for QA:

  • I have checked out this branch, and successfully ran a fresh make reset.
  • I confirmed that there are no unintended functional regressions in this branch:
    • I have managed to pass the onboarding flow
    • Objects and Findings are created properly
    • Tasks are created and completed properly
  • I confirmed that the PR's advertised feature or hotfix works as intended.
  • I checked the logs for errors and/or warnings and made issues where necessary

What works:

Seems to work as expected.

What doesn't work:

n/a

Bug or feature?:

n/a

Comment on lines 43 to 47
<div class="dropdown-list" id="plugin-report-types">
<ul>
{% for report_type in report_types %}<li>{{ report_type.name }}</li>{% endfor %}
</ul>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be a modal / dialog element.

Copy link
Member

Choose a reason for hiding this comment

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

The dropdown implementation currently follows something resembling the APG Menu Button Pattern. Are you sure it should be a Dialog instead? If so, why?

@Rieven Rieven changed the title Report types as dropdown list @ report plugins Report types listed in a modal @ report plugins Nov 6, 2024
Copy link

sonarcloud bot commented Nov 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

Add report types as a dropdown list at report plugins
5 participants