Files
dify/api/fields
Stephen ZhouandClaude Opus 5.5 50e8aa83d4 refactor(web): migrate workspace members and RBAC roles to the console contract
Remove service/access-control/use-{member,workspace}-roles.ts and
useMembers. Consumers use consoleQuery directly; the role and member
invalidations those hooks owned now live in query-policies.

Backend contract fixes this depended on:
- RBAC role list/create/update/copy and role-member list now document
  their query parameters and request bodies, and the member list and
  member role endpoints document `language`; previously the generated
  client could not send them.
- Member `roles` is typed as `{id, name}` summaries, which is what the
  endpoint returns, instead of a free-form map. The web previously typed
  them as full roles and as ISO timestamps; both were wrong.

A shared role-list options factory normalizes the loosely typed role DTOs
into the UI role type. test/console/operation-hooks lets specs answer
console operations by path while other queries stay real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:24:42 +08:00
..