Skip to content

feat(ui): Add Applications to the profile settings modal (core-ui) - #35179

Merged
Rohit0301 merged 22 commits into
mainfrom
Rohit0301/profile-core-ui-ui-migration
Oct 12, 2026
Merged

Rohit0301 merged 22 commits into
mainfrom
Rohit0301/profile-core-ui-ui-migration

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes https://github.com/open-metadata/openmetadata-collate/issues/6439

I added Applications to the new Profile settings modal (under Features), because the settings are moving into the modal and the legacy Applications pages are antd-based. Everything rendered in the new UI uses @openmetadata/ui-core-components only: the installed list, the marketplace, the marketplace detail, the install steps, and the app detail. Every legacy action is kept.

Type of change:

  • New feature

High-level design:

  • Routing: a hash-routed panel, tabs/applications/ApplicationsPanel.tsx, follows the pattern of the other modal panels (#applications, #applications/marketplace[/<fqn>[/install]], #applications/<fqn>). Each view pushes its own header (title, icon, actions, meta) and the panel adds the Settings › Applications › … breadcrumbs.
  • Footer: form and stepper actions render into a footer slot pinned to the bottom of the modal (AppFooter.tsx), the same as the other profile form pages.
  • App detail:
    • The header shows "Installed X ago", "Developed by" and "Visit developer website", plus a header hint toggle and a three-dot Disable/Restore/Uninstall menu.
    • Tabs: Schedule, Configuration, Recent Runs and Live Indexing. The configuration form uses FormBuilderV1, with booleans shown as toggle cards and field hints in a popover.
    • Actions are gated on the app's own permissions: Delete for the menu, EditAll for schedule and configuration edits, Trigger for Run now, and Deploy for Deploy.
  • Admin-only views: the marketplace and install flow are admin-only, as on the legacy routes.
  • Shared legacy components migrated in place: the runs history, logs viewer, reindex failures panel, schedule editor and stop-run modal are now off antd. Legacy and new pages share one copy instead of a duplicate rewrite, and the legacy pages keep working.
  • Form builder additions:
    • FormBuilderV1 gains a core-ui enum multi-select, replacing the antd TreeSelectWidget for uiFieldType: treeSelect arrays.
    • It also gains a core-ui date widget.
    • The app docs loader (loadFormFieldDocs) takes a folder, so app forms read public/locales/en-US/Applications/*.md.
  • Icons: all 21 application icons from the design system are added to core-ui (App*). ApplicationsClassBase.getAppIcon maps app names to them, for both OSS and Collate apps.
  • Extensibility: only hooks with a legacy equivalent were added: getAppIcon (like importAppLogo) and getModalAppConfigurationComponent (like getApplicationConfigurationComponent). Plugin overrides for details and install work the same way as on the legacy pages (getAppDetails / getAppInstallComponent).
  • Paging: a new useCursorPagedList hook handles cursor paging (prev/next) and ignores stale responses.
  • Guard rail: an ESLint rule bans antd imports in tabs/applications/**.

Tests:

Use cases covered

  • An admin opens Settings › Features › Applications, sees the installed apps, and toggles "Show Disabled".
  • They open an app and see the header details. They edit the schedule (dialog Save), and edit the configuration with hints on (footer Save/Cancel).
  • They disable the app from the three-dot menu, find it under "Show Disabled", and restore it.
  • They uninstall the app, then browse the marketplace and reinstall it through the Details → Configure → Schedule steps.
  • A non-admin can't open the marketplace or install views. Edit, run, deploy and menu actions are hidden without the matching app permission.
  • A missing app fqn shows an empty-state placeholder instead of a blank page.

Unit tests

  • I added unit tests for the new/changed logic.
  • New:
    • Every view, plus the shared helpers and the footer slot, in tabs/applications/: ApplicationsPanel, ApplicationsList, ApplicationCard, MarketplaceList, MarketplaceAppDetail, AppInstall, AppDetail, AppConfigForm, AppFooter, Applications.utils.
    • useCursorPagedList, CoreEnumMultiSelectField, CoreDateWidget.
  • Updated: ApplicationsClassBase, AppSchedule, AppRunsHistory, AppLogsViewer, StopScheduleRunModal, profileNavConfig, FormFieldDocs.
  • Result: yarn test on profile, applications, form builder and stop-run modal: 174 suites and 1,380 tests passed (after merging the latest main). A broader run over all 528 suites that import the touched modules: 7,905 tests passed.
  • Coverage %: not measured.
Jest run — new tests (13 suites, 77 tests) Jest new tests
Jest run — all suites touching the changed modules (174 suites, 1,380 tests) Jest affected suites

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • I added Playwright E2E tests under openmetadata-ui/.../ui/playwright/ for UI changes.
  • Added: playwright/e2e/Features/ApplicationsSettingsModal.spec.ts. It passed 5 of 5 against a local backend, and twice in a row after the last fix.
  • Updated selectors (the shared schedule and run-config dialogs are now core-ui): SearchIndexApplication.spec.ts, DataInsightReportApplication.spec.ts, DataInsightSettings.spec.ts. These three were not run locally, and make playwright_affected_run was not run.
Playwright run — ApplicationsSettingsModal.spec.ts (5 passed) Playwright run

Manual testing performed

  1. Ran the UI dev server against a local OpenMetadata backend and logged in as admin in AI app mode.
  2. Opened the user menu › Profile › Features › Applications, and checked the list, the "Show Disabled" toggle and pagination.
  3. Opened Data Insights and Search Indexing:
    • edited the schedule;
    • toggled hints and saved the configuration;
    • opened Recent Runs logs (including server/entity stats) and the run config dialog.
  4. Browsed the marketplace, opened the Data Insights Report detail, and walked the install steps (Configure is skipped when the app has no schema).
  5. Opened #applications/DoesNotExistApp and checked that the not-found placeholder shows.

UI screen recording / screenshots:

Screenshots from a local run against the current branch:

Installed applications (Configure link, pagination, Show Disabled, Browse Apps)

Installed applications (Configure link, pagination, Show Disabled, Browse Apps)

App detail — header meta and Schedule tab

App detail — header meta and Schedule tab

Three-dot menu — Disable / Uninstall

Three-dot menu — Disable / Uninstall

Configuration — hint popover, toggle cards, footer Cancel/Save

Configuration — hint popover, toggle cards, footer Cancel/Save

Recent Runs — expanded logs with stats

Recent Runs — expanded logs with stats

Marketplace

Marketplace

Marketplace app detail — Verified badge, Install in header

Marketplace app detail — Verified badge, Install in header

Install — Details step (footer actions)

Install — Details step (footer actions)

Install — Configure step

Install — Configure step

Install — Schedule step

Install — Schedule step

Missing app — empty-state placeholder

Missing app — empty-state placeholder

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. (N/A — no schema changes)

  • For UI changes: I attached a screen recording and/or screenshots above.

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Decision check: if this PR decides something the next contributor could undo, it adds a record under docs/decisions/. (Not added.)

  • The issue properly describes why the new feature is needed, what's the goal, and how we are building it.

  • I have updated the documentation.

  • I have added tests around the new logic.

… components

Adds an Applications page under Features in the profile settings modal,
built only from @openmetadata/ui-core-components: installed list,
marketplace, marketplace detail, install steps and app detail (schedule,
configuration, recent runs, live indexing) with header hint toggle,
three-dot Disable/Restore/Uninstall menu and footer actions.

Migrates the shared app sub-components (runs history, logs viewer,
reindex failures, schedule editor, stop-run modal) off antd, adds the
application design-system icons to core-ui, and adds core-ui enum
multi-select and date widgets to FormBuilderV1.
@github-actions github-actions Bot added the UI UI specific issues label Oct 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Rohit0301 Rohit0301 self-assigned this Oct 10, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Oct 10, 2026
@Rohit0301
Rohit0301 marked this pull request as ready for review October 10, 2026 05:01
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 892 → 900
- 8 added, 0 removed, 16 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppDetails/AppDetails.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppConfigForm.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppDetail.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppInstall.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/ApplicationCard.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/ApplicationsList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/ApplicationsPanel.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/MarketplaceAppDetail.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/e2e/Utils/appMode.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/admin.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/scheduleInterval.ts
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppSchedule/AppSchedule.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/ApplicationCard/ApplicationCard.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/MarketPlaceAppDetails/MarketPlaceAppDetails.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/AddIngestion/Steps/ScheduleInterval.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/atoms/drawer/AiFormModal.tsx
  … and 6 more

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@Rohit0301 Rohit0301 changed the title Fixes collate#6439: Add Applications to the profile settings modal (core-ui) feat(ui): Add Applications to the profile settings modal (core-ui) Oct 10, 2026
…rketplace screenshots

Skip the Configure step when the app schema cannot be loaded instead of
leaving the wizard on an empty step, and report marketplace-fetch and
schema-load failures with their own errors. Remove the Screenshots
section from the marketplace app page.
…e-ui-ui-migration

# Conflicts:
#	.github/playwright/impact-map.generated.json
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 77%
77.02% (123539/160384) 63.11% (76557/121301) 64.6% (25677/39746)

…nents

Declare the missing hook dependencies in AppLiveIndexing, AppLogsViewer,
AppRunsHistory and AppSchedule. AppLiveIndexing now refetches through its
effect on a page-size change instead of calling the fetch with the stale
size; AppSchedule re-checks the pipeline's deployed state when the app
changes.
Key the pipeline deployed-state fetch on the app type and first pipeline
fqn instead of the whole app object, so a schedule save no longer flashes
the loader over the open dialog or remounts the runs history.
…e-ui-ui-migration

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/profileNavConfig.test.tsx
#	openmetadata-ui/src/main/resources/ui/src/utils/DataQuality/FormFieldDocs.test.ts
#	openmetadata-ui/src/main/resources/ui/src/utils/DataQuality/FormFieldDocs.ts
Mark fire-and-forget fetches with void, use a Set for the marketplace
view lookup, and move the reindex-failures filter to the non-deprecated
Select value/onChange API.
Rohit0301 added a commit that referenced this pull request Oct 10, 2026
…e-ui-ui-migration

# Conflicts:
#	.github/playwright/impact-map.generated.json
…s settings

Center the EmptyPlaceholder in the body for the not-found, no-permission and
empty-list states (the host now fills the body height instead of being capped
at min-h-90), and give the app detail/list content top padding so the tabs and
Edit/Run now actions are no longer jammed under the header.
AppScheduleActions returned a fragment of buttons, so the surrounding gapped
Box treated it as a single item and the Deploy/Edit/Run now buttons rendered
flush against each other. Render the actions in their own gapped flex row and
drop the now-redundant wrapper.
…e-ui-ui-migration

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppLogsViewer/ReindexFailures.component.tsx
…iles

The applications migration removed the antd imports that were previously
suppressed via openmetadata-antd/no-antd-import, leaving stale entries in
eslint-suppressions.json. ESLint flags unused suppressions and exits non-zero,
failing the UI Checkstyle src step (and cascading into the licence-header step,
which only re-checks git status). Prune the now-unused entries.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-11T21:16:28Z)

Blocked the queue: ui-coverage

Rohit0301 and others added 4 commits October 12, 2026 10:28
main added AppRunsHistory.merge.test.tsx, which mocked the legacy FormBuilder
and rendered the run config via antd Table. This branch migrated the config
modal to FormBuilderV1 and the applications area off antd, so point the mock at
FormBuilderV1 and render the table mock with a plain HTML table (preserving the
columnheader/row/cell roles the test asserts on) instead of antd, keeping the
file lint-clean without a new antd suppression.
…ration' into Rohit0301/profile-core-ui-ui-migration
@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 12, 2026
Add core-ui icons for the Collate AI Documentation, Quality and Tier agents,
generated from SVGs via icons:generate (icons/ source + src/icons/*.tsx +
index.ts export). Consumed as AppCollateAiDocumentationAgent /
AppCollateAiQualityAgent / AppCollateAiTierAgent from
@openmetadata/ui-core-components/icons.
@Rohit0301
Rohit0301 removed this pull request from the merge queue due to a manual request Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-12T06:14:55Z)

The entry left the queue before it was built, so no checks ran against it.

@Rohit0301
Rohit0301 enabled auto-merge October 12, 2026 06:16
@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 12, 2026
@Rohit0301
Rohit0301 removed this pull request from the merge queue due to a manual request Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-12T12:03:08Z)

The entry left the queue before it was built, so no checks ran against it.

…e-ui-ui-migration

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/eslint-rules/openmetadata-antd.test.mjs
#	openmetadata-ui/src/main/resources/ui/eslint-suppressions.json
#	openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppLogsViewer/AppLogsViewer.component.tsx
The Applications override sets @typescript-eslint/no-restricted-imports, and
flat config replaces a rule's options wholesale, so it was dropping the
repo-wide recharts/echarts ban for Profile/tabs/applications/** (unlike the
Metric block, those files are not chart-free). Re-state the recharts/echarts
patterns in this block so a chart import there is still blocked.
@gitar-bot

gitar-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 3 closed / 3 findings

🟡 Medium risk · Adding application installation, configuration, scheduling, and lifecycle controls to Profile settings could misconfigure apps or interrupt scheduled runs.

Adds Applications to the profile settings modal (core-ui) with installed list, marketplace, install flow, and app detail views, all off antd. Resolved the Configure step dead-end on schema import failure, the Schedule tab loader flash on appData updates, and the dropped chart import ban in the antd block. No issues remain open.

✅ 3 closed
✅ Edge Case: Install flow dead-ends on Configure step when schema import fails

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppInstall.tsx:260-273 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppInstall.tsx:421-435
fetchAppDetails calls setAppData before importSchema. If importSchema rejects (no schema bundled for the app), appData is set but jsonSchema stays undefined. getInstallSteps still includes configure whenever allowConfiguration is true. When the user presses Next from Details, the configure case returns null, so the wizard shows the step indicator with no form and no footer: no Back, no Next, no Install. The same catch also handles marketplace fetch failures, which then show the misleading "no application schema found" toast. One fix is to drop the configure step when jsonSchema is absent, or to render a StepFooter there. Separately, catch the two fetches on their own so each failure shows the right error.

✅ Bug: Schedule tab flashes to a full Loader after every appData update

📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppSchedule/AppSchedule.component.tsx:296-303
fetchPipelineDetails is memoized on the whole appData object, and the effect now depends on it. Saving a schedule replaces appData (AppDetails onAppScheduleSave calls setAppData(response); the profile AppDetail does the same at line 255). So every save re-runs the effect, which sets isLoading(true). The component then returns <Loader /> in place of the whole tab. The open schedule Modal unmounts mid-save and AppRunsHistory remounts and fetches its runs again, even for internal apps where the effect makes no request. The fix: key the effect on the inputs it actually reads (appType and the first pipeline's fqn), or skip the full-page loader when refetching.

✅ Quality: Applications antd block silently drops the repo-wide chart import ban

📄 openmetadata-ui/src/main/resources/ui/eslint.config.mjs:567-581
Flat config replaces a rule's options wholesale. This new @typescript-eslint/no-restricted-imports block (eslint.config.mjs:567-601) comes after the src/**/*.{ts,tsx} block that bans recharts, echarts and echarts-for-react (lines ~460-485), so for every file under Profile/tabs/applications/** the chart ban no longer applies. The Metric block can do the same thing safely because its comment says Metric files have no charts. The Applications folder has no such exemption, and app detail views such as run history and stats are likely places to add charts later. A recharts import there would pass lint. Fix: copy the recharts/echarts patterns entries into this block, or move the shared patterns into a constant and spread it into every override.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Rohit0301
Rohit0301 enabled auto-merge October 12, 2026 12:25
@sonarqubecloud

Copy link
Copy Markdown

@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit b2343c1 Oct 12, 2026
70 of 71 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/profile-core-ui-ui-migration branch October 12, 2026 20:51
shah-harshit added a commit that referenced this pull request Oct 12, 2026
Resolve conflicts with the Applications core-ui migration (#35179) by
keeping main's core implementations, and refresh the antd and Playwright
suppression counts.
shah-harshit added a commit that referenced this pull request Oct 13, 2026
Resolve conflicts with the Modal/Button freeze (#35226), the Data Contract
(#35217), Add Assets (#35242) and Applications settings (#35179) migrations.
Where main already migrated a file, keep main's version and drop this
branch's duplicate (DataContract SLA/view switch, AssetSelectionContentBody,
TableDataCardV2, AppLogsViewer, ReindexFailures). Elsewhere keep this
branch's migration and port main's core Button changes onto it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants