Skip to content

PMM Agentic Workflow Designer: design system tokens, component states, and UX improvements - #154

Open
thanatornpodgemini-collab wants to merge 3 commits into
alyssaxuu:masterfrom
thanatornpodgemini-collab:master
Open

PMM Agentic Workflow Designer: design system tokens, component states, and UX improvements#154
thanatornpodgemini-collab wants to merge 3 commits into
alyssaxuu:masterfrom
thanatornpodgemini-collab:master

Conversation

@thanatornpodgemini-collab

Copy link
Copy Markdown

Summary

This PR transforms the Flowy demo into a PMM Agentic Workflow Designer — a drag-and-drop workflow mapping tool for Product Marketing Managers — and introduces a systematic design system overhaul:

  • CSS token system (styles.css): Full :root custom property layer covering colors, spacing scale, typography scale, and border-radius. Five near-identical hardcoded border grays consolidated into --color-border. All hardcoded hex values replaced with tokens throughout.
  • Component state completeness: Added focus-visible rings on every interactive element (buttons, inputs, selects, template blocks); active/pressed state on buttons; disabled state; hover state on unselected canvas cards. Snap indicator color overridden to match app palette instead of Flowy's default blue.
  • Canvas empty state: Centered onboarding message with a shortcut button renders when the canvas has zero blocks; hides automatically when blocks are added. Screen-reader friendly.
  • Icon integration: 6 topbar action buttons and the search input now use inline SVG assets (already bundled in assets/). Grab handle icon added to template block headers. Previously, all 26 SVG assets were unused.
  • Accessibility: aria-live="polite" on the analytics panel for screen reader announcements; lang="en" on <html>; all icon images marked aria-hidden="true".
  • Flowy engine fixes (engine/flowy.js + flowy.min.js): rearrangeMe() NaN fix (r_array.yr_array[0].y), insertAdjacentHTML replacing innerHTML += to prevent DOM thrashing, setZoom() API for CSS transform coordinate math, and flowy.destroy() cleanup method.

Test plan

  • Open demo/index.html in a browser (no server required — fully offline)
  • Confirm canvas shows empty state on first load; empty state hides when blocks are added; reappears after clearing
  • Tab through all interactive elements — visible focus ring on every one
  • Drag a template block onto the canvas; verify card renders with correct metadata
  • Click "Build Starter Flow" — 21-node PMM workflow loads with arrows
  • Inspect :root in DevTools — all border colors, accent color, and spacing resolve to CSS variables
  • Verify snap indicator is sage green (not blue) when hovering over a parent block

🤖 Generated with Claude Code

Cash Claw and others added 3 commits May 4, 2026 16:37
Rebuilds the Flowy demo into a full-featured PMM workflow designer with a
token-based design system, component state completeness, canvas empty state,
icon integration, and accessibility improvements.

Key changes:
- styles.css: CSS custom property token system (color, spacing, typography,
  radius); consolidated 5 near-identical border grays; added focus-visible
  rings, hover/active/disabled states on buttons and inputs; canvas-card
  hover; snap indicator matches app palette instead of Flowy default blue
- index.html: SVG icons on all topbar buttons and search input; canvas empty
  state with onboarding copy and shortcut button; aria-live on analytics panel
- main.js: empty state show/hide tied to block count; grab icon in template
  blocks; build-starter-hint wired to existing starter flow builder
- engine/flowy.js + flowy.min.js: coordinate/zoom fixes, rearrangeMe NaN fix,
  insertAdjacentHTML performance fix, setZoom API, destroy cleanup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds 28 new draggable templates across 10 categories: Competitive,
Stakeholder, Strategy, GTM, Customer, Research, Content, Campaigns,
Demand Gen, Events, Enablement, and Partners.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Documents the two session commits, wrangler deploy steps for
pmm.hkexx-site.com, GitHub sync state, and next feature ideas.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant