openwork icon indicating copy to clipboard operation
openwork copied to clipboard

Extract Desktop Policies into a dashboard section

Open reachjalil opened this issue 4 months ago • 2 comments

Summary

  • Extract Desktop Policies into a dedicated dashboard section.
  • Preserve policy loading, ordering, create/edit/view/delete actions, permissions, entitlement messaging, and success/error states.
  • Keep the policy table and its empty/loading states responsive at narrow widths.

What changed

  • Section boundary — moves the policies experience into DesktopPoliciesSection with one accessible heading and a stable test target.
  • Behavior ownership — keeps policy queries, ordering, reauthentication, soft deletion, and authorization inside the extracted section.
  • Responsive table — retains the narrow-width overflow container around the policy table.
  • Screen composition — reduces the route-level screen to the page shell plus the reusable section.
  • Regression coverage — adds focused rendered-section coverage and updates role-hierarchy expectations.

Why

Desktop Policies should behave as an independently composable dashboard section without losing its permissions or lifecycle behavior. Extracting the section makes that boundary explicit and easier to test.

Verification

Current scoped candidate: d7c93159f68a5c31a600d948c616c2ccafddf81f on dev@7908ad1dd429aaabcbb273c22872eb003a34ef7a.

  • [x] Desktop Policies section and role-hierarchy tests — 8 passed, 0 failed.
  • [x] pnpm --dir ee/apps/den-web typecheck — passed.
  • [x] git diff --check upstream/dev...HEAD — passed.
  • [x] Scope audit — 1 feature commit, 5 intended files; no inherited auth or evaluator changes.
  • [x] Original Kitchen candidate cae9d0892fd20c205dd05f924c489ab5a10d1197 passed desktop-policies-dashboard-section.
  • [ ] The deterministic browser flow was not rerun after the clean current-dev rebuild; the original exact-head result is proof provenance, not a fresh current-head claim.

Observed behavior

The original exact-head deterministic web flow signed in, opened Desktop Policies at desktop and 390px widths, found one dedicated section heading, verified that the loaded, empty, or loading state remained inside the section, and confirmed that any policy table kept its horizontal-overflow container.

Risks and untested scope

  • The acceptance flow proves the section boundary and responsive containment; it does not create, edit, or delete a policy.
  • Entitlement and role-specific action states remain regression-test and human-review targets.
  • Proof artifacts remain private in the authenticated Kitchen receipt.

Lineage

Exact candidate

  • Current base: 7908ad1dd429aaabcbb273c22872eb003a34ef7a
  • Current head: d7c93159f68a5c31a600d948c616c2ccafddf81f
  • Original Kitchen head: cae9d0892fd20c205dd05f924c489ab5a10d1197
  • Kitchen run: f1c67cf1-5d8d-4caf-a437-871ee54d6db7

Automation boundary

Prepared by OpenWork Kitchen, then reconstructed as one clean feature commit on current dev under the authorized GitHub identity @reachjalil. This remains a draft; review requests, ready-for-review, merge, release, and deployment remain manual.

reachjalil avatar Jul 29 '26 12:07 reachjalil

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, v0 Jul 30, 2026 10:54am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 30, 2026 10:54am

vercel[bot] avatar Jul 29 '26 12:07 vercel[bot]

Someone is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 29 '26 12:07 vercel[bot]