Skip to content

[$250] [Performance] Move search bulk actions logic to a custom hook #83281

@luacmartins

Description

@luacmartins

Problem
When navigating to the Reports page (e.g. from LHB), SearchPage is a god component that handles bulk actions logic within the component even though it doesn't need that logic until a user selects items.

Solution
Create a useSearchBulkActions hook, move all bulk action logic inside the hook. Additionally, create a new component SearchBulkActionsButton, conditionally rendering it if any items are selected. SearchBulkActionsButton will then call the useSearchBulkActions hook to setup the available actions

Issue OwnerCurrent Issue Owner: @RachCHopkins
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022026110594833597631
  • Upwork Job ID: 2026110594833597631
  • Last Price Increase: 2026-02-24

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions