Skip to content

feat(ui): complete PP-M6 monitoring UI platform - #48

Merged
CN059 merged 8 commits into
devfrom
agent/pp-m6-ui-states
Aug 28, 2026
Merged

CN059 merged 8 commits into
devfrom
agent/pp-m6-ui-states

Conversation

@CN059

@CN059 CN059 commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

分支生命周期提醒:本 PR 合并后(squash),源任务分支将由仓库自动删除。
后续开发请基于最新 dev 新建分支。

变更目的

完成 PP-M6 UI 平台,使参考插件仅使用 Floatile UI IR 即可表达监控型界面,无需携带第三方 Slint 或 HTML。

关联:PP-M6、FR-PLUGIN-01、F11。

变更内容

  • 增加 loading、error、empty、content 状态组合,以及 Badge 和 Progress。
  • 增加有界 List、Grid 和 Sparkline;动态集合和图表数据必须声明资源预算。
  • 增加 Responsive 容器和宿主拥有的主题颜色 token,不允许插件注入 CSS、Slint 表达式或任意颜色源码。
  • 为 Button、Toggle、Progress、Gauge 和 Sparkline 生成受验证的无障碍语义,并保持 UI API 旧 minor 文档兼容。
  • 更新 Rust SDK 和 AI Balance 参考插件;包级验收会读取真实 widget.ftui,验证 PP-M6 组件、预算和标签契约。
  • 将 UI API 更新至 1.6,并在路线图中记录 PP-M6 自动化契约完成状态。

验证

环境:Linux x86_64、Rust 1.97.1、wasm32-wasip2。

  • cargo fmt --all -- --check
  • cargo check --workspace --all-targets --locked
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --all-targets --locked
  • cargo check -p floatile-sdk --target wasm32-wasip2 --locked
  • cargo deny --locked check advisories bans sources

以上检查全部通过。cargo deny 仅报告仓库现有的 duplicate warnings。

未验证

  • X11、Wayland、Windows 和 macOS 上的真实视觉交互及屏幕阅读器 accessibility tree。
  • 完整跨平台无障碍属于 PP-M10,不作为本 PR 的完成声明。
  • license gate 仍由未决许可 ADR 管理;本 PR 不创建可分发产物。

CN059 added 8 commits August 27, 2026 19:12
Introduce UI API 1.1 with minor-gated Badge support, typed string/boolean/number projection slots, bounded Progress rendering, and deterministic loading/error/empty/content composition. Update the AI balance reference plugin to consume the generic UI contract and compile the generated state branches through the real Slint interpreter.

Refs: PP-M6, FR-PLUGIN-01, F11, F12

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --locked; cargo test --workspace --all-targets --locked; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: visual behavior on real X11, Wayland, Windows, and macOS desktops
Advance PP-M6 with UI API 1.2 minor-gated collection contracts. Project bounded Vec<String> state into Slint models, render Grid columns as explicit rows, expose SDK builders, and exercise the path in AI Balance.

Refs: PP-M6, FR-PLUGIN-01, F11, F12

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets; cargo test --workspace --all-targets; cargo clippy --workspace --all-targets -- -D warnings; cargo check -p floatile-sdk --target wasm32-wasip2; cargo deny check advisories bans sources

Unverified: visual behavior on real X11, Wayland, Windows, and macOS desktops.
Advance PP-M6 with UI API 1.3 monitoring charts. Add a minor-gated Sparkline contract with bounded number models, required accessibility labels, host-owned semantic tones, SDK support, runtime projection, and AI Balance reference usage.

Refs: PP-M6, FR-PLUGIN-01, F11, F12

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --locked; cargo test --workspace --all-targets --locked; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: visual and accessibility behavior on real X11, Wayland, Windows, and macOS desktops.
Advance PP-M6 with UI API 1.4 responsive layouts. Add a minor-gated Responsive container with a bounded logical-pixel breakpoint, host-width-driven compact and wide branches, SDK support, renderer compilation evidence, and AI Balance reference usage.

Refs: PP-M6, FR-PLUGIN-01, F11

Tests: cargo fmt --all -- --check; CARGO_BUILD_JOBS=1 cargo check --workspace --all-targets --locked; CARGO_BUILD_JOBS=1 cargo test --workspace --all-targets --locked; CARGO_BUILD_JOBS=1 cargo clippy --workspace --all-targets --locked -- -D warnings; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: responsive visual behavior on real X11, Wayland, Windows, and macOS desktops.
Advance PP-M6 with UI API 1.5 fixed host palette support. Define guest-safe named color tokens in the UI schema, reject unknown or conflicting color inputs, resolve tokens inside the renderer, expose an SDK helper, and apply the accent token in AI Balance.

Refs: PP-M6, FR-PLUGIN-01, F11, F12

Tests: cargo fmt --all -- --check; CARGO_BUILD_JOBS=1 cargo check --workspace --all-targets --locked; CARGO_BUILD_JOBS=1 cargo test --workspace --all-targets --locked; CARGO_BUILD_JOBS=1 cargo clippy --workspace --all-targets --locked -- -D warnings; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: dynamic system-theme switching and visual contrast on real X11, Wayland, Windows, and macOS desktops.
Introduce UI API 1.6 accessibility labels for toggles, progress indicators, and gauges while preserving legacy document rendering. Map validated control roles, values, and checked state into generated Slint and update the Rust SDK, AI Balance reference, shell evidence, and contract documentation.

Refs: PP-M6, FR-PLUGIN-01, F11

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --locked; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test --workspace --all-targets --locked; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: real screen-reader accessibility trees and interaction on X11, Wayland, Windows, and macOS
Inspect the real AI Balance package output and assert that its validated FTUI consumes the PP-M6 state, collection, metric, chart, theme, responsive, and accessibility contracts without shipping third-party Slint or HTML.

Refs: PP-M6, FR-PLUGIN-01, F11

Tests: cargo fmt --all -- --check; cargo test -p floatile-cli --test ai_balance --locked; cargo clippy -p floatile-cli --test ai_balance --locked -- -D warnings

Unverified: real screen-reader behavior and visual rendering on X11, Wayland, Windows, and macOS
Record the completed UI API 1.1 through 1.6 slices and the package-level AI Balance acceptance evidence. Keep real screen-reader behavior, cross-platform visuals, and complete accessibility explicitly assigned to later PP-M10 environment validation.

Refs: PP-M6, FR-PLUGIN-01, F11

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --locked; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test --workspace --all-targets --locked; cargo check -p floatile-sdk --target wasm32-wasip2 --locked; cargo deny --locked check advisories bans sources

Unverified: real screen-reader behavior and visual interaction on X11, Wayland, Windows, and macOS; cargo deny license gate remains governed by the unresolved licensing ADR
@CN059
CN059 merged commit a343e5f into dev Aug 28, 2026
4 checks passed
@CN059
CN059 deleted the agent/pp-m6-ui-states branch August 28, 2026 00:13
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