Skip to content

Rename b2b/manage to management/admin and show the new management components - #18

Draft
brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:feat-management-admin-sample
Draft

brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:feat-management-admin-sample

Conversation

@brionmario

@brionmario brionmario commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Purpose

The b2b/manage sample showed agents only, with a hand-written table and delete dialog. This renames it to management/admin (an "Admin" app) and makes it show the management components @thunderid/react now ships, so it demonstrates the SDK rather than working around gaps in it. It also moves the Android quickstart to the SDK's new api.auth package.

Draft until @thunderid/react 1.15.0 and Android SDK v1.10.0 are released (1.14.0 shipped without these components): package-lock.json names 1.15.0 without an integrity hash, so npm ci fails until then. After the release, run npm install in management/admin and fold the refreshed lockfile into this commit.

Approach

Rename: b2b/manage becomes management/admin, with its banner, release workflow entry, root README row and AGENTS.md updated.

Management pages (management/admin/src/pages):

  • Projects: ProjectList, ProjectCreate and ProjectDetails (editable, deletable). ProjectSwitcher sits at the top of the sidebar. The SDK reads the current project itself, so ApplicationList, AgentList, ApplicationCreate and AgentCreate are scoped to it without extra props. A project id is never passed as an organization unit id.
  • Organization units: OrganizationUnitList (root units, or a unit's children with ?parent=), OrganizationUnitCreate and OrganizationUnitDetails (editable, deletable, with child units, users, groups and roles).
  • Sharing: an editable SharingPolicies panel on the user, application, role and flow pages, the four resource types the server shares.
  • Roles and groups: RoleDetails with editable RolePermissions and RoleAssignments. GroupDetails with GroupMembers.
  • Flows: a small list built on getFlows (the SDK has no flow list component) and a flow page with its sharing policies.
  • Agents: AgentList and AgentCreate replace the hand-written table and form. The agent onboarding flow moves to /agents/onboard.
  • Account: OrganizationUnitSwitcher in the top bar (a compact select through its custom render, hidden when the user can access fewer than two units), and /account with UserProfile and ChangeCredential.
  • The home page has a card per section, and the README lists every route with the SDK components it uses.
  • Components the sample no longer needs are removed (api/agents.ts, AgentRow, AgentAvatar, RecordHeader, ConfirmDialog, TrashIcon), with their CSS.

Android quickstart: dev.thunderid.android.auth.FederatedAuthSession becomes dev.thunderid.android.api.auth.FederatedAuthSession, and the pin moves from v1.6.0 to v1.10.0, the release that carries the package move. Not compiled yet, since the release isn't out.

Verified against a local build of the javascript-sdks branch (packed and installed into the sample): tsc -b, npm run lint, npm run format:check and npm run build all pass.

Related Issues

  • N/A

Related PRs

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
    • management/admin/README.md
  • Tests provided. (Add links if there are any)

…ization units, flows, sharing policies and account pages, and move the Android quickstart to the api.auth package

Signed-off-by: Brion <info@brionmario.com>
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.

1 participant