Skip to content

Endpoint modal alignment (Mini API Registry)#992

Open
ruwinirathnamalala wants to merge 26 commits intobuerokratt:devfrom
rootcodelabs:923/endpoint_modal_alignment
Open

Endpoint modal alignment (Mini API Registry)#992
ruwinirathnamalala wants to merge 26 commits intobuerokratt:devfrom
rootcodelabs:923/endpoint_modal_alignment

Conversation

@ruwinirathnamalala
Copy link
Copy Markdown
Collaborator

@ruwinirathnamalala ruwinirathnamalala commented May 7, 2026

#923

Mini API Registry in Service Flow Editor

Overview

Adds an inline API Registry panel (ApiElementsPanel) inside the Elements dropdown of the service flow editor, replacing the old draggable API endpoint cards. Users can now browse, search, create, edit, delete, and add endpoints to the canvas without leaving the flow editor.

Changes

New Components

  • ApiElementsPanel.tsx — Inline mini registry panel with:
    • Collapsible section matching the "All elements" visual style
    • Search bar with debounced filtering
    • Sortable table (name, status, schema columns) with pagination
    • Row-level actions: test, edit, delete
    • + New API button to create endpoints from within the flow
    • Figma-spec styling: tag-style rows (#E7F0F6 background, #B9D2E5 border), HEADER_HEIGHT_PX constant for scroll calculation
  • ApiElementsPanel.scss — Extracted styles for the panel (row colours, border-radius, hover state, placeholder)

Modified Components

  • CustomEdge.tsx — Replaces draggable endpoint cards with <ApiElementsPanel>
  • ApiRegistryTable.tsx — Exported EndpointTooltipContent for reuse in the mini registry
  • ApiRegistryPage.tsx — Wired onSaveSuccess on the edit modal to reload the table after saving

i18n

  • Added serviceFlow.apiElements.title, serviceFlow.apiElements.searchPlaceholder, serviceFlow.apiElements.newApi keys in en/common.json and et/common.json

@matKlju matKlju linked an issue May 7, 2026 that may be closed by this pull request
28 tasks
@matKlju matKlju requested a review from Thirunayan22 May 7, 2026 12:18
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
5.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

API Endpoint Modal Alignment (Elements Modal)

1 participant