Skip to content

feat(ai): agentic UI kit, docs, and Steps timeline polish - #12

Merged
yyyyaaa merged 20 commits into
mainfrom
feat/ai-agentic-components
Aug 1, 2026
Merged

feat(ai): agentic UI kit, docs, and Steps timeline polish#12
yyyyaaa merged 20 commits into
mainfrom
feat/ai-agentic-components

Conversation

@yyyyaaa

@yyyyaaa yyyyaaa commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a runtime-agnostic AI/agentic UI kit to @constructive-io/ui, wires docs under /blocks/ai, and polishes the Steps timeline for production-quality agent traces.

  • New @constructive-io/ui/ai surfaces: loaders, prompt input, messages, markdown, tools, reasoning, Steps, plan tracker, diffs, tasks, and related chat chrome
  • Docs: collapsible AI sidebar section with per-component pages and multi-demo previews
  • Steps: quiet PlanTracker-style status icons, gapped connectors, title/icon optical alignment, short- and long-content rail handling, a11y status labels
  • Registry aggregate path for source installs; no AI SDK/runtime clients in the package

Screenshots

Docs preview for Steps (default + status catalog):

Steps docs top

Edge-case showcase (long content, nested body, short steps, single/collapsed):

Steps showcase

Gapped connector detail:

Steps gapped connectors

Test plan

  • pnpm --filter @constructive-io/ui build (package parity)
  • Open /blocks/ai and sample component pages (Steps, Tool, Prompt Input, Reasoning)
  • Confirm AI sidebar is collapsible and lists each AI component
  • On /blocks/ai/steps, review: default, all statuses, long content, short steps, single step, completed, collapsed
  • Verify Steps title first-line aligns with status icons; connectors keep 6px gaps and readable length on title-only rows
  • Storybook AI/Overview → Steps edge cases (if running package Storybook)
  • Confirm no dependency on AI SDK / live endpoints in normal CI

yyyyaaa added 20 commits August 1, 2026 14:34
Introduce presentational AI components under @constructive-io/ui/ai and the
@constructive/ai registry block: composer, messages, loaders, markdown,
code blocks, and stick-to-bottom chat scroll. Motion uses Constructive
tokens with Beautiful UI–inspired pixel loaders and shimmer; runtime stays
host-owned (no AI SDK coupling).
Add reasoning, thinking traces, tools, HITL approval, plan tracker,
context ring, task rows, RAG cards, recommendations, streaming text,
feedback, suggestions, and file upload. Includes status adapters for
desktop and AI SDK shapes, Storybook coverage, unit tests, and a
better-ui pass (concentric radii, transform-only meters, reduced-motion,
hit areas).
Add DiffTable for proposed row edits, @constructive/ai-kit aggregate,
and /blocks/ai docs with live tabbed demos. Wire sidebar, topbar install
command, sitemap, and docs contract checks into the component sequence.
Drop the rigid docs contract checker from gen/gen:check and root check:flows.
Keep generate-ui-demo-source as the only gen check.
Introduce a top-level AI nav group under Components, with Overview plus
individual docs routes for every AI surface. Each page includes a live
preview, install snippet, and prev/next among AI components.
Subpath exports such as /ai were collapsing under Next
optimizePackageImports, which can leave client components undefined and
render a blank page after hydration.
Promote AI to an Application-style always-visible nav group after
Components, collapse Components while browsing AI routes, and fix the
overview eyebrow label.
Match the Components nav pattern: collapsible AI group with count, open
by default on AI routes, while Components stays collapsed there.
Replace border-l + absolute icon offsets with a fixed-width rail so dots,
checks, and spinners share the same center axis as the vertical bar.
Center the connector under each marker using items-center + flex-1
instead of absolute offsets. Rebuild required for docs (package
exports resolve to dist).
Position both the vertical line and markers with left-1/2/-translate-x-1/2
so the rail is one continuous axis; marker backgrounds punch the line.
Center the 1px connector with left: 7.5 in a 16px rail and place the
marker with left:0 so both share a crisp mid-axis without translate.
Fill equal circular badges for done/running/pending so the 1px connector
threads a consistent mid-axis through every marker without relying on
asymmetric Lucide glyph optics.
Solid disk markers plus a pixel-snapped 1px rule so the timeline axis
stays centered through every status badge.
Quiet PlanTracker-style icons, gapped connectors, title/icon alignment,
short/long-content rail handling, multi-demo docs showcase, and Storybook
edge-case story.
Lightweight syntax highlighting with language presets, elegant filename
plus language pill header, and fade/show-more expand for long sources,
with multi-language docs demos.
Replace outline Button double-ring chrome with a single floating control,
fold Scroll Button docs into Chat Container with a redirect, and fix the
full-bleed chat preview so it no longer leaves an empty right gutter.
Align AI component docs to the concise writing guide, rebuild the
overview as simple-to-complex tabs with full-width stages, redesign
ContextRing as a circular tick meter (with SSR-safe coords), and clear
StreamingText blur after reveal completes.
Drop temporary PR and Steps preview images from the branch.
@yyyyaaa
yyyyaaa marked this pull request as ready for review August 1, 2026 12:12
@yyyyaaa
yyyyaaa merged commit 5b5a1ba into main Aug 1, 2026
6 checks passed
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