Skip to content

[DO NOT MERGE] feat(frontend): add Integrations Hub mock UI - #405

Draft
FraterCCCLXIII wants to merge 21 commits into
mainfrom
feat/integrations-hub-frontend
Draft

FraterCCCLXIII wants to merge 21 commits into
mainfrom
feat/integrations-hub-frontend

Conversation

@FraterCCCLXIII

Copy link
Copy Markdown
Collaborator

DO NOT MERGE. This is an early Integrations Hub frontend for mock/SaaS review. There is no production backend yet. The UI stays hidden unless ENABLE_INTEGRATIONS_HUB is true or 1.

HUMAN:
Pending human QA. Do not merge until the Integrations Hub backend exists and this UI has been manually signed off.

  • A human has tested these changes.

AGENT:

Stacked on PR #174 (design-update / OpenHands-Neo settings theme). Target is design-update, not main.


Why

We need a reviewable Integrations Hub (personal + admin) in the mock/SaaS frontend so we can iterate on catalog, requests, approvals, and agent connection before a real API exists.

Summary

  • Add a personal + admin Integrations Hub UI behind ENABLE_INTEGRATIONS_HUB (defaults off; accepts true and 1).
  • Drive the screens with stub/mock data (use-integrations-hub-stub, mock SaaS handlers).
  • Include catalog, connect wizard, agent requests/approvals, agent connection/profiles, admin overview/catalog/user-requests, overflow tooltips, and a non-admin mock org.

Issue Number

N/A (frontend prototype / do-not-merge review)

How to Test

  1. From frontend/: npm run dev:mock:saas (typically http://localhost:12000).
  2. Open Settings → Integrations Hub (shown in mock SaaS because VITE_MOCK_SAAS sets enable_integrations_hub: true).
  3. Walk personal tabs: Integrations, Agent Requests, Agent Connection.
  4. Switch orgs: Acme Corp (owner/admin) vs Beta LLC (member, not admin). Admin Hub nav should hide for Beta.
  5. On Agent Requests: checkbox alignment, chat icon (MessageSquareShare) to /conversations/:id, tooltips, 12px gap before approve/deny, overflow tooltips on clipped cells.
  6. Catalog: grid/list toggle, +/check enable, no-auth connectors unlabeled, Request integration uses BrandButton (text-sm).
  7. Without the flag (ENABLE_INTEGRATIONS_HUB unset/false), Hub nav and routes stay hidden.

Video/Screenshots

Local mock/SaaS QA was done in-browser during implementation. No recorded video attached.

Type

  • Feature

Notes

Do not merge

  • No real Integrations Hub API. Persistence is in-memory stub/mock only.
  • Feature flag defaults to off in OSS and enterprise.
  • Git settings page is not cut over; comments mark it as the future replacement.

Feature flag

  • Env: ENABLE_INTEGRATIONS_HUB (true / 1).
  • Enterprise: enterprise/server/auth/constants.py, enterprise/server/config.py.
  • OSS web client: openhands/app_server/web_client/{web_client_models,default_web_client_config_injector}.py.
  • Frontend: feature_flags.enable_integrations_hub hides nav + redirects routes when false.
  • Tests cover 'true', '1', and default-false.

Routes (when flag is on)

  • Personal: /settings/integrations, /settings/integrations/agent-requests, /settings/integrations/agent-connection
  • Admin (team org admin/owner): /settings/integrations-hub, /settings/integrations-hub/catalog, /settings/integrations-hub/user-requests

What the UI includes

Personal Integrations

  • Catalog of official + custom connectors (logos, branding, list/grid).
  • + / check toggle to enable/disable (no Registered chip, no row chevron).
  • Connect wizard (OAuth / API key / none). No-auth rows stay unlabeled.
  • Request integration modal (catalog pick or custom MCP).
  • Add custom MCP modal.

Agent Requests

  • Pending tool-access table with select, tool, justification, identity, scopes, actions.
  • Tighter checkbox column (w-8, pr-0) and vertically centered checkbox.
  • Conversation icon link (MessageSquareShare) to /conversations/:id (mock ids 1/2/3).
  • Tooltips on chat / approve / deny.
  • 12px gap between chat and approve/deny.
  • Bulk approve/deny menu (BrandButton, not text-xs).

Agent Connection

  • Connection details, API keys (reveal/copy/rotate), permission profiles.
  • Edit/save profile modals, per-tool access modes.

Admin Hub

  • Overview: users, connections, duplicate accounts, request counts.
  • Catalog: enable org-wide connectors, add custom MCP.
  • User requests: approve/deny incoming integration requests.

Overflow tooltips

  • HubTruncatedText shows a hover tooltip only when text actually overflows (ResizeObserver / scrollWidth).
  • Used on agent-request cells, admin identity/duplicate/catalog rows, cards, tool lists, modal headers, connection labels, nav mobile trigger.

Mock orgs

  • Current user 99 / me@acme.org.
  • Acme Corp (id 2): owner.
  • Beta LLC (id 3): member only (not admin), so admin Hub is hidden.
  • Org switch persists mockCurrentOrgId.

Theme / settings chrome

  • Request / wizard / bulk actions use BrandButton (h-9, text-sm).
  • Hub mobile nav is a dropdown (desktop links stay breakpoint-gated).
  • Shared view-mode toggle, modal backdrop, context-menu, git provider icons updated for hub logos.
  • i18n keys in frontend/src/i18n/translation.json + declaration.ts.

Tests added/updated

  • Hub: catalog logos, view toggle, +/check toggle, count badge, official catalog, truncated text, nav, main hub, permission-profile utils.
  • Settings nav / settings routes / settings-utils for the feature flag.
  • Git provider icon.
  • Backend flag tests: enterprise/tests/unit/server/test_constants.py, tests/unit/app_server/test_default_web_client_config_injector.py.

Follow-ups (out of scope)

  • Real API + persistence (catalog, connections, approvals, profiles).
  • Production cutover of /settings/git → Hub.
  • Human QA checkbox above.

Made with Cursor

FraterCCCLXIII and others added 16 commits August 12, 2026 17:14
Wire agent-canvas-style --oh-* / cool-grey tokens, AgentServerUIRoot, and neo palette application so the SaaS shell can share the same theme foundation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Port agent-canvas layout utilities so settings-like pages can reuse the same form, list, and sidebar spacing classes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match agent-canvas settings chrome with tokenized nav links, logo header, bottom user menu, and settings-owned gutters.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restyle org management, members list, and git org rows with shared settings list/form tokens and updated mocks/tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace hardcoded greys with base/surface/muted/primary tokens so budgets and usage monitoring match agent-canvas.

Co-authored-by: Cursor <cursoragent@cursor.com>
Update spinners, badges, chips, context menus, and related shell controls to use --oh-* / muted tokens instead of hardcoded greys.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use neo toast tokens, custom CircleX error layout, loading helper, and route call sites through the shared handlers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the pill toast chrome with agent-canvas-aligned surface, border, radius, and status icon colors.

Co-authored-by: Cursor <cursoragent@cursor.com>
Track remaining hardcoded hex surfaces for follow-up tokenization work.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restyle the settings rail (sidebar, drawer, white brand mark), forms, integrations, and related surfaces to match OpenHands-Neo tokens and agent-canvas patterns.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify Personal settings as org-scoped (This org chip), fold Integrations
and Skills into that section, and move User/Application to the bottom.
Continue settings shell, credits, MCP, and chrome alignment.

Co-authored-by: Cursor <cursoragent@cursor.com>
Improve loading skeleton fidelity and stagger, and let non-searchable
dropdowns click-open/click-close like other selects.

Co-authored-by: Cursor <cursoragent@cursor.com>
Override the shared fixed list-row height and keep the Default badge
inline with the profile name so stacked mobile content no longer
overflows the overflow-hidden profiles list.

Co-authored-by: Cursor <cursoragent@cursor.com>
Update frontend tests for neo chrome (toasts, dropdowns, budgets, git settings) and show the org-wide badge on budgets/credits.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Stage the personal and admin Integrations Hub for mock/SaaS review without enabling it in production until ENABLE_INTEGRATIONS_HUB is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
@FraterCCCLXIII FraterCCCLXIII added the do-not-merge Do not merge this pull request label Sep 15, 2026
FraterCCCLXIII and others added 5 commits September 16, 2026 07:14
Add selection-based bulk actions, details panels for scopes and usage, max access caps, and tighter modal spacing so the mock UI matches the source hub.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clear pointer hover on click/leave and use the neo instant-foreground transition so the disable icon does not linger.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add a Set as default action so the Default badge can move between saved profiles without deleting the current one.

Co-authored-by: Cursor <cursoragent@cursor.com>
Preview first-run versus after-setup GitHub connector flows on a dedicated page, and move the official catalog updated timestamp into the modal footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the design-review variants page with the production catalog modal so each integration’s auth requirements drive setup, and confirm before deleting saved settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
Base automatically changed from design-update to main September 18, 2026 18:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Do not merge this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant