Skip to content

docs(web-ui): document v1.0.3 UI changes — structured action outcome, pricing warning, new types and CSS classes#28

Merged
Gsbreddy merged 1 commit into
mainfrom
cursor/codebase-documentation-alignment-e305
May 2, 2026
Merged

docs(web-ui): document v1.0.3 UI changes — structured action outcome, pricing warning, new types and CSS classes#28
Gsbreddy merged 1 commit into
mainfrom
cursor/codebase-documentation-alignment-e305

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 2, 2026

Summary

Update docs/web-ui.md to align with the v1.0.3 web UI enhancements shipped in #26. Four documentation gaps are addressed.

Why

The v1.0.3 release added structured outcome rendering to ActionsPage, a pricing-change warning to DiffPage, two new exported TypeScript types, and three new CSS utility classes. None of these were reflected in docs/web-ui.md.

Changes

  • ActionsPage section: rewrote the "After a successful mutation" description to document the new pickOutcome() coercion function, the structured outcome card (policy/pointer badges, metric grid for action/release/baseline IDs, policy reasons list), and the revised JsonPanel collapse behavior (opens by default only when pickOutcome() returns null).
  • DiffPage section: added a bullet documenting the fd-alert--warn pricing-change banner — when pricing_or_model_changed: true in the diff response, a warning shows baseline and candidate provider/version/model.
  • api.ts Types section: added PolicyResultPayload and ActionOutcomePayload type listings with cross-references to the server contract in _action_body() and the 409 policy-block response shape.
  • CSS utility classes table: added fd-inline, fd-samples, and fd-reasons — all present in index.css but previously undocumented.

Validation

Documentation-only change (no source, schema, or static bundle edits). No CI gates apply beyond normal linting.

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests
  • uv run python -m pytest
  • generate_schemas.py / schema diff — not applicable (no model changes)
  • Web static rebuild — not applicable (no web/ source changes)
  • uv run flightdeck-quickstart-verify
  • uv run flightdeck --help

Schema / Storage Impact

  • None

Risk

Low — documentation-only PR. All descriptions were verified against current source code in web/src/.

Review

  • Requested review from maintainers
  • PR is small and scoped; covers the web-ui doc gap from v1.0.3 release.

Notes

Triggered by push to main (commit e90b2c9) following the v1.0.2 web-ui docs PR (#24). This PR captures the remaining v1.0.3 (fcd4692) UI changes that were not yet documented.

Open in Web View Automation 

… pricing warning, new types and CSS classes

- ActionsPage: replace raw-JSON-open-by-default description with structured outcome
  card details (pickOutcome, policy/pointer badges, metric grid, reasons list, raw
  panel collapse behaviour)
- DiffPage: document pricing-change warning banner (fd-alert--warn, pricing block
  fields, pricing_or_model_changed flag)
- api.ts Types: add PolicyResultPayload and ActionOutcomePayload type listings with
  cross-reference to server _action_body()
- CSS table: add fd-inline, fd-samples, fd-reasons utility classes

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
@Gsbreddy Gsbreddy marked this pull request as ready for review May 2, 2026 17:40
@Gsbreddy Gsbreddy merged commit df7628b into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the cursor/codebase-documentation-alignment-e305 branch May 2, 2026 17:40
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.

2 participants