feat(privacy-proxy-ui): RBAC admin panel for the privacy proxy#303
Open
AnshuJalan wants to merge 1 commit into
Open
feat(privacy-proxy-ui): RBAC admin panel for the privacy proxy#303AnshuJalan wants to merge 1 commit into
AnshuJalan wants to merge 1 commit into
Conversation
New package that exposes every privacy-proxy admin capability via an enterprise-styled UI. Wallet sign-in once per token lifetime, then bearer auth on every call. Stack matches cross-chain-dex-ui (React 18 + Vite 5 + TypeScript 5, wagmi/RainbowKit/viem, TanStack Query, Tailwind with the surge-* palette, react-hot-toast). Adds react-router-dom for deep-linkable URLs. Surfaces: - Login screen via wallet signature; session cached in localStorage and enforced on every protected route. - Dashboard counts (members by role, rules + entries, lambdas, gated RPC endpoints, declared roles). - Members: list/filter/upsert (typed user attributes — kyc, blacklisted), delete (self-delete guarded), revoke active sessions. - Access rules: list/filter/create/replace/delete; per-entry add, edit (lambda), and remove on the detail page. Selector input offers either a synthetic RPC method dropdown or the 4-byte hex with a top-10 common-selector picker plus a custom-hex fallback. - Read-only references: Lambdas (per-role, with expected selectors and signatures), Gated RPC endpoints, Roles. All three carry an amber "Read-only" tag. Local-dev wiring: Vite proxies /api/* → privacy-proxy on 8080 so the proxy package needs no CORS layer. Defaults work against http://127.0.0.1:8080 out of the box. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/privacy-proxy-ui— React 18 + Vite 5 + TS admin panel that surfaces every privacy-proxy admin capability (1–16) behind a wallet-signature sign-in.cross-chain-dex-ui(wagmi/RainbowKit/viem, TanStack Query, Tailwind on the surge-* palette, react-hot-toast). Only new top-level dep isreact-router-dom@^6for deep-linkable URLs./api/*to the privacy-proxy on:8080so browsers see same-origin and no CORS layer is needed on the Rust side.Surfaces
localStorage, used as bearer until expiry. 401 from the proxy auto-drops the session.kyc,blacklisted); delete (self-delete guarded); revoke sessions.expected_selectoras an aqua chip with the resolved signature underneath (via a local common-selector table).