Skip to content

Add element and purpose pages to portal - #72

Merged
anjuchamantha merged 19 commits into
wso2:feature/portalfrom
rashmithachamikara:feature/portal-element-purpose-pages
Aug 1, 2026
Merged

anjuchamantha merged 19 commits into
wso2:feature/portalfrom
rashmithachamikara:feature/portal-element-purpose-pages

Conversation

@rashmithachamikara

Copy link
Copy Markdown
Contributor

Purpose

Enhance the consent management portal with purpose and element catalog management, improved consent workflows, dashboard insights, filtering, sorting, and general UI refinements.

Goals

  • Add purpose and element list, details, creation, editing, versioning, and deletion capabilities.
  • Add a dashboard with consent statistics and recent activity.
  • Improve consent registry filtering, API-backed sorting, and presentation.
  • Support explicit consent rejection and display consent lifecycle events.
  • Improve navigation, breadcrumbs, scrolling, labels, colors, and responsive layouts.

Approach

  • Added catalog API clients, query hooks, types, forms, dialogs, and pages for purposes and elements.
  • Added backend endpoints and OpenAPI definitions required by the portal.
  • Added dashboard queries and UI components.
  • Extended consent APIs and UI components for rejection, lifecycle history, filtering, and sorting.
  • Added reusable components for copying values, version selection, property editing, and route-scroll management.
  • Expanded translations and automated test coverage.

User stories

  • As an administrator, I can manage purposes and data elements through the portal.
  • As an administrator, I can inspect and manage catalog versions.
  • As a user, I can view consent statistics and recent activity.
  • As a user, I can filter and sort consents efficiently.
  • As a user, I can reject consent requests and review consent lifecycle events.

Release note

Adds purpose and element catalog management, a consent dashboard, enhanced consent filtering and sorting, explicit rejection support, lifecycle history, and portal UI improvements.

  • Unit tests

    • Added coverage for catalog APIs, purpose forms, consent details, registry interactions, status presentation, and route scrolling.
    • Updated existing consent approval and registry tests.
  • Integration tests

    • Extended backend proxy integration tests for the new catalog and consent operations.

Security checks

  • Followed secure coding standards: Yes
  • Ran FindSecurityBugs plugin and verified report: N/A — not applicable to the Go and TypeScript changes
  • Confirmed that this PR does not commit keys, passwords, tokens, usernames, or other secrets: Yes

Test environment

  • Backend Go test environment
  • Frontend Vitest environment
  • Local portal development environment

Learning

Implemented the changes using the existing React, Oxygen UI, TanStack Query, Go BFF, and OpenAPI patterns established in the repository.

- Remove type column
- Add consent id to consent table
- Make IDs copyable
- Add /me/consents/{consentId}/reject to portal backend
- Update frotnend to support explicit rejection
- Improve UI for rejection and revoke buttons
- Fix: Update consent management api. Make expiration reason human readable
- Update portal backend to include status history
- Update portal frontend to display consent lifecycle
- Improve no items, error display.
- Add scroll to top on page navigations
- Improve purpose and element create modals
@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4ebd2164-f690-44bd-9600-dfb2a5291bc9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread portal/frontend/.env.example Resolved
@rashmithachamikara rashmithachamikara changed the title Feature/portal element purpose pages Add element and purpose pages to portal Jul 31, 2026
- Fix license headers
- Fix documented default org id to ORG-001
@rashmithachamikara

Copy link
Copy Markdown
Contributor Author

Added documentation improvements here in f7914cb. Also resolved the corepack-related issue by referencing identity apps. Additionally, introduced quickstart sections, a detailed doc, and removed no-longer-necessary implementation plans.

@anjuchamantha

@anjuchamantha

Copy link
Copy Markdown
Contributor

We can merge this PR. Please make sure this branch is stable and working as expected.
Also is role based access control added ? Please create issues to any pending tasks/future improvements.
@rashmithachamikara

@rashmithachamikara

Copy link
Copy Markdown
Contributor Author

We can merge this PR. Please make sure this branch is stable and working as expected. Also is role based access control added ? Please create issues to any pending tasks/future improvements. @rashmithachamikara

Hi. Needs to add AGENTS.md files. This will be added in this PR. RBAC is not introduced in this PR, as it may contain too many changes for a PR. Will push updates once it's done and verified

The issue creation is in progress.
@anjuchamantha

@rashmithachamikara

Copy link
Copy Markdown
Contributor Author

The AGENTS.md files have been added. Tested and verified that the app is functional.

@anjuchamantha

@anjuchamantha
anjuchamantha merged commit 2a74606 into wso2:feature/portal Aug 1, 2026
4 checks passed
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.

2 participants