VB Project Planning

<impact-effort>

2x2 prioritization matrix with drag-and-drop between quadrants (Quick Wins, Big Bets, Fill-Ins, Money Pit).

Overview

A web component that renders a 2×2 impact/effort prioritization matrix with four quadrants: Quick Wins, Big Bets, Fill-Ins, and Money Pit. Items can be dragged between quadrants using native drag-and-drop or transferred via keyboard. Built on <drag-surface> for reorder and cross-surface transfer. Ideal for sprint prioritization, feature triage, and design workshops.

Attributes

AttributeValuesDefaultDescription
srcstring—URL to a JSON array of items ({ id, quadrant, label }). Fetched once per value; a new value replaces the items and aborts an older in-flight request
titlestring—Optional heading above the matrix
compactboolean—Reduces grid height, padding, and label sizes for denser layouts

Child Attributes

Each direct child of <impact-effort> represents an item in the matrix. These attributes control placement and drag behavior:

Attribute Type Default Description
data-quadrant enum "quick-wins" Target quadrant: quick-wins, big-bets, fill-ins, or money-pit
draggable boolean — Must be set to "true" for drag capability. Auto-applied if missing.
data-id string auto-generated Stable identifier for the item, included in event detail. Auto-generated if missing.

Quadrant Descriptions

The matrix maps items along two axes — Impact (vertical) and Effort (horizontal) — creating four strategic quadrants:

Quadrant Position Description Typical Items
quick-wins Top-left High impact · Low effort Easy fixes, quick improvements, low-hanging fruit
big-bets Top-right High impact · High effort Major features, platform rewrites, strategic investments
fill-ins Bottom-left Low impact · Low effort Nice-to-haves, polish tasks, minor enhancements
money-pit Bottom-right Low impact · High effort Expensive features with unclear ROI, legacy migrations

Axis labels ("Impact" with an up arrow, "Effort" with a right arrow) are rendered alongside the grid for visual context. Each quadrant has a subtle background tint — green for Quick Wins, amber for Big Bets, blue for Fill-Ins, and red for Money Pit.

Drag Interaction

Items move between quadrants via native drag-and-drop. Each quadrant contains a <drag-surface> element sharing the same group identifier, enabling cross-surface transfers.

  • Drag — grab any item and drop it onto a different quadrant. The item's data-quadrant attribute updates automatically.
  • Keyboard — <drag-surface> provides keyboard reorder and transfer. Focus an item and use the keyboard shortcuts to move it between surfaces.
  • Live announcement — when an item moves between quadrants, a hidden live region announces the change for screen readers using the item's text (e.g., "Moved Add keyboard shortcuts to Big Bets").

Data Mode

Load items from a JSON file by setting the src attribute. The file should contain an array of item objects — the same shape as .items — each with an id, quadrant, and label (or text). The URL is fetched once; impact-effort:ready fires once the loaded cards are in the DOM, with their counts. Changing src replaces the items (the request for an older URL is aborted). ready fires once per matrix; every src load also fires impact-effort:items-changed with source: 'src' once its cards are in the DOM.

Each JSON entry creates an <article class="ie-card"> with draggable="true" and the appropriate data-quadrant and data-id attributes. Entries with story fields (storyId, persona, action, benefit) become a <user-story detail="minimal"> with those fields in its persona / action / benefit slots.

Events

EventDetailDescription
impact-effort:move{ itemId, from, to, item }Fired when an item is dragged between quadrants; from and to are quadrant names
impact-effort:ready{ quadrantCounts }Fired once after the first render, with the number of items per quadrant. With src, fired once the loaded cards are in the DOM (after the View Transition's update). Once per element: not re-fired by a later src change (watch items-changed with source 'src') or when the matrix is moved in the DOM
impact-effort:items-changed{ items, source: 'property' | 'src' }Fired after each .items assignment (source 'property') and after each src load's cards are in the DOM (source 'src')
impact-effort:upgraded—Fired (in a microtask) each time the matrix connects and upgrades

JavaScript API

<impact-effort> follows the HTML-first + JS-first dual-mode contract. Reactive consumers (Montane, Lit, Solid, etc.) should wait for impact-effort:upgraded before assigning .items.

PropertyTypeDescription
.items Item[] Replace the matrix items with an array of { id, quadrant, label } records (text is accepted in place of label). Runs a keyed diff by id: cards whose id is already on the board — including HTML-authored ones — are moved, not duplicated; ids not in the array are removed. Items without an id are keyed by their label (the second item with the same label keeps the second such card), so they also survive drags and round-trips; give items an id if their labels can change. The getter reads the current DOM, so it reflects drags: each entry is the record you assigned with its current quadrant (authored cards read as { id, quadrant, label }), and assigning it back changes nothing.

Accessibility

  • The grid uses role="region" with aria-label="Impact-Effort prioritization matrix"
  • Each quadrant section has an aria-label combining the quadrant name and its impact/effort description (e.g., "Quick Wins: High impact · Low effort")
  • Axis labels ("Impact" and "Effort") use aria-hidden="true" since the quadrant labels already convey the meaning
  • A hidden live region with aria-live="polite" announces item moves between quadrants using the item's text and the quadrant name
  • Keyboard transfer is provided by the underlying <drag-surface> components
  • Each <drag-surface> is exposed as a list of its cards (role="list" / "listitem", kept in step as cards are added and moved). If any card is an element that may not be a list item, such as <article>, that surface is exposed as a labelled role="group" instead and the cards keep their own role. The drag-surface's own move announcements are moved to a hidden status region just after the list, since a list may only contain list items.
  • Respects prefers-reduced-motion: reduce by disabling all transitions
  • Uses container-type: inline-size and stacks to a single column at narrow viewports (<30rem)
  • Print styles remove minimum heights, set static cursors, and add visible borders

Related

  • <user-story> — Story cards that serve as draggable items in the matrix
  • <empathy-map> — Empathy maps for discovering pain points to prioritize
  • <story-map> — Horizontal story mapping for sprint planning
  • <user-persona> — Persona cards providing context for prioritized items
  • <drag-surface> — The underlying drag-and-drop primitive used by each quadrant
  • vb-project-planning — the whole package: import '@profpowell/vb-project-planning' registers every component
↑