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

ThreatsDataViews: Update bulk action support #39912

Open
wants to merge 65 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e63ea79
Add ThreatsDataView
nateweller Oct 11, 2024
a290866
Add ToggleGroupControl
dkmyta Oct 24, 2024
fdfb6aa
Optimize
dkmyta Oct 24, 2024
597a7dd
Fix strings
dkmyta Oct 24, 2024
aa3cb93
Fix types
dkmyta Oct 24, 2024
7525d3d
Remove unused useState var
dkmyta Oct 24, 2024
cec6f1e
Add ThreatsDataView
nateweller Oct 11, 2024
3857b01
Rebase
dkmyta Oct 25, 2024
dc1f451
Fix merge issues
dkmyta Oct 25, 2024
7dcc908
Do not render when empty, also signifies free
dkmyta Oct 25, 2024
91c4087
Fix stories
dkmyta Oct 25, 2024
657f3f7
Remove Protect code
dkmyta Oct 25, 2024
7572620
Rebase
dkmyta Oct 25, 2024
b2caf51
Fix test imports
dkmyta Oct 25, 2024
5a4b3d2
Improve bulk action support
dkmyta Oct 25, 2024
bcd1f7c
Update comments
dkmyta Oct 25, 2024
998c819
Update naming
dkmyta Oct 25, 2024
afaae9d
Refactor
dkmyta Oct 25, 2024
509e512
Rebase
dkmyta Oct 25, 2024
6c3c360
Components: add hoverShow prop to IconTooltip
dkmyta Oct 27, 2024
81d25c6
changelog
nateweller Oct 27, 2024
f919501
Add ThreatsDataView
nateweller Oct 11, 2024
aaa4bed
Add ToggleGroupControl filters to ThreatsDataView
dkmyta Oct 28, 2024
8829ea3
Rebase
dkmyta Oct 28, 2024
428e35c
Updates
dkmyta Oct 28, 2024
9b5bdd2
Components: add hoverShow prop to IconTooltip
dkmyta Oct 27, 2024
18277d1
changelog
nateweller Oct 27, 2024
2ebc6a0
Add ThreatsDataView
nateweller Oct 11, 2024
c822afe
Ensure threats with in_progress or error fixers are not eligible for …
dkmyta Oct 28, 2024
7c84a37
Remove duplicate type
dkmyta Oct 28, 2024
2d529b8
Rebase, fix conflicts
dkmyta Oct 28, 2024
df3ce66
Fix rebase issues
dkmyta Oct 28, 2024
81594ac
Fixes, updates
dkmyta Oct 28, 2024
5ef82d8
Rebase, fix conflicts
dkmyta Oct 28, 2024
4daaabb
Update prop names
dkmyta Oct 28, 2024
65fd9e3
Improve type checks
dkmyta Oct 29, 2024
a62ccdc
Merge branch 'add/component/threats-data-view-toggle-group-control-al…
dkmyta Oct 29, 2024
e353eef
Components: add hoverShow prop to IconTooltip
dkmyta Oct 27, 2024
0802197
changelog
nateweller Oct 27, 2024
fd2ff80
Fix
dkmyta Oct 29, 2024
f27d02f
Add ThreatsDataView
nateweller Oct 11, 2024
a94d964
Add support for bulk processing of all actions
dkmyta Oct 29, 2024
e87dbbf
Rebase
dkmyta Oct 29, 2024
ae443bf
Story fixes
dkmyta Oct 29, 2024
a279f35
Rebase
dkmyta Oct 29, 2024
fb3fee8
Fix filtering logic
dkmyta Oct 29, 2024
02e98fc
Update toggle text
dkmyta Nov 4, 2024
2031331
Rebase, fix conflicts
dkmyta Nov 6, 2024
78c626e
Fix story data
dkmyta Nov 6, 2024
f5eb54c
Merge branch 'trunk' into add/component/threats-data-view-toggle-grou…
dkmyta Nov 6, 2024
2fffd3b
changelog
dkmyta Nov 6, 2024
dd7cee7
Fix changelog entry
dkmyta Nov 6, 2024
c2b6b0f
Fix types
dkmyta Nov 6, 2024
e047efc
Update approach to counting threats
dkmyta Nov 6, 2024
73ad0d9
Rebase, fix conflicts
dkmyta Nov 6, 2024
2f17bb7
Fix tests
dkmyta Nov 6, 2024
1806863
Update lock file
dkmyta Nov 6, 2024
3dcbe6c
Revert lock file changes
dkmyta Nov 6, 2024
4b96b2d
Merge branch 'add/component/threats-data-view-toggle-group-control-al…
dkmyta Nov 6, 2024
a043f70
Remove types
dkmyta Nov 6, 2024
e55e556
Set __nextHasNoMarginBottom to avoid deprecation warning
dkmyta Nov 6, 2024
92c963c
Merge branch 'add/component/threats-data-view-toggle-group-control-al…
dkmyta Nov 6, 2024
7588b91
Changelog
dkmyta Nov 7, 2024
8a360d8
Fix lint errors
dkmyta Nov 7, 2024
1d81655
Update type
dkmyta Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Add ToggleGroupControl to ThreatsDataViews for easily toggling between Active and Historical threats
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Adds bulk actions to the ThreastDataViews header
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function ThreatFixerButton( {
onClick,
}: {
threat: Threat;
onClick: ( items: Threat[] ) => void;
onClick: ( items: ( string | number )[] ) => void;
className?: string;
} ): JSX.Element {
const [ isPopoverVisible, setIsPopoverVisible ] = useState( false );
Expand Down Expand Up @@ -66,7 +66,7 @@ export default function ThreatFixerButton( {
setIsPopoverVisible( true );
return;
}
onClick( [ threat ] );
onClick( [ threat.id ] );
},
[ onClick, errorMessage, isPopoverVisible, threat ]
);
Expand Down
Loading
Loading