Skip to content

feat(ui): add persona General Preferences with default landing page - #34189

Merged
anuj-kumary merged 32 commits into
open-metadata:mainfrom
Vansh0310:feat/persona-general-preferences
Sep 30, 2026
Merged

anuj-kumary merged 32 commits into
open-metadata:mainfrom
Vansh0310:feat/persona-general-preferences

Conversation

@Vansh0310

@Vansh0310 Vansh0310 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #31776

The persona App Mode card in Customize UI is replaced by an App Layout card (/customize-page/<persona>/app-layout). Admins pick three defaults for everyone on a persona:

  • App Mode: three radio cards: No default (use the organization default), Classic and AI.
  • Default Landing Page: a grouped dropdown (General / Data Marketplace / Observability / Govern), each option showing its route. Users of the persona land on it whenever the app opens at /: after signing in, on a reload, or in a new tab, in both Classic and AI mode. Unset means Home (My Data).
  • View Mode: the layout each page with a view toggle opens in: Domains (Table / Grid / Tree), Sub Domains, Data Products and Learning Resources (Table / Grid). "+ Add Page" adds a page; each row has a Table / Grid / Tree tab switch and a remove button. Users can still switch the layout on the page itself.

The page uses the same header card as the other persona customize pages: Reset (back to defaults after a confirmation; nothing is saved until Save), Save and close.

Why: admins had no way to choose where a persona starts, or how its list pages open. Everyone landed on My Data and every list page opened as a table. #31776 asks for exactly this on the Data Products page.

Also fixed along the way:

  • Sign-in after an in-app logout could skip the landing page, because the sign-in handler still saw the page the user had logged out from.

Type of change:

  • New feature

High-level design:

Storage (schema-first)

  • type/personaPreferences.json gains two optional fields:
    • defaultLandingPage (string)
    • defaultViewModes: one optional field per page (domains, subDomains, dataProducts, learningResources), each a pageViewMode (table | card | tree).
  • TS types are regenerated (personaPreferences.ts, user.ts, uiCustomization.ts).
  • Values are saved into the persona's docStore document (data.personaPreferences[]) through updatePersonaAppLayout. A default choice (No default, Home, no pages) removes the field instead of storing a value.

Default Landing Page

  • Options live in constants/platform/personaLandingPage.constants.ts. resolvePersonaLandingPage falls back to Home for any value not in that list, so a removed route can't strand users and nothing can redirect to an outside URL.
  • components/platform/persona/PersonaLandingRedirect wraps both route trees in AuthenticatedApp. It redirects only the first page the app opens on, and only when that page is /:
    • later in-app visits to / (the logo, the AI home) are left alone;
    • a deep link stored before sign-in wins (PermissionProvider redirects to it);
    • it shows a loader while the persona document loads, so Home doesn't render and then jump.
  • AuthProvider still routes to / after sign-in. Its only change is the re-login fix: handledVerifiedUser reads pathnameRef (the ref already used for the redirect-path cookie) instead of the memoized handler's stale location.
  • hooks/platform/usePersonaDocument reads the selected persona's document through the same React Query cache key as useCustomPages, so it adds no request.

View Mode

  • constants/platform/personaViewMode.constants.ts lists the pages with a toggle (VIEW_MODE_PAGE) and the layouts each offers.
  • resolvePersonaViewMode falls back to Table when the saved layout isn't offered (e.g. Tree outside Domains).
  • hooks/platform/usePersonaViewMode feeds the four list pages: const view = selectedView ?? personaView, so a click on the page's own toggle still wins for that visit.
  • ViewToggle and the list pages use the generated PageViewMode directly, so the saved value and the toggle share one type.

Page

  • pages/platform/persona/PersonaAppLayoutPage/ replaces SettingsAppModePage (DEVELOPER_HANDBOOK layout; props in PersonaAppLayoutPage.types.ts).
  • Built from core components (RadioGroup, Select, Tabs, Dropdown, Card) and the shared CustomizablePageHeader.
  • CustomizablePage passes it the persona document it already loaded, the same way other customize pages get currentPage, so it doesn't import another page's store.
  • A failed save rejects, so the leave-page dialog's "Save and leave" keeps the user on the page instead of dropping the edits. The error toast still shows.
  • The landing page dropdown is the core Select as is. Groups come from react-aria's ListBoxSection / Header in the page, and the route from Select.Item's supportingText.
  • Closing the dropdown on an outside click: the core Select popover is non-modal, so react-aria only closes it when focus moves to another element. Inside a modal that happens because the dialog is focusable. The page gives its content box tabIndex={-1} the same way, so a click on the page closes the list.
    • This is page-level, and core Select is unchanged.
    • Clicks outside the content (sidebar, navbar) and a second click on the trigger still leave the list open, the same as other core Selects on normal pages.

Core components (openmetadata-ui-core-components)

  • No component changes. Only the App Layout card icon is added (icons-custom/app-layout.svg → AppLayout in @openmetadata/ui-core-components/icons).

Alternatives considered

  • Opt-in outside-click dismissal on the core Select popover: rejected to keep core components unchanged; the page-level focus target covers this page.
  • FilterSelect with new supportingText / group option fields: rejected; no new core props.
  • Making the Select popover modal: rejected; a modal popover hides the rest of the page from screen readers and doesn't clean up if it unmounts abruptly.
  • Redirecting only right after sign-in: rejected; opening the app in a new tab or on a reload must land there too, in both app modes.
  • Tenant-wide (Settings → Preferences) view defaults: rejected; persona-level lets each team start where it works.

Backward compatibility

  • All new fields are optional; personas without them behave exactly as before, and existing appMode values keep working.
  • No migration: docStore data accepts any properties, and nothing validates it against this schema.
  • The App Mode customize card and its /customize-page/<persona>/app-mode URL are replaced by App Layout.

Tests:

Use cases covered

  • An admin opens a persona → Customize UI → App Layout, sets App Mode, the landing page and a View Mode row, saves, reloads, and the values persist.
  • Reset (after confirming) returns every setting to its default without saving.
  • Clicking elsewhere on the page closes the landing page dropdown without changing the value.
  • If the save fails, the edits stay on the page and Save is enabled again.
  • A Classic persona user lands on the persona's landing page after signing in, after signing out and back in, and when opening / in a new tab. A deep link in a new tab stays on that page.
  • An AI persona user lands on the persona's landing page inside the AI shell.
  • A persona user opens Domains in Tree and Data Products in Grid; a page with nothing saved opens in Table.
  • An invalid stored landing page or view falls back to Home / Table.

Unit tests

  • I added unit tests for the new/changed logic.
  • Files added/updated:
    • pages/platform/persona/PersonaAppLayoutPage/PersonaAppLayoutPage.test.tsx: all three sections, grouped landing options, save payloads, Reset, failed save.
    • components/platform/persona/PersonaLandingRedirect/PersonaLandingRedirect.test.tsx (new): / redirects, Home stays, deep links untouched, a stored deep link wins, a later in-app / isn't redirected, no persona means no fetch.
    • hooks/platform/usePersonaViewMode.test.ts (new).
    • components/Auth/AuthProviders/AuthProvider.test.tsx: re-login after an in-app logout routes to / (regression for the stale pathname).
    • utils/CustomizePage/PersonaPage.utils.test.ts: preference writes, landing page and view resolution.
    • CustomizablePageHeader.test.tsx, utils/PersonaClassBase.test.ts, utils/Persona/PersonaUtils.test.ts: the App Layout card and subtitle.
    • pages/SettingsAppModePage/SettingsAppModePage.test.tsx: removed with the page.
  • Coverage %:

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.
  • Files added/updated:
    • playwright/e2e/Features/PersonaAppLayout.spec.ts (new):
      • lands on the default landing page after sign-in;
      • lands on it again after signing out and back in;
      • a new tab at / opens the landing page; a deep link stays put;
      • an AI persona lands on its default landing page too;
      • list pages open in the view the persona picked;
      • an admin saves App Layout settings and they persist;
      • Reset returns every setting to its default;
      • clicking elsewhere on the page closes the landing page list.
    • playwright/utils/persona.ts: createPersonaAppLayoutDoc and setDefaultPersona helpers.
    • AppMode/AppModePrecedence.spec.ts, AppMode/AppModeAiPersonaLandsAtRoot.spec.ts: comments updated.

Manual testing performed

  1. Ran the UI dev server on :3000 against a local backend.
  2. As admin, opened Settings → Personas → persona → Customize UI → App Layout.
  3. Changed App Mode, the landing page and View Mode (Domains → Tree, Data Products → Grid), saved, reloaded, and confirmed the values persisted. Confirmed Reset asks first and then returns to defaults.
  4. Opened the landing page dropdown: grouped options with routes, a check on the selected one; a click on the page closes it.
  5. Assigned the persona to admin as the default persona, logged out and back in, and landed on the chosen page. Opened localhost:3000 in a new tab and landed there too; did the same with the persona in AI mode.
  6. Opened Domains and Data Products and they started in Tree and Grid.

UI screen recording / screenshots:

<attach recording / screenshots>

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. (No migration: both fields are optional additions, docStore data accepts any properties, and existing documents stay valid.)

  • 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.

  • The issue properly describes why the new feature is needed, what's the goal, and how we are building it. Any discussion or decision-making process is reflected in the issue.

  • I have updated the documentation.

  • I have added tests around the new logic.

Replace the persona App Mode customization card with a General
Preferences card. Its page holds:

- App Mode, redesigned as three radio cards (No default / Classic / AI).
- Default Landing Page, a grouped dropdown of routes. Classic-mode users
  of the persona are redirected there after signing in; unset means Home.

Schema: add `defaultLandingPage` to personaPreferences and regenerate
the TS types.

Core Select:
- Add `Select.Section` / `Select.SectionHeader` for grouped options.
- Add a `labelWeight` prop to bold the item label.
- Close the list on an outside click or a second trigger click. The
  non-modal popover disables react-aria's outside dismissal, and the
  trigger reopened the list on press start, so a Select opened by
  mistake could only be closed by picking an option. The opt-in
  `isDismissable` popover prop fixes this; ComboBox does not use it.
@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!

…-login

View Mode (persona General Preferences):
- Admins pick the layout each page with a view toggle opens in for users
  of the persona: Domains (Table/Grid/Tree), Sub Domains, Data Products
  and Learning Resources (Table/Grid). A page with no entry opens in
  Table, and the user's own toggle still switches it for the visit.
- Schema: add `defaultViewModes` to personaPreferences and regenerate
  the TS types. ViewToggle now uses the generated `PageViewMode` enum
  (same members and values) so the saved value and the toggle share a
  type.
- The pages read it through `usePersonaViewMode`, which shares the
  persona document cache slot, so no extra request.
- Core ButtonGroup gains a `segmented` variant for the pill-style
  Table/Grid/Tree switch.

Landing page fix:
- After an in-app logout, signing back in ignored the persona's default
  landing page and stayed on Home. The memoized `handleSuccessfulLogin`
  kept a `handledVerifiedUser` whose `location.pathname` was the page the
  app first loaded on, so the "already on a protected route" check
  returned early. It now reads the existing `pathnameRef`.

Tests: page and utils unit tests for View Mode; Playwright covers the
persona default view on Domains/Data Products and re-login landing. The
spec is renamed to PersonaGeneralPreferences.spec.ts.
@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!

…ons to a footer bar

Rename:
- The persona customization card and page are now "App Layout",
  served at /customize-page/<persona>/app-layout. The page component,
  its types and helpers, the page key, i18n keys, icon, test ids and the
  Playwright spec (PersonaAppLayout.spec.ts) are renamed to match.
- New wording for the label, subtitle and card description in all 20
  locales.

Layout, per the design:
- Breadcrumbs (Settings / Personas / <persona> / App Layout), title and
  subtitle replace the CustomizablePageHeader card, so the close button
  goes too; the breadcrumbs cover navigating back.
- A footer bar pinned to the bottom holds the save status ("All changes
  saved" / "Unsaved changes"), Discard and Save changes. Discard reverts
  unsaved edits to the saved values, replacing the old reset-to-defaults.
- Drop CustomizablePageHeader's branch for this page, now unused.
@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!

@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!

- Remove the @Features/@Platform tags from the persona App Layout spec;
  nothing in the Playwright config or CI selects tests by them.
- Sort the imports left out of order by the constants merge.
…' into feat/persona-general-preferences

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAppLayout.spec.ts
@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!

@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!

test('lands on the default landing page after sign-in', async ({
browser,
}) => {
const { page, afterAction } = await performUserLogin(browser, classicUser);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not use login like this, we should have page level fixtures, check other specs for idea

Comment on lines +132 to +134
await page.goto('/explore', { waitUntil: 'domcontentloaded' });
await waitForAllLoadersToDisappear(page);
await classicUser.logout(page);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no login/logout

… persona spec

- PersonaUtils.test: the App Layout card's icon is now the core AppLayout
  icon component, not an SVG asset, so assert on that component. This was
  failing the Jest coverage job.
- PersonaAppLayout.spec: persona users get signed-in page fixtures
  (classicUserPage / aiUserPage), as in PersonaSessionPersistence.spec, so
  no test logs in or out itself. Drop the sign-out/sign-in test; the
  in-app-logout routing is covered by AuthProvider.test.
@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!

A signed-in persona user who enters / in the address bar lands on the
persona's default landing page again, without signing out. The test
first moves to /explore so the final check proves / redirected.
@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!

… per test

Sign each persona user in once in beforeAll and save the session
(storageState with IndexedDB, where the auth token lives). The
classicUserPage / aiUserPage fixtures open the app at / from that saved
session, so tests no longer call browser.newPage() + login, which the
"prefer the page fixture" lint rule warned about.
@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!

@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!

@gitar-bot

gitar-bot Bot commented Sep 30, 2026

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

🟡 Medium risk · Persona preferences alter app-entry routing and default list layouts across the UI.

Adds persona General Preferences with configurable default landing page, view modes for list pages, and app mode defaults. Landing page redirect is now positioned after sign-in to fix stale pathname issues. E2E test coverage for re-login landing and Select dismissal workaround were removed during development; the landing page and view mode behaviors are covered by other E2E tests and unit tests.

✅ 3 closed
✅ Quality: E2E test for re-login landing (stale pathname fix) was dropped

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAppLayout.spec.ts:134-138
This commit deletes the 'lands on it again after signing out and back in' test. That was the only end-to-end regression test for the handledVerifiedUser/pathnameRef fix in AuthProvider. The PR description still lists it as covered, but now only the mocked unit test checks it. The new classicUserPage fixture only signs in once, so nothing exercises logging out from another page and signing back in. Please restore the test, either by using classicUserPage and calling classicUser.logout and then classicUser.login inside it, or by updating the PR description.

✅ Quality: Sign-in landing is no longer asserted by any E2E test

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAppLayout.spec.ts:60-74 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAppLayout.spec.ts:130-133 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAppLayout.spec.ts:163-168
After this commit the fixtures restore a saved session and call page.goto('/'). The only flow the tests check now is a cold boot at / with the token already present. signInAndSaveSession still signs in, but it never checks where the app lands, and the test that asserted 'lands on the default landing page after sign-in' has been renamed and now tests something else. The post-sign-in path is different: the first page is /signin, then AuthProvider navigates in-app to /, and PersonaLandingRedirect only acts on the first page. No test covers that path any more, yet the PR description still lists it as covered. You could assert toHaveURL(GLOSSARY_URL) on the login page inside signInAndSaveSession (or in a dedicated test using performUserLogin) so the sign-in redirect stays covered.

Closed: Edge Case: Select dismissal fix reverted; tabIndex workaround is partial and untested

📄 openmetadata-ui/src/main/resources/ui/src/pages/platform/persona/PersonaAppLayoutPage/PersonaAppLayoutPage.tsx:180-184 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/select/select.tsx:218 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/select/select.test.tsx:87-89
This commit takes isDismissable off the core Select popover and deletes the dismissal tests in select.test.tsx. In its place, PersonaAppLayoutPage wraps its content in a Box with tabIndex={-1}. react-aria's non-modal popover only closes on blur when relatedTarget is a real element. That means the list now closes only when the click lands inside this Box. Clicks on non-focusable areas outside it (for example, blank page area below the card or the page layout chrome) still leave it open. A second click on the trigger also no longer closes it. Nothing in PersonaAppLayoutPage.test.tsx or PersonaAppLayout.spec.ts covers the workaround. The PR description still says every core Select closes on outside click and on a second trigger click, which is no longer true. Either restore the popover-level dismissal (with its tests), or add a test for the workaround and update the PR description to say the behaviour is limited to this page.

Review coverage

📋 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

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 58 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 58 warning(s) across 11 changed file(s).

Count Rule
29 no-restricted-imports
20 react-hooks/exhaustive-deps
5 openmetadata-imports/no-cross-page-imports
2 openmetadata-imports/no-lower-layer-page-imports
1 openmetadata-ui-patterns/no-non-adaptive-palette
1 openmetadata-imports/review-sequential-api-calls
All findings
Location Rule Message
🟡 src/components/AppModeSwitcher/InterfaceModeMenuItem.tsx:29:3 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:hover:bg-blue-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-blue-50) or a semant
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:300:9 react-hooks/exhaustive-deps The 'onLoginHandler' function makes the dependencies of useMemo Hook (at line 954) change on every render. Move it inside the useMemo callback. Alternatively, w
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:380:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'navigate', 'setApplicationLoading', 'setCurrentUser', and 'setIsAuthenticated'. Either include them or remove
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:435:9 react-hooks/exhaustive-deps The 'resetUserDetails' function makes the dependencies of useMemo Hook (at line 954) change on every render. To fix this, wrap the definition of 'resetUserDetai
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:552:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'handleStoreProtectedRedirectPath', 'resetUserDetails', and 'setIsAuthenticated'. Either include them or remove t
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:554:9 react-hooks/exhaustive-deps The 'handleFailedLogin' function makes the dependencies of useMemo Hook (at line 954) change on every render. Move it inside the useMemo callback. Alternatively
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:610:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'authConfig?.provider', 'handledVerifiedUser', 'navigate', and 'resetUserDetails'. Either include them or remov
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:660:9 react-hooks/exhaustive-deps The 'initializeAxiosInterceptors' function makes the dependencies of useMemo Hook (at line 954) change on every render. To fix this, wrap the definition of 'ini
🟡 src/components/Auth/AuthProviders/AuthProvider.tsx:943:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchAuthConfig'. Either include it or remove the dependency array.
🟡 src/components/DataProduct/DataProductListPage.tsx:391:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'dataProductColumns', 'dataProductListing.handleSelect', and 'dataProductListing.handleSelectAll'. Either include t
🟡 src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:121:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'subdomainListing'. Either include it or remove the dependency array.
🟡 src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx:193:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'subDomainColumns', 'subdomainListing.handleSelect', and 'subdomainListing.handleSelectAll'. Either include them or
🟡 src/components/DomainListing/DomainListPage.tsx:288:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'domainColumns', 'domainListing.handleSelect', and 'domainListing.handleSelectAll'. Either include them or remove t
🟡 src/components/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.test.tsx:23:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.tsx:27:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.tsx:100:5 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'currentPageType' and 't'. Either include them or remove the dependency array.
🟡 src/components/Settings/Persona/CustomizeUI/CustomizeUI.tsx:53:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. Outer scope values like 'history' aren't valid de
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:58:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:59:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:60:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:61:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:62:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:473:28 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent
🟡 src/pages/CustomizablePage/CustomizablePage.tsx:505:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'initializeCustomizeStore'. Either include it or remove the dependency array.
🟡 src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx:127:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx:145:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchPersonaDetails'. Either include it or remove the dependency array.
🟡 src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx:163:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'location.hash', 'location.pathname', 'location.search', and 'navigate'. Either include them or remove the depend
🟡 src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx:299:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'handleRemoveUser'. Either include it or remove the dependency array.
🟡 src/pages/Persona/PersonaDetailsPage/PersonaDetailsPage.tsx:329:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/utils/PersonaClassBase.ts:15:1 no-restricted-imports '../assets/svg/api-collection-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the desig
🟡 src/utils/PersonaClassBase.ts:16:1 no-restricted-imports '../assets/svg/api-endpoints-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the design
🟡 src/utils/PersonaClassBase.ts:17:1 no-restricted-imports '../assets/svg/chart-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abs
🟡 src/utils/PersonaClassBase.ts:18:1 no-restricted-imports '../assets/svg/classification-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the d
🟡 src/utils/PersonaClassBase.ts:19:1 no-restricted-imports '../assets/svg/dashboard-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the design
🟡 src/utils/PersonaClassBase.ts:20:1 no-restricted-imports '../assets/svg/dashboard-data-models-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use th
🟡 src/utils/PersonaClassBase.ts:21:1 no-restricted-imports '../assets/svg/data-assets-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the desi
🟡 src/utils/PersonaClassBase.ts:22:1 no-restricted-imports '../assets/svg/data-marketplace-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the des
🟡 src/utils/PersonaClassBase.ts:23:1 no-restricted-imports '../assets/svg/data-product-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designa
🟡 src/utils/PersonaClassBase.ts:24:1 no-restricted-imports '../assets/svg/database-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designa
🟡 src/utils/PersonaClassBase.ts:25:1 no-restricted-imports '../assets/svg/database-schema-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the desi
🟡 src/utils/PersonaClassBase.ts:26:1 no-restricted-imports '../assets/svg/directory-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the design
🟡 src/utils/PersonaClassBase.ts:27:1 no-restricted-imports '../assets/svg/domain-colored.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated ab
🟡 src/utils/PersonaClassBase.ts:28:1 no-restricted-imports '../assets/svg/file-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated
🟡 src/utils/PersonaClassBase.ts:29:1 no-restricted-imports '../assets/svg/glossary-term-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the de
🟡 src/utils/PersonaClassBase.ts:30:1 no-restricted-imports '../assets/svg/governance.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstra
🟡 src/utils/PersonaClassBase.ts:31:1 no-restricted-imports '../assets/svg/homepage.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstract
🟡 src/utils/PersonaClassBase.ts:32:1 no-restricted-imports '../assets/svg/messaging-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the design
🟡 src/utils/PersonaClassBase.ts:33:1 no-restricted-imports '../assets/svg/metric-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designate
🟡 src/utils/PersonaClassBase.ts:34:1 no-restricted-imports '../assets/svg/ml-models-colored-new.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the design
🟡 src/utils/PersonaClassBase.ts:35:1 no-restricted-imports '../assets/svg/navigation.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstra

… and 8 more. Run make ui-checkstyle-changed locally for the full list.


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to set the grid view as the default view on the data products page

4 participants