Skip to content

Fix #432:Added Redash Connector - #444

Merged
ayush-shah merged 5 commits into
mainfrom
issue-432
Sep 22, 2021
Merged

ayush-shah merged 5 commits into
mainfrom
issue-432

Conversation

@parthp2107

Copy link
Copy Markdown
Contributor

Describe your changes :

Added redash connector. Fix #432

Type of change :

  • New feature

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

@parthp2107
parthp2107 marked this pull request as draft September 9, 2021 06:49
@parthp2107 parthp2107 changed the title Added Redash Connector [WIP] Fix #432:Added Redash Connector Sep 9, 2021
@parthp2107
parthp2107 marked this pull request as ready for review September 13, 2021 08:55
@parthp2107 parthp2107 changed the title [WIP] Fix #432:Added Redash Connector Fix #432:Added Redash Connector Sep 15, 2021
@ayush-shah
ayush-shah merged commit 06810cd into main Sep 22, 2021
@ayush-shah
ayush-shah deleted the issue-432 branch September 22, 2021 09:39
chirag-madlani added a commit that referenced this pull request Jun 25, 2026
LazyLog hovers lines with a bright #444; the mock uses a subtle dark lift
(rgb(18,26,35)). Override .log-line:hover (stable class, higher specificity than
LazyLog's hashed rule) with --lvm-line-hover (dark #121a23 / light #f2f4f7).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chirag-madlani added a commit that referenced this pull request Jun 25, 2026
* feat(ui): add LogViewerModal shell with title and log body

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ui): add copy and download actions to LogViewerModal header

* test(ui): cover LogViewerModal loading, theme, and follow behavior

* style(ui): theme LogViewerModal log panel and add license headers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ui): match LogViewerModal close button to theme and cover enableSearch

- Pass theme prop to CloseButton so it renders dark icon on dark modal background
- Extend LazyLog/CloseButton mocks to expose enableSearch and theme attributes
- Add tests for enableSearch passthrough and close-button theme binding
- Correct spec doc i18n section: component uses only label.download directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ui): align LogViewerModal with mock — header search, labeled copy, footer

- Move search into the header (filter + match count + empty state); disable
  LazyLog's built-in search bar
- Restyle header: traffic-light dots, file icon, monospace title, labeled Copy
  button (via useClipboard), optional download, plain close
- Add footer status bar via footerLeft / footerRight slots
- Theme the terminal surface from an explicit scoped palette (app tw: tokens
  do not flip under .dark-mode in the consuming build)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(ui): colorize LogViewerModal lines by log level

Parse the OpenMetadata log shape '[timestamp] LEVEL {logger} - message' and
feed LazyLog's formatPart hook: mute the timestamp/logger and colour the level
by severity (INFO/DEBUG/WARN/ERROR/OK/AI) via scoped .lvm-log-level-- classes.
Non-matching lines (Argo, Python warnings, continuation lines) and embedded
ANSI pass through untouched. Gated behind a colorize prop (default on).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): match LogViewerModal log text and line-number colours to mock

- Log text uses #c7d2de (was #d6dee7)
- Line-number gutter uses #46586b via the correct .log-number / ::before
  selector (the previous .react-lazylog-line-number selector never matched, so
  the gutter kept LazyLog's default colour)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): use the mock monospace stack at 12px for LogViewerModal

LazyLog forces font-family:'Monaco' on its container, overriding the modal
font. Define --lvm-font ('Geist Mono', 'Menlo', ui-monospace, 'SFMono-Regular',
monospace) and restate it (plus font-size:12px) on .react-lazylog so the log
text matches the mock instead of rendering in Monaco.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): match LogViewerModal line spacing to mock (rowHeight 25)

LazyLog defaults rowHeight to 19px; the mock renders rows ~25px apart, so ours
read denser. Set rowHeight={25} so line spacing matches. (Text colour #c7d2de
and timestamp #5e7388 already matched the mock; the perceived colour diff was
the tighter spacing plus the prior Monaco font.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): match LogViewerModal line hover colour to mock

LazyLog hovers lines with a bright #444; the mock uses a subtle dark lift
(rgb(18,26,35)). Override .log-line:hover (stable class, higher specificity than
LazyLog's hashed rule) with --lvm-line-hover (dark #121a23 / light #f2f4f7).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(ui): give LogViewerModal explicit footer props (status/totalLines/runId/lastRun)

Replace the footerLeft/footerRight ReactNode slots with structured props so the
component owns the footer instead of the caller assembling it:
- status: { label, tone } -> coloured dot + label (success/error/warning/muted)
- totalLines -> "· N lines"
- runId / lastRun -> right side "runId · lastRun"

The status tone now drives the colour (e.g. success = green) inside the
component, so the footer no longer renders grey when callers pass plain text.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
shah-harshit added a commit that referenced this pull request Oct 5, 2026
- The composer footer was bg-primary, darker than the detail panel in dark;
  it now matches the panel (bg-secondary in dark).
- Quill's placeholder is rgba(0, 0, 0, 0.6), invisible on dark; use the
  placeholder token in dark.
- Quill draws toolbar icons with a fixed #444 stroke (near-invisible on
  dark) while the @ / # text buttons took near-white text; give every
  toolbar icon one muted tone in dark.

Light mode is unchanged.
Chronillogical-Potato pushed a commit to Chronillogical-Potato/OpenMetadata that referenced this pull request Oct 5, 2026
…ox and My Data dark mode (open-metadata#34637)

* fix(ui): dark mode for the Inbox and My Data pages

- Activity feed message card hovered to `bg-white`, so in dark the hovered
  row turned into a white box with unreadable light text. Hover to
  `bg-surface` (white in light, raised in dark).
- My Data stat cards sat on `bg-primary`, darker than the page in dark;
  use `bg-surface` like Explore's panels. FeaturedIcon's gray/light theme
  switches to a solid gray block in dark, so keep the gray-blue tint with
  dark variants (the utility scale flips per theme).
- My Data asset list container is raised (`bg-surface`) with its divider
  on `border-secondary` in dark, matching Explore's results column.
- User avatars (ProfilePicture, core OwnerChip) were painted with inline
  light HSL that cannot follow the theme, leaving pale 92%-light bubbles on
  dark surfaces. The hue now travels as a CSS variable and classes choose
  the lightness per theme; light reproduces the original HSL exactly and
  dark draws a deep tint, light glyph and a ring in the same hue.

Light mode is pixel-identical on /inbox/activity, /inbox/tasks and
/my-data.

* fix(ui): put the Inbox on the standard PageLayout shell

The Inbox built its own shell: a PageHeader stripped of its card (no
radius, no border, a bottom rule instead) over a bg-primary Box, edge to
edge. Every other app page (Data Quality, Alerts, Connections) uses
PageLayout > PageLayout.PageHeader > PageLayout.Content, so the Inbox's
header and content backgrounds differed from them - most visibly in dark,
where bg-primary is darker than the page surface.

Use the same core PageLayout composition with an unmodified header card,
content on the page surface, and the same insets as Data Quality (8px
inside the header edge, 16px below it).

* fix(ui): keep the Inbox activity timeline line visible in dark

The rail was utility-gray-blue-100, which flips to gray-blue-900 in dark
and disappears against the page surface. Use border-primary in dark only;
light keeps its gray-blue line.

* fix(ui): Triage comment composer in dark mode

- The composer footer was bg-primary, darker than the detail panel in dark;
  it now matches the panel (bg-secondary in dark).
- Quill's placeholder is rgba(0, 0, 0, 0.6), invisible on dark; use the
  placeholder token in dark.
- Quill draws toolbar icons with a fixed open-metadata#444 stroke (near-invisible on
  dark) while the @ / # text buttons took near-white text; give every
  toolbar icon one muted tone in dark.

Light mode is unchanged.

* fix(ui): keep Quill hover/active toolbar states in the dark composer

The dark muted-icon override outranked Quill's button:hover / .ql-active
rules, so toggled formats looked idle. Scope it to idle buttons only;
hovered and active buttons keep the brand highlight.

* refactor(ui): move feed Reactions to core and drop their LESS

Reactions, Emoji and Reaction were antd Button/Popover with
reactions.less, and the Inbox carried activity-feed-item.less only to
re-size those antd buttons into one row.

- Add-reaction trigger: core Button + PopoverTrigger/Popover.
- Reacted-emoji pills: core Button (22px, brand outline when the current
  user reacted) with the reactor list in a core HoverCard.
- Picker emoji: core Button with a brand tint when already reacted.

data-testids are unchanged (feed-reaction-container, add-reactions,
reaction-button, emoji-button, emoji-count, popover-content).
reactions.less and activity-feed-item.less are deleted; nothing else
used their classes.

* test(ui): target the core reactions popover in the feed helpers

The reactions picker moved from antd Popover to the core Popover, so the
helpers' .ant-popover-feed-reactions locator and rc-motion class check no
longer match. Locate it by test id and wait for react-aria's data-entering
to clear instead.

* test(ui): find reaction buttons by aria-label, not title

The core Button (react-aria) does not forward `title` to the DOM, so the
[title="<reaction>"] locators stopped matching after the Reactions moved
to core.
Rohit0301 added a commit that referenced this pull request Oct 7, 2026
…34805)

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it (#34541)

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it

Every entity type whose schema declares entityStatus now gets its lifecycle
stage rules from EntityRepository instead of a schema default, so they live in
one place:

- A new entity starts in its type's stage: Draft for domains, data products,
  glossaries, articles, ontology axioms, data contracts and AI assets;
  Approved for assets that come from the data infrastructure. Metrics and
  glossary terms start Draft only when they have reviewers.
- A PUT, bulk upsert or CSV import whose request carries no stage keeps the
  stage the entity is in instead of resetting it.
- While a deployed, unsuspended governance workflow sets an entity type's
  stage, only that workflow (acting as the governance bot) may change it.
  A direct change is rejected with 403, and a create that asks for a stage the
  workflow owns starts in the type's own stage. The workflow's trigger filter
  decides which entities it owns; suspending it releases them.
- GET /v1/metadata/types/lifecycleStages lists the stages and, per entity
  type, the workflows that own its stage.
- Context memories move from their own Draft/Active/Archived status onto
  entityStatus. The 2.1.0 migration converts stored memories and their
  version history (Active becomes Approved).
- The approval-task closing, in-review delete and reviewer rules that seven
  repositories each duplicated are shared now, with per-type flags keeping
  each rule on the entity types that had it.
- A consolidated update no longer re-validates a stage change that an earlier
  version made, such as a workflow approving on the user's behalf.
- createOntologyAxiom no longer requires entityStatus, and DataProduct
  lifecycleStage is deprecated in favor of entityStatus.

BaseEntityIT checks the stage rules for every entity type; types without a
lifecycle (users, teams, test suites, ...) opt out.

* Update generated TypeScript types and dereferenced schemas

* Cover the repository lifecycle-stage rules with unit tests

The repositories' stage rules reached the active workflows through a static
EntityStatusWorkflows lookup, so no unit test could put an entity under an
owning workflow. EntityRepository now takes a StageOwnership, with the active
workflows as its default, and the create-time stage assignment and the
updater's stage check are package-private instead of being reached through
reflection.

New tests cover a create that asks for a workflow-owned stage, the workflow
creating and moving an entity in that stage, types whose stage no workflow
owns, approval and rejection by reviewers and reviewing teams, sending an
entity in review back to Draft, session consolidation, memory transitions
through the updater, and glossary terms inheriting reviewers. Line and branch
coverage of the repositories' stage code goes from 66% and 58% to 91% each.

* Let an entity type declare its own lifecycle stages

Every type with entityStatus draws its stages from one vocabulary, but a type
can now declare its own lifecycle in its repository: the stages it uses,
including stages only it has, and the moves between them. Types that declare
none keep the general lifecycle, any move between today's seven stages, so
nothing changes for them, Metric included. A stage added to the vocabulary
later is outside the general lifecycle, so only the types that declare it can
use it.

EntityRepository rejects with 400 a create in a stage outside the type's
lifecycle and a stage change the lifecycle has no move for, for direct edits,
imports and workflows alike. Context memories are the first type to declare
one (Draft, Approved, Archived), replacing their own transition table and
validators. GET /v1/metadata/types/lifecycleStages now reports each type's
stages and transitions, and BaseEntityIT checks that every type rejects a move
outside its lifecycle.

* test(amundsen): expect approved service status

* Fix lifecycle-stage regressions in shared entity status

- Keep main's starting stages: entities start Unprocessed unless their type
  derives one (glossary terms and metrics from reviewers, ontology axioms Draft,
  system relationship types and memories Approved); keep DataProduct
  lifecycleStage instead of deprecating it.
- Record governance-bot impersonation on page, ontologyAxiom, relationshipType,
  contextMemory and AI asset schemas, so a workflow's own Set Action is not
  rejected by the stage lock it holds.
- Apply the stage rules to batched CSV import updates (workflow lock, lifecycle
  moves, keep stored stage when the row has none) and keep a blank glossary
  status instead of resetting it to Draft.
- Skip workflow definitions this server cannot read when resolving stage
  ownership instead of failing every stage change.
- Restore the in-review delete flag on Tag and TestCase.
- Seed glossary status-filter Playwright specs with their glossary excluded
  from the approval workflow, and update ITs for main's starting stages.

* chore(playwright): auto-refresh impact-map.generated.json

* Update generated TypeScript types and dereferenced schemas

* Apply the reviewer rule only to direct stage changes

- A workflow's approval task already decides who may approve (reviewers,
  owners or named candidates), so its write no longer fails the reviewer rule
  when an owner or candidate approves; direct edits and imports keep the rule.
- Load reviewers, inherited ones included, before checking an import row that
  moves an entity out of review, since import rows are matched from stored JSON
  that holds no relationship fields.

* Align tests with main's starting stages and the CSV stage lock

- ClassificationResourceIT expects a new classification to start Unprocessed
  again, as on main.
- The metric CSV-update Playwright test leaves the status cell blank: the
  fixture metric is In Review under MetricApprovalWorkflow, so a CSV row cannot
  move its stage, and a blank status keeps it.

* Test that a CSV import lets only a reviewer approve a tag in review

An import row is matched from stored JSON, which holds no reviewers, so the
reviewer rule only works on import because applyEntityStatusRulesForImport
reloads them. The test imports a classification CSV as admin that approves two
tags in review: the one another user reviews fails with "is not a reviewer"
and stays In Review, and the one admin reviews becomes Approved. Without the
reload, the non-reviewer's row goes through.

* test(glossary): isolate status fixtures

Exclude marked glossary fixtures from automatic approval during test
bootstrap. Status and search tests can update stages through the API
without waiting for the shared workflow event queue.

* refactor: move status initialization before flush

Keep status assignment before persistence while avoiding overlapping
creation hooks with #34025 in the merge queue.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
Co-authored-by: Ram Narayan Balaji <ramnarayanb3005@gmail.com>

* fix(glue): match external table locations with a trailing slash to their containers (#34634)

* fix(glue): match external table locations with a trailing slash to their containers

Normalize the scheme and one trailing separator in the shared lineage mixin before
the exact fullPath lookup, and skip the table search when no container matches.

* test changes

* fix(ui): core charts clean-up after the recharts migration (#34641)

* fix(ui): core charts clean-up after the recharts migration

- areaGradient fades rgb() / rgba() series colours too (withAlpha). It ran
  every colour through hexToRgba, so an rgba colour came out as a wrong,
  greenish fill.
- Chart tooltips are appended to <body>, so one left open on a kept-alive
  route that goes hidden floated over the next page. EChart now hides its
  tooltip on hideChartTooltips(), and KeepAliveRoutes fires it whenever the
  active route changes. hideChartTooltips is also exported from the root
  entry, so the shell does not load echarts to call it.
- Docs: zoom 'auto' follows zoomVisiblePoints; valueFormatter does not apply
  to tooltip.render.
- CustomBarChart / CustomAreaChart use tw:w-full.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(playwright): retry the AI-mode custom property select picks

chooseSelectOption opened the react-aria listbox once and clicked the
option. Playwright's actionability scroll closes the non-modal popover,
so the option detached mid-click and the Date format pick timed out.
Route it through selectOptionWithRetry, which centres the trigger and
reopens the listbox if it closes.

* style(ui-core): prettier-format the charts barrel

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(ingestion): escape backticks in Databricks legacy column-type DESCRIBE (#34518)

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>

* chore(deps): bump dompurify in /openmetadata-ui/src/main/resources/ui (#34327)

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.13 to 3.4.16.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.13...3.4.16)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.16
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes #26311: Trust the SSO login landing page on the configured callback host (#33978)

* Fixes #26311: trust the request origin for the SSO /auth/callback redirect

SSO login has been unusable since 2.0.0 on any deployment whose
oidcConfiguration.serverUrl is not byte-identical to the browser's origin
- the normal case behind an ingress, where serverUrl is often left at its
http://localhost:8585 default.

The frontend asks to land on <its own origin>/auth/callback, but the
redirect allow-list added in 2.0.0 only ever derived its /auth/callback
entry from serverUrl. Exact scheme+host+port+path matching then rejected
the login with "Redirect URI must exactly match a trusted redirect URI"
and a 400 that named no candidate. There was no config-only remedy: a
root-relative redirect canonicalizes against the same stale config origin.

Derive the origin the client actually reached the deployment on and trust
it for OpenMetadata's own two fixed callback paths. X-Forwarded-Proto and
X-Forwarded-Host are read first (Jetty's scheme/host only reflect the
external hop when useForwardedHeaders is on, which is off by default and
not surfaced by the shipped Docker or Helm configs), falling back to the
connector's own view for a direct deployment.

The derived origin is client-influenced, so it is only ever concatenated
with /auth/callback and /mcp/callback, the scheme is restricted to
http/https, and an origin carrying user-info, a path, a query or a
fragment is discarded. A forged X-Forwarded-Host therefore buys nothing:
the token rides the response back to whoever made the request, so the
forger can only redirect themselves. Any other target still has to match a
configured entry. An unparseable header is dropped rather than aborting
validation of a legitimately configured candidate.

Rejections now log the trusted candidate set at WARN, which the
wire-facing 400 deliberately omits.

Also corrects the callback documentation that sent reporters down the
wrong path in the first place: the SSO settings placeholders advertised
/auth/callback while the field's own default is /callback, and
conf/openmetadata.yaml pointed at /api/v1/callback, which is not a route
at all. The IdP redirect_uri is /callback (the server endpoint that
performs the code exchange); /auth/callback is the UI route the server
redirects to afterwards and must not be registered with the IdP. The
two same-named responseType and callbackUrl fields are now documented as
public-client vs confidential-client, including that
GET /api/v1/system/config/auth reports the top-level one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Harden the request-origin derivation behind proxies

Two defects in the origin lookup added by the previous commit, both found
by asking whether X-Forwarded-Host can actually be relied on. It cannot:
the repository ships no nginx config, Helm chart or ingress template, so
the proxy layer is entirely the operator's choice.

Read the closest hop, not the furthest. These headers are normally
replaced rather than appended, but a proxy that appends leaves the
caller's own value left-most - so reading from the left let a caller
sending "X-Forwarded-Host: evil.example.com, om.example.org" choose the
derived origin. Each further hop appends to the right, so the right-most
value is the one written by the most trusted proxy. The previous comment
justified the left-most read as "the original client hop", which is the
correct rule for X-Forwarded-For and the opposite of what is wanted here.

Resolve scheme and authority independently. AWS ALB sets
X-Forwarded-Proto and X-Forwarded-Port but never X-Forwarded-Host, passing
the client's Host through untouched; hand-rolled nginx behaves the same
way, since X-Forwarded-Host there is opt-in. Reading the scheme only
alongside a forwarded host resolved those deployments to the internal
http hop and rejected their own login - the very bug this was meant to
fix. Host is now also preferred over the connector's view, because
getServerPort() reports the local listener when the header carries no
explicit port and would otherwise graft :8585 onto a public origin.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Add additionalCallbackUrls and sp.additionalAcsUrls for multi-hostname SSO (#28870)

A deployment reachable at more than one hostname (load balancer, DR site)
needs the IdP-facing callback to follow the host the browser arrived on.
Add the two config lists that carry the extra registered URLs:

- authenticationConfiguration.additionalCallbackUrls: extra OIDC redirect_uri
  values. Top-level rather than inside oidcConfiguration because
  ConfigResource strips oidcConfiguration from the browser-facing auth
  config, and public clients build redirect_uri in the browser.
- samlConfiguration.sp.additionalAcsUrls: extra Assertion Consumer Service
  URLs. sp.entityId stays single-valued.

Both default to [], so single-hostname deployments are unaffected. Wire the
env vars in conf/openmetadata.yaml and conf/openmetadata-h2-test.yaml (the
latter also gains the missing additionalTrustedRedirectUris), and regenerate
the TypeScript types and the dereferenced UI schema.

* Select a callback URL by request origin in SecurityUtil (#28870)

Add SecurityUtil.sameOriginCallbackUrl(requestOrigin, primary, additional):
the configured additional callback URL on the origin the request arrived
on, or null to keep the primary. An entry qualifies only when it shares
the primary's path, so selection changes the host the identity provider
returns to but never the endpoint, and it is returned exactly as
configured because the token request must repeat redirect_uri byte for
byte. The request origin is client-influenced, so a forged host can only
pick a URL the operator already registered; a malformed entry is skipped
rather than failing the login.

Extract sameOrigin(URI, URI) out of sameRedirect so both comparisons share
one scheme/host/port normalization.

* Carry the IdP redirect URI on the pending login session (#28870)

The callback that completes a login arrives as a separate request, so the
redirect_uri sent to the identity provider has to be remembered on the
pending session for the token request to repeat it exactly.

- UserSession gains idpRedirectUri. It is written only when set, and the
  class now ignores unknown properties: JsonUtils reads with a mapper that
  rejects them, so without both an older pod reading a newer pod's session
  mid rolling upgrade would fail. Sessions are a JSON blob in both stores,
  so no migration is needed.
- SessionService.createPendingSession takes a PendingLoginState record
  instead of seven positional arguments.

No behavior change yet: nothing sets idpRedirectUri until the OIDC handler
starts selecting callback URLs.

* Send the OIDC callback URL registered for the request host (#28870)

A deployment answering on several hostnames sent every identity provider
the single oidcConfiguration.callbackUrl, so logins from any other host
failed at the IdP.

- Web logins now send the additionalCallbackUrls entry registered for the
  host the request arrived on, falling back to the primary. The choice is
  recorded on the pending session and the token exchange reuses it, so the
  authorization and token requests carry the same redirect_uri even when
  the callback comes back through a different ingress.
- MCP logins keep the primary: that flow is anchored to serverUrl end to
  end, so it is left exactly as it was.
- The signin and logout redirects stay on the request host when it has a
  registered callback URL, instead of sending a secondary site's users to
  serverUrl. An unregistered or forged host still gets serverUrl.

With no additional callback URLs configured, nothing reads the request's
origin and every redirect is unchanged.

* Use the per-host callback URL for browser-side OIDC logins (#28870)

Public clients build the redirect_uri in the browser, so the server-side
selection alone left them sending the primary callback URL from every host.

- GET /api/v1/system/config/auth now returns additionalCallbackUrls.
- getRedirectUri picks the additional callback URL registered for the host
  the page is served from, with the server's rules: same path as the
  primary, the primary wins on its own origin, and the configured string
  is returned untouched. Login, the auth config, and the SSO test-login
  popup all use it.
- The SSO settings form gets an editable "Additional Callback URLs" list
  for OIDC providers; SAML and LDAP drop it with the other OIDC-only
  fields. The SAML additionalAcsUrls field stays hidden until the SAML
  side supports it.

New strings are translated for every locale.

* Reject additional callback URLs that login could never select (#28870)

Login skips an additional callback URL that is malformed or points at a
different endpoint, so a typo there only shows up as a login that quietly
keeps the primary. Validate the list when the SSO configuration is saved:
each entry must be an absolute http(s) URL, without user-info or a
fragment, on the same path as the callback URL the identity provider is
actually sent (the OIDC one for confidential clients, the top-level one
for public clients).

The rule lives in SecurityUtil.isAlternativeCallbackUrl, shared with the
runtime selection, so the two cannot drift apart. The live identity
provider probes still use only the primary: a disaster-recovery host is
often unreachable from the primary site when the config is saved.

* Send the SAML ACS registered for the request host (#28870)

The SAML side had one static Saml2Settings, so every AuthnRequest carried
the single sp.acs and logins from any other hostname failed at the IdP.

- SamlSettingsHolder builds one Saml2Settings per configured ACS (sp.acs
  plus sp.additionalAcsUrls) and publishes them in a single snapshot, so
  a reload never mixes old and new entries. Entries are keyed by
  configured URL, never by request input. The entityId stays the same
  across all of them.
- Login picks the additional ACS registered for the request host, using
  the same rule as OIDC, and records it on the pending session. The ACS
  callback validates against that recorded ACS instead of re-deriving it
  from headers. MCP logins keep the primary.
- The ACS callback now checks Destination and Recipient against the ACS
  URL the login sent, via onelogin's SamlMessageFactory hook, rather than
  the URL the container saw. In strict mode behind a load balancer that
  URL is the internal hop, so the check failed even with a single ACS.
  That pre-existing bug is fixed here too.
- The redirect allow-list trusts /auth/callback on the host of every
  configured ACS, and logs the trusted set when it rejects a redirect.

Also removes the dead relayState field and setSaml2Settings.

* List every configured ACS in the SAML SP metadata (#28870)

The SP metadata advertised only sp.acs, so an identity provider that
imports it would reject AuthnRequests from the other hostnames. It now
lists each additional ACS as another AssertionConsumerService, all under
the one entityID. Per-host metadata would be wrong here: IdPs key the SP
on entityID, so two documents with the same entityID conflict.

onelogin's template holds a single ACS and runs postProcessXml inside the
Metadata constructors, before a subclass could hold the extra URLs. So the
endpoints are added to the rendered document and the result is signed
afterwards, which keeps them covered by the signature. With no additional
ACS URLs the servlet serves exactly what getSPMetadata() returned before,
so existing IdP registrations see no change.

* Validate and expose the SAML additional ACS URLs (#28870)

- SamlValidator rejects an additional ACS URL that login could never
  select: it must be an absolute http(s) URL on the same path as sp.acs,
  the same rule the OIDC list is held to. At most 20 are accepted, since
  each one gets its own Saml2Settings. The error names the entry and is
  reported against sp.additionalAcsUrls.
- The SSO settings form shows an editable "Additional ACS URLs" list in
  the Service Provider section. The primary ACS is still auto-filled from
  the admin's origin, so the help text explains these are for the other
  hostnames and must also be registered with the identity provider.

New strings are translated for every locale.

* Cover the multi-host SSO paths the unit tests missed (#28870)

Changed-line coverage was 83.9%; these tests bring it to 98.8%.

- The SAML ACS callback validates with the ACS recorded at login and
  installs the destination-checking message factory. No unit test reached
  that part of handleCallback before.
- SamlSettingsHolder: initialization from the live auth config, the
  uninitialized guard, and the SP-key, keystore and missing-key-material
  branches of the signing setup.
- The SP metadata servlet over real HTTP: every ACS under one entityID.
- Logout from a registered secondary host stays on that host.
- The additional-URL checks run inside the SAML validator's entry point
  and the base authentication-field validation.
- SecurityUtil: an unparseable primary, and a hostless trusted entry.

The two token-exchange boundary tests now report the callback's status
and body when they fail.

* Trust the SSO landing page only on configured callback hosts (#26311, #28870)

With #26311 and #28870 in one change, the OIDC and SAML redirect
allow-lists no longer have a reason to follow different rules.

The OIDC allow-list trusted /auth/callback on whatever origin the request
claimed via X-Forwarded-Host or Host. A forged host could make a login
land on itself: SsoRedirectBoundaryTest encoded exactly that ("a forged
host can make the login land on itself"). It also left #26311 unfixed
for any deployment whose request did not happen to name its public
origin.

The landing page is now trusted on the host of every configured OIDC
callback URL: the primary oidcConfiguration.callbackUrl and each
additionalCallbackUrls entry. Those have to be right for login to work at
all, since the identity provider rejects any other redirect_uri, so they
name the deployment's real hosts even when serverUrl is left at its
localhost default. SAML already applied this rule to its configured ACS
URLs; both now share SecurityUtil.originOf. Nothing on the redirect path
reads the request any more, so the parameter #26311 threaded through
requireRedirectUri and sendRedirectWithToken is gone again.

ownUrl, used for the /signin and /logout redirects, now copies the origin
from the configured callback URL that matched rather than from the
headers that selected it. That resolves the three CodeQL
java/unvalidated-url-redirection alerts on it.

requestOrigin keeps its one legitimate job: choosing among URLs the
operator registered with the identity provider, where a forged host can
select nothing that was not already configured.

* Update generated TypeScript types and dereferenced schemas

* Keep signin and logout on the primary callback host (#26311)

ownUrl kept the request's host only when an *additional* callback URL
matched it, because sameOriginCallbackUrl returns null on the primary's
own origin. A request on the primary callback host therefore always got
serverUrl. In the #26311 setup this PR targets - serverUrl left at
http://localhost:8585, oidcConfiguration.callbackUrl on the real host -
login now worked, but logout and the missing-pending-session and
silent-auth fallbacks still sent the browser to localhost:8585.

SecurityUtil.registeredCallbackUrl now returns the configured callback
URL on the request's host, primary or additional. ownUrl builds the
redirect from that URL's base: the callback URL minus its trailing
/callback. The suggested fix rebuilt it from the origin instead, but
these redirects used serverUrl before, and serverUrl carries a base path
that an origin would drop (https://host/openmetadata/callback must give
https://host/openmetadata/logout). A callback URL that is not the
/callback servlet's keeps serverUrl. The request origin still only
selects among configured URLs, so an unregistered host keeps serverUrl.

Reported by gitar-bot on #33978.

* Drop multi-hostname SSO callback URLs (#28870); keep the #26311 fix

Review on #33978: multi-hostname/DR deployments are not a supported use
case ("this is not a use-case. Lets not add edge-cases into the code").
This removes #28870's work entirely - the additionalCallbackUrls and
sp.additionalAcsUrls settings, their generated types, form fields and
translations, the per-ACS SAML settings and SP metadata, the recorded IdP
redirect URI on the pending session, and the save-time validation - and
leaves this PR as the #26311 fix only.

Without additional hostnames nothing needs the request's host, so the
#26311 fix no longer reads the request at all:

- /auth/callback is also trusted on the host of the configured OIDC
  callback URL. That URL has to be right for login to work - the identity
  provider rejects any other redirect_uri - so it names the deployment's
  real host even when serverUrl is left at its localhost default. No
  forwarded or Host header can add a trusted target; requestOrigin and
  its X-Forwarded parsing are gone.
- Logout and the two /signin fallbacks are built from the callback URL's
  base (the URL minus its trailing /callback), so they no longer bounce
  the user to a stale serverUrl. A base path survives; a callback URL that
  is not the /callback servlet's keeps serverUrl.
- A rejected redirect logs the trusted targets at WARN.
- The callback documentation fixes stay: the SSO form placeholders and
  conf/openmetadata.yaml now point at /callback, not /auth/callback or
  the non-existent /api/v1/callback.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Block new raw SVG asset debt via pre-commit guard (#34391)

* Block new raw SVG asset debt via pre-commit guard

Icons must come from @openmetadata/ui-core-components/icons, not raw SVGs
under src/assets/svg/. ESLint can't catch new .svg files and the import
rule can't become an error (~500 existing violations), so add a git-diff
guard mirroring tw-deprecation-guard.js that hard-fails only on NEW debt:
a newly added assets/svg .svg file or a newly added import from assets/svg.
Existing usage is untouched. Also drop the redundant @untitledui/icons
restriction from no-restricted-imports.

* Fix svg-guard: anchor pathspec to repo root, normalize moved imports

- newSvgFiles used a CWD-relative pathspec, so the new-.svg check silently
  no-op'd when run from the UI directory (only the repo-root pre-commit hook
  worked). Anchor with ':(top)'.
- Import comparison keyed on the raw specifier, so moving a file to a
  different folder depth rewrote '../assets/svg/x' to '../../assets/svg/x'
  and flagged a pure refactor as new debt. Compare by the stable
  'assets/svg/...' suffix via svgKey().

* Enforce raw-SVG import ban via ESLint error + suppressions baseline

Replace the pre-commit git-diff guard with a pure-ESLint approach: flip the
assets/svg no-restricted-imports rule from warn to error and baseline the 66
existing offenders into eslint-suppressions.json (the native bulk-suppressions
mechanism already used for the playwright rules). New raw-SVG imports now fail
ui-checkstyle (lint_src -> final gate), blocking merge, while commits stay
unblocked (no eslint pre-commit hook). Drop svg-deprecation-guard.js and its
pre-commit entry.

* Switch raw-SVG enforcement to the antd strategy (git-diff guard)

Fold the raw-SVG checks into tw-deprecation-guard.js so they run in the exact
same places as the antd/less guard: the tw-deprecation-guard pre-commit hook
and the tw_guard ui-checkstyle step (no new workflow wiring). A newly added
assets/svg .svg file or a new import from assets/svg now blocks both commit and
merge, matching how new antd debt behaves. Revert the ESLint error +
suppressions approach (rule back to warn as an editor nudge; suppressions
baseline removed). Add .svg to the hook's file filter, pipe git-show stderr to
silence the harmless new-file 'fatal' line, and cover the new logic with tests.

* Remove the global raw-SVG ESLint rule for antd-strategy parity

antd has no global no-restricted-imports entry — it's enforced solely by
tw-deprecation-guard.js. The SVG warn was a leftover from the ESLint approach
and did nothing but add an editor squiggle. Drop it so raw-SVG enforcement
lives entirely in the guard, exactly like antd.

* test gaurd

* reverted testing changes

* test(e2e): connect to Redshift with sslMode require (#34630)

The e2e Redshift cluster now rejects non-SSL connections and sslMode
defaults to disable, so set sslMode: require in every CLI e2e Redshift
config and select it in the Playwright Redshift connection form.

* Fix MCP search tool descriptions: search_metadata is keyword-only, semantic_search returns tables not columns (#34628)

* fix(ui): keep full breadcrumb when opening an asset from an Assets tab card (#34621)

* fix(ui): keep full breadcrumb when opening an asset from an Assets tab card

ExploreSearchCard precomputed the breadcrumb for the destination page and
passed it via router state, but computed parents-only and then sliced off the
last parent. The asset detail header renders that state verbatim without
re-appending the entity name, so arriving via an asset card showed only
service / database (schema and the asset name were dropped). Direct navigation
was unaffected because it rebuilds the trail from the fetched entity.

Compute the state breadcrumb with includeCurrent=true and stop slicing, so the
header receives the complete service > database > schema > table trail,
matching a direct visit. breadcrumbData[0] stays the service crumb, so the
AI-shell sidebar origin logic is unchanged.

* chore(playwright): auto-refresh impact-map.generated.json

* test(playwright): assert collapsed breadcrumb correctly after asset-card nav

The DataAssetsHeader breadcrumb auto-collapses: the schema ancestor moves into
the overflow menu and the current crumb (aria-current) renders the entity name,
not the displayName. Assert the schema via the overflow-aware helper and the
current crumb via aria-current + entity name.

* lint fix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(ui): reliably refresh teams list after create (fixes flaky Teams breadcrumb E2E) (#34619)

* fix(ui): reliably refresh teams list after create (nonce trigger)

The all-teams advanced fetch (parentTeam=...&fields=...) rode a boolean
flag: fetchAllTeamsBasicDetails set it true, an effect fired the fetch on
the flip, and the fetch reset it to false. When a refresh was requested
while a prior advanced fetch was still in flight (slow under load), the
boolean was already true, so the write was a no-op, the effect never
re-ran, and the refresh was silently dropped.

Split the single boolean into a monotonic nonce (trigger) and a dedicated
loading flag. Each basic-fetch completion bumps the nonce, so the effect
always re-fires even while a prior fetch is in flight. The loading flag
keeps driving the hierarchy count skeletons.

Fixes the flaky Teams breadcrumb Playwright test (the awaited teams-list
GET was never sent) and the underlying bug where creating a team while
counts were still loading left the new row's counts stale.

* fix(ui): guard overlapping team fetches and drop duplicate nav fetch

Address review feedback on the nonce change:

- Overlapping full refreshes: the nonce lets a newer advanced fetch start
  before an older one resolves. Tag each full refresh (updateChildNode=false)
  with a request id and only let the latest apply its list and clear the
  loading flag, so a slow pre-create response can no longer overwrite the
  list with stale data or hide the count skeletons early. Expand calls merge
  into a specific subtree and skip the request-id bump, so they don't
  invalidate each other.
- Duplicate fetch on navigation: keying the effect on both the nonce and fqn
  fired the advanced GET twice per navigation (once from fqn, once from the
  following nonce bump). Trigger on the nonce alone and read the latest fqn
  through a ref.

* refactor(ui): extract toListTeam helper to clear cyclomatic-complexity

fetchAllTeamsAdvancedDetails exceeded the complexity gate (11 > 10) after
the staleness guard was added. Extract the team-list row mapping (shared
verbatim with fetchAllTeamsBasicDetails) into a module-level toListTeam
helper, removing two decision points from the function and de-duplicating
the mapping.

* fix(ui): clear TeamsPage lint error and exhaustive-deps warnings

- cyclomatic-complexity (error): the previous helper only touched the map
  callback (a separate function), so fetchAllTeamsAdvancedDetails stayed at
  11. Extract the result-application branch into applyAllTeamsData, dropping
  two decision points from the function (now 9).
- exhaustive-deps (warnings): add the stable t to the two useCallback dep
  arrays that use it; annotate the three trigger effects with justified
  eslint-disable-next-line (their fetchers are non-memoized triggers, not
  reactive inputs — adding them would re-run every render or duplicate the
  navigation fetch).

* fix bots spec

* fix(ui): shorten eslint-disable justifications to satisfy max-len

* lint fix

* fix(ui): don't show whole-table skeletons when expanding a team row

The nonce refactor set isFetchAllTeamAdvancedDetails(true) at the start of
every advanced fetch, including expand (updateChildNode=true). That flag
drives the per-column skeletons across all rows in TeamHierarchy, so
expanding one row blanked the whole table. Restore the original behavior:
set the flag only for full refreshes (setIsFetchAllTeamAdvancedDetails(
isFullRefresh)); expand leaves it off.

* fix(ui): never let an expand toggle the full-refresh skeleton flag

setIsFetchAllTeamAdvancedDetails(isFullRefresh) still wrote false on expand,
and the finally cleared it too (isLatestFullRefresh is always true for
expands) — so expanding a row while a full refresh is mid-flight hid the
count skeletons early and showed stale values. Guard both the set and the
clear on full-refresh-only: set behind if (isFullRefresh); clear behind a
new isActiveFullRefresh() (isFullRefresh && latest). The && lives in a
nested arrow so cyclomatic-complexity stays at 10.

* test(ui): cover the advanced-fetch stale-response race in TeamsPage

Overlap two full refreshes (mount + showDeleted toggle), resolve the newer
one first and the older (stale) one last, and assert the stale response does
not overwrite the list. Verified it fails without the request-id guard in
fetchAllTeamsAdvancedDetails. Extends the TeamDetailsV1 mock to render
childTeams names so the applied list is observable.

* fix(ui): mark fire-and-forget advanced fetch with void (no-floating-promises)

* refactor(ui): remove all eslint-disable comments from TeamsPage

Replace the three disable directives with real fixes:

- Move updateTeamsHierarchy to module scope (pure, no closure); convert
  applyAllTeamsData, fetchAllTeamsAdvancedDetails, fetchAllTeamsBasicDetails,
  getParentTeam, and fetchTeamBasicDetails to useCallback with honest dep
  arrays so their identities are stable.
- fetchAllTeamsBasicDetails now chains the advanced fetch directly (void
  call) instead of bumping a nonce through an effect — removes the nonce
  state, fqnRef, and the two associated effects entirely.
- The team-list effect depends on [fqn, hasViewPermission,
  fetchAllTeamsBasicDetails]: fqn/permission changes trigger navigation
  refetches; fetchAllTeamsBasicDetails identity changes when showDeletedTeam
  flips (it closes over it), so the deleted-toggle refetch works without a
  dedicated effect.
- The team-details effect now lists all deps honestly: [hasViewPermission,
  fqn, fetchTeamBasicDetails, loadAdvancedDetails].
- applyAllTeamsData uses a functional setChildTeams updater on the expand
  path so it doesn't close over childTeams and can stay stable.
- createNewTeam explicitly refreshes the list after a create (void
  fetchAllTeamsBasicDetails) since navigation/toggle no longer cover it.

No behaviour change. 13/13 tests pass. Zero eslint-disable lines remain.

* fix(ui): guard fetchAllTeamsBasicDetails against stale navigation responses

A basic fetch from a previous fqn could resolve late, overwrite the list
with the old parent's teams, and chain an advanced fetch that bumps
advancedFetchIdRef — causing the in-flight advanced fetch for the current
fqn to be dropped as superseded. Add basicFetchIdRef alongside
advancedFetchIdRef and drop the response (and the chained advanced call)
if a newer basic fetch has already started.

* lint fix

* feat(ui): redesign glossary term synonyms widget with core components (#34370)

* feat(ui): redesign glossary term synonyms widget with core components

Replace the Ant Design Select/Button/icons in the synonyms widget with
ui-core-components and match the new design:

- Edit mode: chip input (Enter or comma adds, Backspace removes the last
  one) with a key hint, plus a Cancel/Save footer showing "Unsaved changes".
- Case-insensitive duplicates are rejected with an inline error and the
  matching chip highlighted.
- View mode shows up to six synonyms with a "+N More" / "Show Less" toggle.

The editor lives in its own component to keep the widget under the
cyclomatic-complexity limit; the duplicate check is a tested pure util.
Playwright selectors updated for the new markup.

* fix(ui): use BadgeWithButton chips and core tooltip for glossary synonyms

- Edit mode renders each synonym as a core BadgeWithButton instead of
  Tag/TagGroup. Core Tag's remove icon ignores its size classes and its
  label cannot be styled, which needed selectors into core internals.
  Duplicates use color="error"; remove buttons get an accessible name.
- Long synonyms truncate at max-w-24 so two fit per row, in both edit
  and view mode. SynonymBadge takes an optional className so the narrower
  width applies to this widget only.
- SynonymBadge shows the full synonym in the core Tooltip instead of the
  browser title attribute.
- Playwright and unit tests target remove-synonym-<name> buttons.

* fix(ui): keep typed synonym when saving without pressing Enter

Typed text was dropped if the user clicked Save before pressing Enter or
comma. Commit it on input blur, as the legacy antd tags input did; Save
blurs the input first, so the text is saved. Duplicates stay in the
input with the error and are not added.

* fix(ui): ignore IME Enter and show tooltips on synonym editor chips

- Skip key handling while an IME composition is active (isComposing, or
  keyCode 229 in Safari), so Enter that confirms a ja/zh/ko candidate no
  longer adds a half-composed synonym. Same guard as FeedEditor.
- Pass tooltip={synonym} to the editor chips so truncated synonyms can be
  read in full. The label is block-level so max-w-24 still applies inside
  the tooltip trigger.

* refactor(ui): edit glossary synonyms with core Autocomplete

Address review on the synonyms widget:

- Edit with core Autocomplete (allowsCreation, hideDropdown, multiple),
  the same field the create form uses, and remove the hand-rolled
  GlossaryTermSynonymsEditor. Case-insensitive duplicates are rejected in
  onItemInserted and flagged while typing; chips render via renderTag.
  Comma-to-add is dropped.
- Add a footer prop to WidgetCard so Save/Cancel render in Card.Footer
  next to Card.Content instead of inside it.
- Use Box for layout, reuse message.entity-already-exists and
  message.synonym-placeholder, and share one chip width constant.
- Move MAX_VISIBLE_SYNONYMS to Glossary.contant.ts and inline the
  duplicate check.
- SynonymBadge only opens its tooltip when the text is truncated, the
  IME guard drops keyCode 229, and the list collapses on save/cancel.

* test(playwright): fix ObservabilityAlerts permissions-test flakes (409 + load wait) (#34651)

Two independent failures of "Alert operations for a user with and without
permissions":

- beforeAll 409 "Entity already exists": the ingestion pipeline name was a
  module-level constant, so a second beforeAll in the same worker
  (fullyParallel) re-posted the same name into the shared pipelineService.
  PipelineClass.delete() also never removed the ingestion pipeline, which is
  a child of the service, not the pipeline. Name it per beforeAll and
  hard-delete it in PipelineClass.delete().

- visitObservabilityAlertPage timeout: waitForURL defaulted to waitUntil
  'load', which also waits on the third-party scarf.sh pixel in index.html.
  When that request hung in CI, load never fired although the page was on
  /observability/alerts and fully rendered. Wait for 'commit' instead.

* fix(ui): white tab surface on test case page and pad the incident list (#34650)

- Test case details page: put the tab panel on a white rounded surface
  (tw:bg-surface) in classic mode, so tab content no longer sits on the
  grey page background. AI mode keeps its own surface.
- TaskListV1: give the list its own padding (tw:p-5) instead of the
  activity-feed-tab-padding class, whose stylesheet is not loaded on the
  test case Incident tab, leaving the incident cards flush to the edges.

* fix(ui): align AI-mode sidebar icon colours (inbox, expand/collapse) (#34642)

* fix(ui): align AI-mode sidebar icon glyph and colour tokens

Three icon inconsistencies in the AI-shell sidebar, all scoped to AI mode
(the classic left nav renders identically before and after):

- Expand/collapse rail buttons and the inbox launcher used
  `tw:text-fg-quaternary`, which resolves to gray-400, while every nav and
  list icon beside them uses `--tw-text-color-quaternary` (gray-500). That
  one-step-paler token is why they read washed out next to the globe. The
  class is dropped so each icon inherits its button colour, and the two
  `__expand-btn` rules move from `@ask-text-quaternary` to `@ask-icon-rest`
  so they also track the nav icons in dark mode (gray-600 there, where raw
  quaternary would flip to gray-400).

- `ontology-active.svg` / `ontology-default.svg` were the old
  circles-and-lines knowledge-graph glyph and are unreferenced in this repo.
  Redrawn as the `LayersThree01` path so the Ontology Studio entry cannot
  diverge from Frameworks in the selected state. The active variant
  previously hardcoded `stroke="#1849A9"`, which would have matched in light
  mode but not dark, where `@ask-brand-active` resolves to brand-300;
  `currentColor` inherits whatever the sibling inherits, in every theme.

- `OntologyStudioIcon` drops its `createIconWithStroke(..., 1.2)` wrapper.
  The restroke never applied: core-ui's `LayersThree01` sets
  `strokeWidth={1.3}` on its `<path>`, and a presentation attribute on the
  element beats the value inherited from the `<svg>`. Removing it deletes a
  comment claiming a weight the icon has never had; rendering is unchanged
  on both the AI sub-nav and the classic left nav.

* refactor(ui): drop the OntologyStudioIcon alias, name LayersThree01 directly

#32324 introduced `OntologyStudioIcon` for one reason: to restroke
`@untitledui`'s LayersThree01 from its shipped weight of 2 down to 1.2 in a
single place, so the classic sidebar and the app-mode sub-nav could not drift
apart. #34141 then migrated icons to core-ui, whose LayersThree01 sets
`strokeWidth={1.3}` on its own `<path>` — a presentation attribute that beats
the value inherited from the `<svg>`. The restroke has been inert ever since,
leaving a pass-through alias that buys nothing.

Two repo rules say to name the component at the call site instead: "No
wrappers around core-ui components — a wrapper that only passes props through
is a maintenance liability: it hides which core component is in use", and
"Import icons from @openmetadata/ui-core-components/icons". The indirection
also hid the thing worth checking: you could not tell from the nav entry that
the glyph was LayersThree01, which is what makes it match the other
LayersThree01 entries beside it.

Verified against the running app before and after — same path data, same
stroke 1.3, same rgb(24, 73, 169) when selected and rgb(113, 118, 128) at
rest, on both the AI sub-nav and the classic left nav.

* Revert the Ontology Studio icon changes — they belong in Collate

The sub-nav where the icon looked wrong (Audit Hub, Automations, AI Assets →
Frameworks) is defined in Collate's governance module, not here. OSS's own
Ontology Studio entry already renders correctly: verified against the running
app, it draws LayersThree01 at stroke 1.3, rgb(113, 118, 128) at rest and
rgb(24, 73, 169) when selected — the same glyph and tint Frameworks gets.

So this repo needed nothing, and three of the edits were speculative:

- ontology-active.svg / ontology-default.svg were redrawn as the layers glyph
  on the theory that Collate wired those assets. Nothing in this repo
  references either file, so the rewrite had no verified consumer.
- Dropping the OntologyStudioIcon alias would have broken Collate's build if
  its governance module imports the symbol.

Restored to origin/main. What remains is the icon-colour work, which is
AI-mode-only and was confirmed in the browser.

The dead restroke stands as a separate finding: #32324 added
createIconWithStroke(LayersThree01, 1.2), and #34141's move to core-ui — whose
LayersThree01 sets strokeWidth={1.3} on its own path — made it inert. Worth a
follow-up, but not on the critical path for this fix.

---------

Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local>

* fix(ui): close an open FilterSelect when its trigger is pressed again (#34667)

React Aria's MenuTrigger only opens on a mouse press start; closing relies
on a modal overlay. FilterSelect is non-modal and owns dismissal, but its
outside-pointerdown listener skipped the trigger, so pressing the trigger
of an open filter left it open. Close on a trigger-button press and stop
the event so React Aria does not reopen it in the same gesture. Chip
remove buttons in the chips field still keep the popover open.

* feat(ui): show human-readable version and release date in What's New alert and help menu (#34654)

* feat(ui): show human-readable version and release date in What's New alert and help dropdown

Replaces the raw build-stamp version string (e.g. 1.13.202609250000) with a
simplified major.minor version and a derived release date parsed from the 12-digit
build timestamp. Both the What's New alert left panel and the NavBar help-menu
version item are updated; shared parsing helpers are added to Version.ts with unit
tests, and the `label.released` i18n key is added and translated across all 20 locales.

* fix(ui): restore WhatsNew alert visibility guard and remove temp debug override

* lint fix

* fix(ui): simplify version by dropping build stamp only, keep patch segments

* chore(ui): fail lint on unused eslint-disable directives (#34665)

Remove the blanket /* eslint-disable */ from reactColumnResize.mock.js.
It suppresses nothing since the config turned off no-require-imports for
src/test/unit/mocks/**, and a blanket directive would silently hide any
problem added to the file later.

Set linterOptions.reportUnusedDisableDirectives to 'error' so a directive
left stale by a fix fails lint instead of warning.

* Add local impact-mapped Playwright runner with PR results block (#34544)

* Add local impact-mapped Playwright runner with PR results block

PR checks no longer run Playwright; the merge queue runs the full suite.
plan_local_playwright.py feeds the branch diff to select_playwright_tests.py
so developers get the same impact-mapped spec list CI computes, a command to
run it, and a results block they can upsert into the PR description.

* Run local Playwright planner through Make targets

Match how the root Makefile runs repo Python scripts (python3 <path>, flags via
ARGS) instead of yarn scripts reaching up five directories.

* Default PLAYWRIGHT_IS_OSS for local runs and explain a missing base ref

Local validation against a real stack showed auth.setup.ts failing on the
Collate-only ingestionRunners API because every CI lane sets
PLAYWRIGHT_IS_OSS=true and the local runner did not. An unknown --base ref
now exits with a fetch hint instead of a traceback.

* Fixes #34557: Add a Search Settings toggle to turn column indexing off (#34571)

* Fixes #34557: Add a Search Settings toggle to turn column indexing off

Adds globalSettings.enableColumnIndexing (default true) and a toggle in
Settings > Preferences > Search Settings. Turning it off stops writing
column docs, both live and during reindex, and deletes
column_search_index. Turning it on creates the index if it is missing.

While it is off, the missing index cannot fail other work:
- Startup, CLI and reindex skip it.
- Table child fan-out and the Explore entity-type counts leave it out.
- Column-only searches return an empty result.

Also fixes SearchRepository.deleteIndex for a canonical name that is an
alias over a rebuilt index. Elasticsearch reports the alias as existing
but rejects a delete through it, so the alias targets are resolved first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Branch the column indexing toggle on its current state

SonarCloud flagged the handler on two counts: it used its boolean
parameter to choose between two actions (S2301), and it left the
enable-path save promise floating (S9383). The toggle is controlled, so
the current setting already says which way a click goes. The handler
now branches on that, and marks the fire-and-forget save with void.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Don't report a turned-off column index as missing

With column indexing off, the system status "Search Reindex Status" step
listed tableColumn as a missing index and asked for a reindex that skips
it. Skipping it only there would let the mapping-drift check mark it
stale after a release that changes the column mapping.

SearchRepository.isIndexDisabled now holds the rule. It is applied next
to the vector-index skip in findMissingIndexes and
existingTrackedIndexes, and to the /v1/search/stats and search-index
metric counts, which walked every mapping the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send (#34663)

* Fixes #34662: never let a bot bulk PUT blank fields the source doesn't send

With overrideMetadata=true, an empty description or displayName and an
omitted certification overwrote stored values. tableConstraints had no
bot guard at all, so any bot PUT without constraints removed them,
override or not. Override now replaces a stored value only when the
source supplies one; constraints on dropped columns are still cleaned up.

* Move table-constraint ITs above the helpers section

* Fixes #34668: Run the app-run recovery ITs one test at a time (#34669)

* Fixes #34668: Run the app-run recovery ITs one test at a time

On MySQL the interrupt UPDATE scans apps_extension_time_series by timestamp,
so concurrent tests sharing the same small timestamps deadlocked against a
sibling test's cleanup DELETE. RdfIndexRunRecovery retries on the deadlock,
but the test asserted before the retry and saw the run still running.

* Keep the two app-run recovery ITs from running at the same time

RdfIndexRunRecoveryIT also runs in the parallel lane, next to
AppRunInterruptionIT. Both use the same small run timestamps, so the same
deadlock could happen between the two classes. Share a resource lock.

* Fixes #34636: Inbox on the standard page shell, plus Inbox and My Data dark mode (#34637)

* fix(ui): dark mode for the Inbox and My Data pages

- Activity feed message card hovered to `bg-white`, so in dark the hovered
  row turned into a white box with unreadable light text. Hover to
  `bg-surface` (white in light, raised in dark).
- My Data stat cards sat on `bg-primary`, darker than the page in dark;
  use `bg-surface` like Explore's panels. FeaturedIcon's gray/light theme
  switches to a solid gray block in dark, so keep the gray-blue tint with
  dark variants (the utility scale flips per theme).
- My Data asset list container is raised (`bg-surface`) with its divider
  on `border-secondary` in dark, matching Explore's results column.
- User avatars (ProfilePicture, core OwnerChip) were painted with inline
  light HSL that cannot follow the theme, leaving pale 92%-light bubbles on
  dark surfaces. The hue now travels as a CSS variable and classes choose
  the lightness per theme; light reproduces the original HSL exactly and
  dark draws a deep tint, light glyph and a ring in the same hue.

Light mode is pixel-identical on /inbox/activity, /inbox/tasks and
/my-data.

* fix(ui): put the Inbox on the standard PageLayout shell

The Inbox built its own shell: a PageHeader stripped of its card (no
radius, no border, a bottom rule instead) over a bg-primary Box, edge to
edge. Every other app page (Data Quality, Alerts, Connections) uses
PageLayout > PageLayout.PageHeader > PageLayout.Content, so the Inbox's
header and content backgrounds differed from them - most visibly in dark,
where bg-primary is darker than the page surface.

Use the same core PageLayout composition with an unmodified header card,
content on the page surface, and the same insets as Data Quality (8px
inside the header edge, 16px below it).

* fix(ui): keep the Inbox activity timeline line visible in dark

The rail was utility-gray-blue-100, which flips to gray-blue-900 in dark
and disappears against the page surface. Use border-primary in dark only;
light keeps its gray-blue line.

* fix(ui): Triage comment composer in dark mode

- The composer footer was bg-primary, darker than the detail panel in dark;
  it now matches the panel (bg-secondary in dark).
- Quill's placeholder is rgba(0, 0, 0, 0.6), invisible on dark; use the
  placeholder token in dark.
- Quill draws toolbar icons with a fixed #444 stroke (near-invisible on
  dark) while the @ / # text buttons took near-white text; give every
  toolbar icon one muted tone in dark.

Light mode is unchanged.

* fix(ui): keep Quill hover/active toolbar states in the dark composer

The dark muted-icon override outranked Quill's button:hover / .ql-active
rules, so toggled formats looked idle. Scope it to idle buttons only;
hovered and active buttons keep the brand highlight.

* refactor(ui): move feed Reactions to core and drop their LESS

Reactions, Emoji and Reaction were antd Button/Popover with
reactions.less, and the Inbox carried activity-feed-item.less only to
re-size those antd buttons into one row.

- Add-reaction trigger: core Button + PopoverTrigger/Popover.
- Reacted-emoji pills: core Button (22px, brand outline when the current
  user reacted) with the reactor list in a core HoverCard.
- Picker emoji: core Button with a brand tint when already reacted.

data-testids are unchanged (feed-reaction-container, add-reactions,
reaction-button, emoji-button, emoji-count, popover-content).
reactions.less and activity-feed-item.less are deleted; nothing else
used their classes.

* test(ui): target the core reactions popover in the feed helpers

The reactions picker moved from antd Popover to the core Popover, so the
helpers' .ant-popover-feed-reactions locator and rc-motion class check no
longer match. Locate it by test id and wait for react-aria's data-entering
to clear instead.

* test(ui): find reaction buttons by aria-label, not title

The core Button (react-aria) does not forward `title` to the DOM, so the
[title="<reaction>"] locators stopped matching after the Reactions moved
to core.

* Fixes #34394: Add memory lifecycle and status filtering (#34647)

* feat(memory): enforce lifecycle and disputes

* feat(memory): inherit anchor domain on create

* fix(memory): gate anchored REST reads

Entity memories about restricted assets were visible through direct REST
reads. Check ViewBasic on the anchor for non-owners.

Search still relies on domain inheritance and search RBAC; asset policies
are not evaluated per result.

* fix(memory): gate MCP pill reads by anchor

The by-name Company Context lookup omitted primaryEntity, so an anchored
memory appeared unanchored to the visibility check. Fetch the decision
fields before projecting the pill.

Query search remains governed by search RBAC and inherited domains.

* fix(memory): guard history and retain list cursors

History endpoints exposed earlier versions without checking the current
memory's visibility. Check the current memory before serving either
history endpoint.

Keep paging cursors when hidden memories are filtered from a list page
so callers can reach later visible rows.

* feat(memory): index lifecycle and retain anchors

Map supersession and dispute fields in every search locale and request
the relationship fields needed by memory docs during reindex.

Default an omitted status to Active on create. The generated model leaves
the schema default null, which broke lifecycle reads after regeneration.

* feat(vector): filter memory chunks by status

Stamp lifecycle status on chunk docs and accept it in both vector query
builders. Non-Active transitions change the fingerprint to refresh the
filter fields; existing Active memories keep their fingerprint.

* fix(memory): protect lifecycle updates

Preserve server-managed lifecycle fields on PUT so re-extraction cannot
reactivate a superseded memory or erase disputes.

Reject newly referenced memories the editor cannot read, and cache
anchor access decisions within each list page.

* style(memory): format lifecycle integration test

* fix(memory): hide anchored search hits

Search cannot evaluate an anchor's asset policy for each indexed hit.
Limit anchored Entity memories to owners and admins in lexical and vector
search; direct reads still allow asset readers.

Require an explicit unanchored marker so older documents fail closed
until reindexed. Stamp the marker on entity and chunk documents.

* fix(memory): search only active memories

Keep retired memories available through direct lifecycle and version reads while excluding them from lexical, vector, and Company Context retrieval.

* feat(memory): show lifecycle in Context Center

* fix(ontology): reject retired memory proposals

* feat(memory): filter lifecycle states in Context Center

Allow status selection alongside search, asset, author, and sort filters while keeping ordinary search Active-only.

Preserve lifecycle fields on omitted-status PUT and prevent non-Active memories from proposing glossary terms. Extend API and UI coverage for these behaviors.

* test(memory): validate lifecycle on main

Reconcile Public memory visibility and index fields after the parent PR landed. Cover retired memory behavior in Playwright and align the deleted-source glossary expectation.

Refs #34394

* fix(context-center): protect file-anchored memories

* fix(ci): align memory contracts and MF4 deps

* revert: keep ingestion dependencies unchanged

* fix(context-center): address lifecycle review

* fix(context-center): handle legacy memory status

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it

Every entity type whose schema declares entityStatus now gets its lifecycle
stage rules from EntityRepository instead of a schema default, so they live in
one place:

- A new entity starts in its type's stage: Draft for domains, data products,
  glossaries, articles, ontology axioms, data contracts and AI assets;
  Approved for assets that come from the data infrastructure. Metrics and
  glossary terms start Draft only when they have reviewers.
- A PUT, bulk upsert or CSV import whose request carries no stage keeps the
  stage the entity is in instead of resetting it.
- While a deployed, unsuspended governance workflow sets an entity type's
  stage, only that workflow (acting as the governance bot) may change it.
  A direct change is rejected with 403, and a create that asks for a stage the
  workflow owns starts in the type's own stage. The workflow's trigger filter
  decides which entities it owns; suspending it releases them.
- GET /v1/metadata/types/lifecycleStages lists the stages and, per entity
  type, the workflows that own its stage.
- Context memories move from their own Draft/Active/Archived status onto
  entityStatus. The 2.1.0 migration converts stored memories and their
  version history (Active becomes Approved).
- The approval-task closing, in-review delete and reviewer rules that seven
  repositories each duplicated are shared now, with per-type flags keeping
  each rule on the entity types that had it.
- A consolidated update no longer re-validates a stage change that an earlier
  version made, such as a workflow approving on the user's behalf.
- createOntologyAxiom no longer requires entityStatus, and DataProduct
  lifecycleStage is deprecated in favor of entityStatus.

BaseEntityIT checks the stage rules for every entity type; types without a
lifecycle (users, teams, test suites, ...) opt out.

* Update generated TypeScript types and dereferenced schemas

* fix(context-center): show legacy active memories

* Cover the repository lifecycle-stage rules with unit tests

The repositories' stage rules reached the active workflows through a static
EntityStatusWorkflows lookup, so no unit test could put an entity under an
owning workflow. EntityRepository now takes a StageOwnership, with the active
workflows as its default, and the create-time stage assignment and the
updater's stage check are package-private instead of being reached through
reflection.

New tests cover a create that asks for a workflow-owned stage, the workflow
creating and moving an entity in that stage, types whose stage no workflow
owns, approval and rejection by reviewers and reviewing teams, sending an
entity in review back to Draft, session consolidation, memory transitions
through the updater, and glossary terms inheriting reviewers. Line and branch
coverage of the repositories' stage code goes from 66% and 58% to 91% each.

* Let an entity type declare its own lifecycle stages

Every type with entityStatus draws its stages from one vocabulary, but a type
can now declare its own lifecycle in its repository: the stages it uses,
including stages only it has, and the moves between them. Types that declare
none keep the general lifecycle, any move between today's seven stages, so
nothing changes for them, Metric included. A stage added to the vocabulary
later is outside the general lifecycle, so only the types that declare it can
use it.

EntityRepository rejects with 400 a create in a stage outside the type's
lifecycle and a stage change the lifecycle has no move for, for direct edits,
imports and workflows alike. Context memories are the first type to declare
one (Draft, Approved, Archived), replacing their own transition table and
validators. GET /v1/metadata/types/lifecycleStages now reports each type's
stages and transitions, and BaseEntityIT checks that every type rejects a move
outside its lifecycle.

* Fix memory chunk header status projection

* Upgrade memory chunk mapping for entityStatus

* fix(ui): sync generated glossary status schema

* refactor(memory): reuse shared lifecycle statuses

* fix(memory): normalize legacy lifecycle states

Map legacy migration values directly to shared statuses while retaining the 2.1.1 conversion for databases that stored preview values. Treat statusless memories as Approved in reconciliation, ontology derivation, and duplicate m…
harsh-vador added a commit that referenced this pull request Oct 14, 2026
It recoloured Quill's own icons, which have a fixed #444 stroke. The
composer now hides those and draws its own in text-quaternary, which
follows dark mode, so the override only got in the way: it outranked the
brand colour on a keyboard-focused button and turned idle icons tertiary.
timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Oct 20, 2026
…or style (open-metadata#35238)

* refactor(ui): use core components as they are in the inbox

Review: the inbox restyled core components instead of using them.

- Tab counts (Activity/Triage, the Activity sub-tabs, All/Open/Closed) go
  through Tabs.Item badge; the hand-built badges and the list/item padding,
  track and outline overrides are gone.
- Like and the replies toggle read brand while on through the Button's own
  link-color (boxed), not recoloured tertiary buttons.
- The date and group menus drop their trigger class and size like the Type
  filter beside them; menu rows show their selection the core way.
- Open asset, summary links and the table tile are core link buttons; the
  title's asset link takes Typography's link style; the forced weights,
  underlines, badge fonts and the assignee popover height are dropped.

* fix(ui): undate the sidebar Inbox badge so it matches the Triage counts

The Triage tab badge counts every visible Open task, but the sidebar
bubble still applied the inbox date window, so it undercounted whenever
an Open task was older than 30 days (or the selected range).

Fixes open-metadata#34755

* refactor(ui): the Triage Group control is a core menu, not a restyled filter

A grouping always has a value, so as a FilterSelect its "active filter"
tint never cleared and was overridden with tw:**:text-* classes. It is now
the single-choice ActivityToolbarMenu (core Dropdown), read "Group: Type",
with a quiet tertiary sm trigger through the menu's new color / size props.
The Collate E2E's menuitemradio pick and trigger text still match.

* fix(ui): the task title's asset link reads in the title's font again

* chore(playwright): auto-refresh impact-map.generated.json

* test(ui): the TaskDetailPanel Link stub keeps its className

* fix(ui): the sidebar bubble and the Triage badge share one open-task count fetch

* chore(playwright): auto-refresh impact-map.generated.json

* fix(ui): match the Inbox activity cards and replies to the design review

- Like reads "Liked · N" with a filled thumb once the viewer has liked; no
  hover underline (it no longer borrows the link-color button), and its icon
  lines up with the body above.
- Reactions on cards and replies are the design's pills: rounded, 26px, the
  viewer's own tinted brand, others white with a secondary border, 5px between
  emoji and count; a plain smiley (new core FaceSmile icon) adds one. The
  classic feed keeps its chips (ReactionsVariant.Default).
- The card header is 14px throughout; the asset link has no underline and
  keeps the primary text color over the Typography prose color.
- "Hide replies" sits on a brand-tinted chip; repliers' faces get a white
  edge so overlapping ones read apart.
- Reply rows: the hover actions no longer stretch the name row, so the
  message sits 4px under the name.
- Composer: stays one line once it holds text (the FeedEditor's 100px minimum
  had won over the Inbox's 44px), and lists start at the text edge.
- Lists in any FeedEditor drew two markers ("1•"): the Quill 1 rules in
  feed-editor.less still marked each item while Quill 2 marks it on .ql-ui.
- A read-only rich-text preview no longer shows the trailing-node's empty
  paragraph after a final list (a ~30px gap under such a comment).

* fix(ui): keep the liked thumb sized and tinted by the Like button

FilledThumbsUp forwarded only className, dropping the data-icon the core
Button sets on its icon; its size and color classes key off that attribute,
so a liked card's thumb grew from 16px to 20px and lost the brand tint.
Forward every prop.

* test(ui): cover the Triage task matrix's rendering in Jest

The Playwright matrix filed every task type in every workflow state (about
47 workflow tasks) only to check how the detail panel renders them: the type
badge, the type's own approve and reject wording while open, the outcome and
no actions once closed, an incident's own transitions. That is pure rendering
of the task, so it now lives in a TaskDetailPanel table test, with exact label
matches, across 11 types x 4 states and the incident states.

InboxTaskMatrix.spec.ts keeps the Tag request in every state as the check
against a real workflow, and every test of what an action does to the asset
(tag, owner, domain, tier, incidents, reassignment). It seeds a dozen tasks
instead of about 60 and drops the glossary setup. Timing-baseline entries for
the removed tests are dropped; the impact map is regenerated.

* fix(ui): match the Inbox activity cards to the design feedback

- The asset link on a card reads as a link: brand blue, regular weight.
- A plain message sits on the recessed surface of a change's Before.
- Like, the reaction smiley and Reply share one 16px icon size and
  tighter spacing.
- A reply's reactions sit apart from its text, and a lone smiley lines
  up with the text.
- The composer's emoji picker opens right above or below its button,
  which shows as pressed while the picker is open.
- A group header has no rule; its update count sits on the right at
  12px, and Asset and User groups lead with the asset's icon or the
  user's picture.

* fix(ui): anchor the emoji picker in a format bar quill rebuilt

The composer watched the format bar it found on mount. The editor loads
lazily and quill rebuilds its bar when it re-initialises, so after a
reply the picker opened in a bar nobody watched, back at the composer's
far edge. Watch the composer instead and read the bar afresh.

* fix(ui): draw the Inbox's asset icons at the design system's stroke

The shared entity icons draw at a 1.5 stroke, heavier than the 1.3 the
design system's icons use and than the text beside them. The Inbox's
16px asset icons, on the card and on an Asset group's header, now take
the 1.3 stroke through one class.

* feat(ui): give each Inbox activity kind its own badge

The design's Activity icons give each of the 16 kinds of activity (a
conversation and 15 event types) its own 12px badge glyph and fill;
the cards drew six, shared across kinds. The glyphs join the core icon
library as activity-*.svg, generated into ActivityAssetCreated and so
on, and ACTIVITY_EVENT_BADGE maps every ActivityEventType to one, so a
type added to the schema fails the build until it has a badge. An event
type the UI does not know yet reads as a plain update.

The fills are the nearest utility tokens to the design's colors; moss,
teal and the darker blue have no token of their own. The Type filter
keeps its icons.

* fix(ui): read a card's badge kind the way its sentence reads it

A tier change arrives as a tags change, and a column's tags or
description can arrive as its asset's. The card's sentence already read
those apart ("changed the tier"), but its badge took the event type as
sent and drew the tags badge. getActivityKindType now reads the kind
once, for both.

* fix(ui): link a task's asset by its name, not an Open asset button

The task detail's asset card named the asset and offered a separate
Open asset button. The name is now the link (brand blue, regular
weight, like the activity cards' asset link), keeping the button's
test id, and the unused label.open-asset leaves every locale.

* fix(ui): use gray-blue 50 for the Inbox's recessed surfaces; word a description change as Existing and Suggested

Design review: a card's message and a change's Before column move from
bg-secondary_subtle to utility gray-blue 50. A description change reads
Existing and Suggested rather than Before and After; tags, owners and
domains keep Before and After. Adds label.existing and label.suggested
in every locale.

* fix(ui): say who is already assigned instead of 'Assignees is required'

Clicking a task's current assignee in the single-select Reassign picker
clears the pick, and the panel answered with 'Assignees is required.'
Picking the same person again would have sent a reassign that changes
nothing. getReassignBlocker now names who is already assigned in both
cases, and keeps 'required' for an empty pick on a task with no
assignee. Adds message.already-assigned-to-task in every locale.

* feat(ui): show a description or tag task's change as the activity cards do

Design review:
- A description task shows Existing and Suggested side by side, in the
  activity cards' change panel, instead of a Suggested description box.
  Existing is the payload's snapshot, or the field's description on the
  asset as it is now when the payload carries none.
- A tag task shows the tags it removes and adds in the same panel, in
  place of the two tag rows.
- The selected task row is filled with utility blue light 50 and bordered
  with blue light 100.

* feat(ui): keep a tag task's current tags on both sides of its change

The reference shows the tags a field already has, neutral, before and
after, with only the added and removed ones colored. A change can now
carry the values it keeps; a tag task fills them from the payload's
current tags, else the field's tags on the asset as it is now. An
activity event still shows only its change, since it records no more.

* fix(ui): read a tag task's current tags from the asset when the payload's are empty

Tag tasks carry currentTags: [] by default rather than a snapshot, which
hid the field's tags. Only a non-empty snapshot stands in for the asset.

* fix(ui): resolve a task's field path to its field, or to nothing

getField read any path it did not recognise as the entity itself, so a
task on a topic's schema field or a container's data-model column showed
the topic's or container's own description as Existing and its tags as
kept. Only entity-level paths ('', description, tags, entity) now read
the entity; columns.<path> follows its names through nested columns
(address.city), drops the quotes of a dotted name ("a.b"), and still
finds a nested column named on its own. Any other path resolves to
nothing, so the panel shows no Existing side rather than a wrong one.

* fix(ui): update 14 activity badge icons to the design's 1.3 stroke

The design system redrew the Activity icons on a 20px grid with a 1.3
stroke. Replaces 14 of the 16 activity-*.svg sources with the new
exports and regenerates their components; Asset Deleted and Custom
Property Updated were not redrawn and are unchanged. Column Description
Updated's pencil drops a white fill that only masked empty space and
would show solid on the colored badge.

* fix(ui): stack a task's people as owners stack, one row a line

Design review: a row with several people (two assignees, say) listed
each avatar and name on its own line, so the row grew tall and its
neighbours fell out of line. Several people now stack in the core
AvatarGroup, as owners and incident assignees do: a hover card per
avatar and a +N titled by the row's own label. One person still reads
as avatar and name, with (You) for the viewer. Rows center their label
on the value.

* fix(ui): drop the gray fill from a change panel's header

Design review: the field's header row (Description, Tags) sat on a gray
fill; it now reads on the panel's own surface, its rule still splitting
it from the columns. Shared by the activity cards and the task detail.

* fix(ui): color an Inbox message's mentions and links like its asset link

In dark mode a message's @mention kept the editor's fixed primary blue
while the card's asset link (dim_customers) took the brand-secondary
token, which lightens on a dark surface. Links and mentions in an Inbox
message (activity card, reply, task comment) now share that token
through one class.

* fix(inbox): title a task row's people overflow in the plural

The "+N" popover read "5 Assignee" and the overflow button announced
"+2 more Assignee": the row's singular label headed it. Assignee and
owner rows now carry a plural title for the overflow.

* feat(inbox): restyle the comment composer's format bar to the design

The Inbox composer's format bar takes the design's editor style: a tinted
band over the text, its groups split by short dividers, each button one
muted 20px icon. The eleven icons (bold through emoji) are new core
components (TextEditor*), generated from the designer's SVGs.

Quill draws its icons from one app-wide registry, so the composer portals
the new icons into its own toolbar buttons and hides Quill's there; every
other editor keeps Quill's toolbar.

The emoji picker now reads quill-emoji's above/below choice once per
picker: a later node change in the bar re-anchored it and flipped an
above picker below.

* fix(inbox): read a change's Before and After titles in one colour

The Before / Existing title was a step lighter than After / Suggested;
both now take the After title's colour.

* fix(inbox): set an activity card on the core card surface in dark mode

Dark-mode review: activity cards read as black holes on the page. They
now take the core Card's own surface (bg-surface, border-subtle), as AI
Analytics' cards do; light mode is unchanged, where surface is white.

A card's message and a change's Before share one recessed surface: the
design's gray-blue in light and, in dark, the page's well, as AI
Analytics sets its chart previews into their cards.

Also puts three inbox.utils comments back above the constants they
describe.

* fix(inbox): lift an activity card on hover in dark mode

On the dark surface the hover border (gray-700) matched the card, so
hover showed nothing. The card now also takes the core Card's hover
tint, laid over its surface rather than swapped in: the tint is
translucent in dark, and swapped in it let the page through and darkened
the card. Light hover is unchanged in look (#fafafa).

* fix(inbox): keep an activity card's kind badge legible in dark mode

The badge fills are utility-*-700 tokens, which dark mode pales to
*-300, so the fixed white glyph washed out (1.3:1 on yellow). Its glyph
and ring now take the card's surface: white in light as before, and in
dark a dark glyph (7.5-11.8:1) with a ring that matches the card instead
of a page-dark halo. The replies toggle's stacked faces take the same
ring.

* fix(inbox): title every change Existing and Suggested, one surface in dark

Design review: a change reads as what exists and what is suggested
everywhere, not Before / After for values and Existing / Suggested for
text only. In dark mode both sides now share the well; two surfaces side
by side there read as a mismatch. Light keeps the recessed Existing.

* fix(inbox): match the comment composer to the design's text-editor frame

Design review against the Figma text-editor frame: the format bar is a
56px gray-blue band with no rule beneath it, 32px buttons 2px apart, a
20px divider centred in a 12px slot between groups, gray-400 icons, and
a 20px inset; the frame takes a gray-blue border at a 12px radius, and
the text and placeholder sit 28px in. Light mode uses the design's
values; dark keeps the neutral surfaces, since the gray-blue scale turns
navy there.

* fix(ui-core): draw Edit05, Hourglass01, Trash01 and Type01 at the 1.3 stroke

Design review: these four were the only library icons still drawn at a
2px stroke, so they read bolder than the icons beside them. Their SVGs
now use the design system's 1.3 stroke, and the components are
regenerated. The change applies wherever the icons are used.

* fix(inbox): colour muted Inbox icons with text-quaternary

Design review: the task detail row icons, the timeline's default event
icons, the asset card's type icon, the task list's comment icon and the
change panel arrow take tw:text-quaternary instead of
tw:text-fg-quaternary.

* fix(inbox): keep the composer's earlier box, with the design's icons

Design review: keep the comment box as it was (a white format bar over a
hairline, Quill's button sizes, the one-line text row) rather than the
Figma text-editor frame, changing only its icons to the designer's set
and its border to gray-blue-100. Dark mode keeps a neutral border, since
the gray-blue scale turns navy there.

* fix(inbox): draw the composer's format-bar icons at 16px

Design review: the icons read at 16x16, centred in Quill's own button
box, so the bar keeps its height.

* fix(inbox): drop the composer's dark-mode idle icon override

It recoloured Quill's own icons, which have a fixed open-metadata#444 stroke. The
composer now hides those and draws its own in text-quaternary, which
follows dark mode, so the override only got in the way: it outranked the
brand colour on a keyboard-focused button and turned idle icons tertiary.

* chore(playwright): auto-refresh impact-map.generated.json

* fix(inbox): edit a comment in the composer's box, hint left of Cancel

Editing a task comment or an activity reply opened the legacy editor:
Quill's own icons, its round send button and grey border, with the
"Shift + Return to add a new line" hint pinned to the right, where it
ran under Cancel.

- InboxCommentComposer's editor (the design's format-bar icons, the
  arrow send button, the gray-blue box) is now InboxCommentEditor, and
  the composer is the avatar beside it.
- InboxCommentEdit opens a comment in that editor, over a row with the
  new-line hint on the left and Cancel on the right. TaskCommentRow and
  ActivityThread both use it; their test ids are unchanged.

* feat(inbox): hide the comment format bar behind a formatting toggle

Per the design (Comment Composer, 1a "Formatting toggle next to send"):
the composer starts as one line of text. A formatting toggle beside the
send button (the Type icon, split from send by a hairline) shows the
format bar above the text, and stays highlighted (brand) while it shows.
The edit box opens the same way.

Labels: label.show-formatting / label.hide-formatting, translated in
every locale.

* fix(inbox): keep the comment box border while it is focused

FeedEditor sets an inline rgba(0, 0, 0, 0.1) border on its container
while focused. An edit box opens focused, so it lost the composer's
gray-blue border, and in dark mode its edge all but vanished. The
Inbox editor's scoped border now holds over the inline one.

* chore(playwright): auto-refresh impact-map.generated.json

* refactor(ui): move the comment composer to common/CommentComposer, styled with Tailwind

The UI is moving off .less, so the composer's stylesheet is gone:
inbox-comment-composer.less becomes Tailwind classes on the editor's root,
grouped by part (box, format bar, text, mention list, link tooltip). Quill
builds that markup itself, so the classes reach it with arbitrary
descendant variants (`tw:[&_.ql-toolbar]:…`), as other components do for
third-party markup. They carry `!`: Quill's snow theme and the
FeedEditor's styles are unlayered CSS, which beats Tailwind's utilities
whatever their selector. A few things the less did implicitly had to be
spelled out:
- `before:`/`after:` also reset `content`, so the link tooltip's ::before
  and ::after ("Enter Url:", "Save") are reached inside the selector.
- Tailwind reads `_` as a space in those selectors, so the icon marker
  class is `comment-composer-icon`.
- The theme's `shadow-lg` is empty here; the mention list takes
  `--om-shadow-lg` as before.
- The format groups' `vertical-align: middle` was Quill's own already, so
  that rule is dropped rather than outranking feed-editor's.

Checked against the less version in light and dark, across collapsed,
open, hovered, focused, mention list, link tooltip, emoji picker, edit
box and thread composer: every computed style of every element in the
composer (and its ::before/::after) is the same, and screenshots match
but for sub-perceptual antialiasing.

The composer is no longer only the Inbox's (an entity's Activity tab and
Collate's access-request drawer use it), so it moves to
components/common/CommentComposer and drops the prefix: CommentComposer,
CommentEditor, CommentEditForm. The old path re-exports the default for
Collate until it imports the new one; the `inbox-comment-composer` test id
stays, as OSS and Collate specs find it by that.

* chore(playwright): auto-refresh impact-map.generated.json

* style(ui): format the moved CommentComposer test

ui-checkstyle:changed lists files with --diff-filter=ACM, so the test
that moved with the composer (a rename) was never formatted locally.
Prettier collapses the calls that now fit on one line.

* chore(playwright): auto-refresh impact-map.generated.json

* i18n: translate the formatting toggle labels in Italian

Main added the it-it locale after this PR added label.show-formatting and
label.hide-formatting to every locale, so it-it lacked them and I18n Sync
failed.

* refactor(ui): split the comment composer's constants, helper and hook out

Review feedback (frontend-react.md, frontend-styling.md, AGENTS.md):
- CommentComposer.tsx holds only its components. The editor's class
  groups sit in a sibling CommentComposer.constants.ts. The format-bar
  icon map and the emoji-picker offset move to constants/, the button
  comparison to utils/, and the hook to hooks/useCommentFormatBar.ts:
  hooks may not import from components/, so what it reads sits below.
- The @ / # buttons' padding and the 14px font sizes read tokens
  (px-1.25 / py-0.75 on the 4px spacing scale; --tw-text-sm, font size
  only, so Quill's 44px mention rows keep their line height). Same
  computed values as before.
- A comment that restated COLLAPSED_CLASS is dropped.

* feat(ui-core): ButtonUtility isSelected, for a toggle that is on

Review feedback (frontend-styling.md: core components keep their own
styling). The comment composer's formatting toggle painted its on state
through className on ButtonUtility, and the new-line hint its colour
through className on Typography.

- ButtonUtility takes isSelected: on, it reads in brand (bg-brand-primary,
  text-brand-secondary, the same on hover) over its resting colour and
  sets aria-pressed; left unset, it stays a plain action. A Selected
  story shows a tertiary and a secondary toggle off and on.
- The formatting toggle uses isSelected, at size lg (the 32px box and
  20px icon it had before main resized sm to 24px).
- The hint uses Typography color="secondary" (text-tertiary, as before).

* fix(ui-core): keep a selected secondary ButtonUtility brand on dark hover

Secondary hovers to bg-raised in dark mode under its own variant, which
tailwind-merge keeps beside hover:bg-brand-primary, so a selected
secondary toggle lost its brand background when hovered in dark mode.
selectedStyles overrides the dark hover too.

* chore(ui): size the composer avatar with ProfilePicture's size prop

width is deprecated (Sonar typescript:S1874). width="24" already
resolved to size xs, so the avatar renders the same.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

Redash connector to ingest dashboards

2 participants