Files
gt-agent-company/openspec/changes/update-agent-asset-action-button-permissions/tasks.md
sexygoat f9fe76ff99
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 1m5s
fix:bug
2026-05-14 09:50:34 +08:00

843 B

1. Spec

  • 1.1 Review docs/权限按钮.md and confirm the login response is the source of button permission codes
  • 1.2 Add OpenSpec proposal, tasks, and agent-asset-list delta spec for action-button permissions
  • 1.3 Validate the new change with strict OpenSpec validation

2. Implementation

  • 2.1 Extend login response typing and session persistence for the backend-provided buttons array
  • 2.2 Define explicit H5 permission-code mapping for agent asset-list IoT card and device action buttons:
    • asset:card_stop_h5
    • asset:card_start_h5
    • asset:device_stop_h5
    • asset:device_start_h5
  • 2.3 Gate asset-list action-button rendering by the current session button permissions
  • 2.4 Verify card and device action visibility for sessions with and without matching button permission codes