redhat-developer / redhat-developer/rhdh-plugins
Graduated Visibility — Frontend (issue 24 of 29)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 48
- Forks
- 120
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 337
Description
Labels: ready-to-code
Depends on: Issue 3 (#4041 permission definitions)
RHIDP Stories: RHIDP-15273
Feature: RHDHPLAN-1508 — Epic RHIDP-15270
Cross-feature dependency: RHIDP-15273 depends on RHIDP-15167 (RHDHPLAN-1509 — Entity page extensions). Graduated visibility wraps RHIDP-15167's entity page components with RequirePermission gating. Cannot gate what hasn't been built yet.
Wrap Tier 2 sections in asset detail page with <RequirePermission permission={aiCatalogAssetReadUsageDocsPermission}>, create restricted-access placeholder for denied fields, implement filtered counts on asset list page, and add usePermission hook check for ai-catalog.admin to show/hide admin links.
Tasks
From openspec/changes/ai-catalog-asset-governance/tasks.md group 3 (RHIDP-15273):
- 3.1 Wrap Tier 2 sections in asset detail page with
<RequirePermission> - 3.2 Create restricted-access placeholder component for denied Tier 2 sections
- 3.3 Ensure asset list page displays filtered counts matching backend-filtered results
- 3.4 Add
usePermissionhook check forai-catalog.adminto show/hide admin links
Specifications
openspec/changes/ai-catalog-asset-governance/specs/graduated-visibility/spec.md
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read openspec/changes/ai-catalog-asset-governance/specs/graduated-visibility/spec.md and group 3 in openspec/changes/ai-catalog-asset-governance/tasks.md first. Then locate the asset detail and list page entry points and existing RequirePermission/usePermission patterns; done means Tier 2 denial placeholders, backend-matching filtered counts, and admin links gated by ai-catalog.admin, with the entity page extensions dependency satisfied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authorization, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100