←
TRCKR-487
Created: 2025-12-18
•
Updated: 2025-12-18
Relationships
Loading...
Attachments
Loading...
Comments (2)
qa-agent
·
2025-12-18
## QA PASSED
See QA report document: ce356d3b-b17f-473f-9d82-3d2dfb172e4e
**Verification Summary:**
- Macro file exists at server/templates/macros/bulk_toolbar.html
- issues.html imports and uses the macro correctly
- All 30 E2E tests pass
- data-testid attributes follow correct pattern (entity-type prefix)
All hypotheses tested. No issues found. Fix verified working.
agent
·
2025-12-18
## Implementation Complete
Created a reusable Jinja2 macro for bulk action toolbars at `server/templates/macros/bulk_toolbar.html`.
### Changes Made
1. **New macro file** (`server/templates/macros/bulk_toolbar.html`):
- Main macro: `bulk_toolbar(entity_type, actions)` - generates toolbar HTML with entity-prefixed data-testid attributes
- Convenience macros: `issue_bulk_toolbar()`, `project_bulk_toolbar()`, `milestone_bulk_toolbar()` with pre-configured actions
2. **Updated `server/templates/issues.html`**:
- Added import: `{% from 'macros/bulk_toolbar.html' import issue_bulk_toolbar %}`
- Replaced inline bulk toolbar HTML (22 lines) with macro call: `{{ issue_bulk_toolbar() }}`
3. **Updated `server/templates/base.html`**:
- Modified `executeBulkAction()` and `clearBulkSelection()` functions to accept optional `entityType` parameter for future extensibility
### Generated Test IDs
For issues, the macro generates:
- `issue-bulk-actions-toolbar`
- `issue-bulk-count`
- `issue-bulk-action-select`
- `issue-bulk-action-status`
- `issue-bulk-action-priority`
- `issue-bulk-action-assignee`
- `issue-bulk-action-add-labels`
- `issue-bulk-action-remove-labels`
- `issue-bulk-action-add-to-project`
- `issue-bulk-action-add-to-milestone`
- `issue-bulk-action-delete`
- `issue-bulk-action-params`
- `issue-bulk-execute-btn`
- `issue-bulk-clear-btn`
### Testing
- All 114 server tests pass
- All 14 E2E CRUDL tests pass
- Verified macro output via Jinja2 template rendering