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

Group histories with the same name, created_at, and comment; add tooltip for rule status #562

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

vanessuniq
Copy link
Contributor

@vanessuniq vanessuniq commented Apr 14, 2023

This PR addresses the need to group histories with the same name, created_at, and comment, and adds a tooltip explaining the options for rule status. The changes introduced in this PR include:

  1. Extract the common history grouping functionality into a separate mixin named HistoryGroupingMixin.vue.
  2. Import the HistoryGroupingMixin.vue mixin in both the parent (RuleHistories.vue) and child (History.vue) components.
  3. Use the shared mixin's methods in both components to avoid repeating code.
  4. Implement a tooltip to display the rule status options and their descriptions.

With these changes, histories with the same name, created_at, and comment are now grouped together, and the history count badge in the parent component displays the correct grouped count. Additionally, users can now view an informative tooltip that explains the options for rule status.

@vanessuniq vanessuniq temporarily deployed to vulcan-pr-562 April 14, 2023 14:51 Inactive
@vanessuniq vanessuniq added javascript Pull requests that update Javascript code feature request labels Apr 14, 2023
@vanessuniq vanessuniq temporarily deployed to vulcan-pr-562 April 14, 2023 20:24 Inactive
@vanessuniq
Copy link
Contributor Author

How the tooltip looks like now

Screenshot 2023-04-14 at 4 22 17 PM

@rlakey
Copy link
Contributor

rlakey commented Apr 14, 2023

Tooltip looks great!

…omment

Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
@vanessuniq vanessuniq merged commit f8e0b5c into master Apr 26, 2023
1 check passed
@vanessuniq vanessuniq deleted the enhencement_patch branch April 26, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants