Overhaul bottom bar: batch add, stat block view, custom creature fields #2

Closed
opened 2026-03-11 10:28:21 +01:00 by dostulata · 0 comments
Owner

Summary

Redesign the bottom bar creature search to support a streamlined batch-add flow for predefined creatures, repurpose the search button as a stat block viewer, and add optional fields (initiative, AC, max HP) for custom creatures with clear labeling and action-oriented hint text.

Acceptance Criteria

Batch Add Predefined Creatures

  • Dropdown opens automatically as the user types a query
  • Clicking a creature entry shows a count badge (1) and a confirm button on that row
  • Clicking the same entry again increments the count
  • Selecting a different creature replaces the current queue with the new creature at count 1
  • Clicking the confirm button adds N copies of the creature to combat and resets the queue
  • Pressing Enter with a queued creature adds N copies and resets the queue

Custom Creature with Optional Fields

  • Typing a name with no bestiary match shows optional fields for initiative, AC, and max HP
  • Custom creature can be added with only a name (optional fields left empty)
  • Custom creature can be added with some or all optional fields filled in
  • Each optional field has a clear label indicating its purpose

Stat Block Viewer from Dropdown

  • Clicking the view button opens the stat block for the currently focused creature in the dropdown
  • The button is disabled or no-op when no creature is focused

Improved Search Hint Text

  • Search field placeholder displays action-oriented text such as "Search creatures to add..."

Edge Cases

  • Changing the search query resets the queue when the queued creature is no longer visible
  • Pressing Escape resets the queue and closes the dropdown
  • Optional custom fields appear when the typed name no longer matches the bestiary
  • Non-numeric input in optional fields is ignored (treated as empty)
## Summary Redesign the bottom bar creature search to support a streamlined batch-add flow for predefined creatures, repurpose the search button as a stat block viewer, and add optional fields (initiative, AC, max HP) for custom creatures with clear labeling and action-oriented hint text. ## Acceptance Criteria ### Batch Add Predefined Creatures - [x] Dropdown opens automatically as the user types a query - [x] Clicking a creature entry shows a count badge (1) and a confirm button on that row - [x] Clicking the same entry again increments the count - [x] Selecting a different creature replaces the current queue with the new creature at count 1 - [x] Clicking the confirm button adds N copies of the creature to combat and resets the queue - [x] Pressing Enter with a queued creature adds N copies and resets the queue ### Custom Creature with Optional Fields - [x] Typing a name with no bestiary match shows optional fields for initiative, AC, and max HP - [x] Custom creature can be added with only a name (optional fields left empty) - [x] Custom creature can be added with some or all optional fields filled in - [x] Each optional field has a clear label indicating its purpose ### Stat Block Viewer from Dropdown - [x] Clicking the view button opens the stat block for the currently focused creature in the dropdown - [x] The button is disabled or no-op when no creature is focused ### Improved Search Hint Text - [x] Search field placeholder displays action-oriented text such as "Search creatures to add..." ### Edge Cases - [x] Changing the search query resets the queue when the queued creature is no longer visible - [x] Pressing Escape resets the queue and closes the dropdown - [x] Optional custom fields appear when the typed name no longer matches the bestiary - [x] Non-numeric input in optional fields is ignored (treated as empty)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dostulata/initiative#2