Skip to content

fix(a11y): WCAG 3.3.1 — add error identification with role=alert and aria-describedby - #39245

Closed
Aitema-gmbh wants to merge 5 commits into
apache:masterfrom
aitema-de:fix/wcag-3.3.1-error-identification
Closed

Aitema-gmbh wants to merge 5 commits into
apache:masterfrom
aitema-de:fix/wcag-3.3.1-error-identification

Conversation

@Aitema-gmbh

Copy link
Copy Markdown
Contributor

SUMMARY

Implements WCAG 2.1 criterion 3.3.1 (Error Identification, Level A).

  • Add role="alert" to error containers (BasicErrorAlert, Alert component)
  • Add aria-invalid and aria-describedby to form inputs with validation errors
  • Screen readers now announce errors immediately and associate them with the relevant input field
  • Covers: ControlHeader, NumberControl, TextControl, ModalFormField, SSH Tunnel form, SQLAlchemy form, Roles form

TESTING INSTRUCTIONS

  1. Open Chart creation → submit without required fields → errors should be announced by screen reader
  2. Inspect error messages → should have role="alert"
  3. Inspect invalid inputs → should have aria-invalid="true" and aria-describedby pointing to error

ADDITIONAL INFORMATION

@dosubot dosubot Bot added change:frontend Requires changing the frontend design:accessibility Related to accessibility standards labels Apr 9, 2026

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review Agent Run #f7d2d1

Actionable Suggestions - 2
  • superset-frontend/src/explore/components/controls/NumberControl/index.tsx - 1
    • Invalid HTML id when name is undefined · Line 94-95
  • superset-frontend/src/explore/components/ControlHeader.tsx - 1
Additional Suggestions - 4
  • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx - 1
    • Custom CSS in error display · Line 97-101
      The error messages use inline styles (color: 'red', fontSize: '12px'), which violates the guideline to avoid custom CSS and follow antd best practices. Consider wrapping the Input components in Form.Item with validateStatus='error' and help props to leverage antd's built-in error styling and accessibility features, removing the need for manual aria attributes and custom spans.
  • superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx - 2
    • Custom inline style for error color · Line 73-73
      The error message div uses an inline style for color, which violates the guideline to avoid custom CSS and follow antd best practices. Consider using the emotion css prop with theme.colorError instead, matching the pattern used elsewhere in the component like the Button's css prop.
      Code suggestion
       diff --git a/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx b/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
       index 1234567..abcdef0 100644
      --- a/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
      +++ b/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
       @@ -72,7 +72,7 @@
                {nameError && (
                  <div className="helper" id="database-name-error" role="alert" style={{ color: 'var(--ifm-color-danger, #e04f5f)' }}>
                    {t('Display Name is required')}
                  </div>
                )}
      +        {nameError && (
      +          <div className="helper" id="database-name-error" role="alert" css={(theme: SupersetTheme) => `color: ${theme.colorError};`}>
      +            {t('Display Name is required')}
      +          </div>
      +        )}
    • Custom inline style for error color · Line 103-103
      Similar to the name error, this URI error message uses an inline style for color. Replace with emotion css prop using theme.colorError to align with antd best practices and avoid custom CSS.
      Code suggestion
       diff --git a/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx b/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
       index 1234567..abcdef0 100644
      --- a/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
      +++ b/superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
       @@ -102,7 +102,7 @@
                {uriError && (
                  <div className="helper" id="sqlalchemy-uri-error" role="alert" style={{ color: 'var(--ifm-color-danger, #e04f5f)' }}>
                    {t('SQLAlchemy URI is required')}
                  </div>
                )}
      +        {uriError && (
      +          <div className="helper" id="sqlalchemy-uri-error" role="alert" css={(theme: SupersetTheme) => `color: ${theme.colorError};`}>
      +            {t('SQLAlchemy URI is required')}
      +            </div>
      +          )}
  • superset-frontend/src/features/roles/RoleFormItems.tsx - 1
    • Redundant aria-required attribute · Line 40-44
      The aria-required="true" attribute appears redundant here, since antd's FormItem with required: true automatically adds aria-required to the input for accessibility. This manual addition is inconsistent with other similar FormItem usages in the codebase (e.g., UserInfoModal.tsx, ApiKeyCreateModal.tsx), which rely on antd's automatic handling. Removing it aligns with existing patterns and avoids potential duplication.
Review Details
  • Files reviewed - 14 · Commit Range: 2256819..2256819
    • superset-frontend/packages/superset-core/src/components/Alert/Alert.test.tsx
    • superset-frontend/packages/superset-core/src/components/Alert/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/Form/LabeledErrorBoundInput.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.test.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.tsx
    • superset-frontend/src/components/Modal/ModalFormField.tsx
    • superset-frontend/src/explore/components/ControlHeader.tsx
    • superset-frontend/src/explore/components/controls/NumberControl/index.tsx
    • superset-frontend/src/explore/components/controls/TextControl/index.tsx
    • superset-frontend/src/features/alerts/AlertReportModal.tsx
    • superset-frontend/src/features/alerts/components/NumberInput.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
    • superset-frontend/src/features/roles/RoleFormItems.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review Agent Run #20ee56

Actionable Suggestions - 1
  • superset-frontend/src/features/alerts/AlertReportModal.tsx - 1
Review Details
  • Files reviewed - 2 · Commit Range: 2256819..3f2a60f
    • superset-frontend/src/explore/components/ControlHeader.tsx
    • superset-frontend/src/features/alerts/AlertReportModal.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Aitema-gmbh pushed a commit to aitema-de/superset that referenced this pull request Apr 19, 2026
… ModalFormField traversal

Address Bito + CodeAnt review findings on PR apache#39245:

ControlHeader / NumberControl / TextControl
- ControlHeader accepts an external errorId so wrappers share one DOM id
  per control. Previously both ControlHeader and the input wrapper rendered
  id="${name}-error" + role="alert", producing duplicate ids and
  duplicate screen-reader announcements for the same validation error.
- NumberControl now computes a stable input id via useId when name is
  missing, so id="undefined" never hits the DOM.
- The visible inline red error below the input keeps the text but drops
  its id and role="alert" — the live-region inside ControlHeader is the
  single source of truth for assistive tech.

ModalFormField
- Injecting aria-invalid / aria-describedby on the first child missed
  FormItem-wrapped inputs, leaving the real interactive element unlinked
  to the error. The traversal now hops through a single-child wrapper to
  decorate the wrapped input.

SSHTunnelForm
- Required-field check treated whitespace-only input as valid, letting
  users bypass validation with a space. The check now trims before the
  emptiness test.

Already addressed in prior commit 3f2a60f on this branch:
- AlertReportModal name/owners error guards against currentAlert loading
- ControlHeader useId fallback for missing name

Not changed:
- RoleNameField — Ant Design FormItem with rules={[{required:true}]}
  already sets aria-invalid on the input via FieldContext when validation
  fails; the explicit render-prop pattern the bot suggested would nest
  FormItems for no behavior gain.
@Aitema-gmbh

Copy link
Copy Markdown
Contributor Author

Thanks @bito-code-review @codeant-ai-for-open-source — the duplicate-id / duplicate-role="alert" pattern was real, and useId alone didn't fully solve it. Addressed in 9d0f14c5:

  • ControlHeader now accepts an errorId prop so wrappers share a single DOM id + live-region per control; it falls back to the useId-based id only when no wrapper is involved.
  • NumberControl generates a stable input id via useId when name is missing (no more id="undefined"), passes the shared errorId down, and drops the redundant id + role="alert" from its own inline message — the visible red text stays, the ARIA announcement lives once in ControlHeader.
  • TextControl gets the same treatment (class component, so ID derivation stays based on controlId || name, passed through as errorId).
  • ModalFormField now hops through single-child wrappers (e.g. FormItem) when injecting aria-invalid / aria-describedby, so the real input receives the attributes instead of the wrapper.
  • SSHTunnelForm trims the value before the emptiness check so whitespace-only input can't bypass required-field validation.

Already addressed by prior follow-up 3f2a60f8 on this branch: AlertReportModal name/owners checks are now gated on currentAlert so edit-mode doesn't announce false validation errors while data loads.

One finding not taken: CodeAnt suggested wrapping RoleNameField's Input in a render-prop FormItem to expose aria-invalid. Ant Design's FormItem already injects aria-invalid via FieldContext when rules={[{ required: true }]} fails, so the nested render-prop pattern would add indirection without behavior change.

@netlify

netlify Bot commented Apr 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit b165e97
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a0456f2984bda0009bfe153
😎 Deploy Preview https://deploy-preview-39245--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review Agent Run #38f541

Actionable Suggestions - 1
  • superset-frontend/src/explore/components/controls/TextControl/index.tsx - 1
Review Details
  • Files reviewed - 5 · Commit Range: 3f2a60f..9d0f14c
    • superset-frontend/src/components/Modal/ModalFormField.tsx
    • superset-frontend/src/explore/components/ControlHeader.tsx
    • superset-frontend/src/explore/components/controls/NumberControl/index.tsx
    • superset-frontend/src/explore/components/controls/TextControl/index.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

Copy link
Copy Markdown
Member

Feel free to mark all of the comments that you've addressed as resolved if that's the case.It seems like there's a conflict that needs resolution on this PR, but otherwise I'm inclined to merge it once all of the bot feedback is dealt with.

@koljaschumann

Copy link
Copy Markdown

Hi @rusackas — thanks for the review and the merge signal. Addressing your note on bot feedback and resolving the conflict:

Bot triage complete:

codeant-ai-for-open-source (9 inline comments):

  • Duplicate error IDs (TextControl, NumberControl, ControlHeader): ✅ Already fixed in commit 9d0f14c — ControlHeader now accepts errorId prop, single live-region per control.
    • RoleFormItems missing aria-invalid/aria-describedby: Not taken — AntD FormItem with rules=[{required:true}] already sets aria-invalid via FieldContext; render-prop nesting would add complexity without behavior change.
    • SSHTunnelForm whitespace-only validation bypass: ✅ Fixed in 9d0f14c — value now trimmed before empty check.
    • ModalFormField cloneElement missing wrapped inputs: ✅ Fixed in 9d0f14c — traversal now hops through single-child wrappers.
    • AlertReportModal false validation during loading (name + owners): ✅ Fixed in 3f2a60f — guards on currentAlert.
      bito-code-review (runs #f7d2d1, #20ee56, #38f541):
  • NumberControl invalid id="undefined": ✅ Fixed in 9d0f14c.
    • ControlHeader duplicate IDs: ✅ Fixed in 9d0f14c.
    • Validation inconsistency post-fix (AlertReportModal, run #20ee56): @Aitema-gmbh will address in next push — tracked.
    • TextControl duplicate error display (run #38f541): @Aitema-gmbh will address in next push — tracked.
    • Custom CSS in SSHTunnelForm/SqlAlchemyForm error spans: @Aitema-gmbh will address in next push — tracked.
    • Redundant aria-required in RoleFormItems: @Aitema-gmbh will address in next push — tracked.
      netlify Bot: Deploy preview ready — informational, dismissed.

Rebase/conflict resolution will be done by @Aitema-gmbh locally. Will ping you once the next push lands.

@Aitema-gmbh
Aitema-gmbh force-pushed the fix/wcag-3.3.1-error-identification branch from 9d0f14c to 7938a0d Compare May 7, 2026 14:40
Aitema-gmbh pushed a commit to aitema-de/superset that referenced this pull request May 7, 2026
… ModalFormField traversal

Address Bito + CodeAnt review findings on PR apache#39245:

ControlHeader / NumberControl / TextControl
- ControlHeader accepts an external errorId so wrappers share one DOM id
  per control. Previously both ControlHeader and the input wrapper rendered
  id="${name}-error" + role="alert", producing duplicate ids and
  duplicate screen-reader announcements for the same validation error.
- NumberControl now computes a stable input id via useId when name is
  missing, so id="undefined" never hits the DOM.
- The visible inline red error below the input keeps the text but drops
  its id and role="alert" — the live-region inside ControlHeader is the
  single source of truth for assistive tech.

ModalFormField
- Injecting aria-invalid / aria-describedby on the first child missed
  FormItem-wrapped inputs, leaving the real interactive element unlinked
  to the error. The traversal now hops through a single-child wrapper to
  decorate the wrapped input.

SSHTunnelForm
- Required-field check treated whitespace-only input as valid, letting
  users bypass validation with a space. The check now trims before the
  emptiness test.

Already addressed in prior commit 3f2a60f on this branch:
- AlertReportModal name/owners error guards against currentAlert loading
- ControlHeader useId fallback for missing name

Not changed:
- RoleNameField — Ant Design FormItem with rules={[{required:true}]}
  already sets aria-invalid on the input via FieldContext when validation
  fails; the explicit render-prop pattern the bot suggested would nest
  FormItems for no behavior gain.
Aitema-gmbh pushed a commit to aitema-de/superset that referenced this pull request May 7, 2026
…ine error styles

Addresses three remaining bot-review items on PR apache#39245:

- AlertReportModal: validateGeneralSection now bails early when currentAlert
  is still null/undefined, mirroring the display-side `currentAlert &&` gate.
  Previously validation flagged required-field errors during the brief load
  window, disabling save without showing the error to the user. Validation
  reruns once setCurrentAlert initializes the form data.
- NumberControl, TextControl, SSHTunnelForm: the inline error spans used
  hardcoded `style={{ color: 'red', fontSize: '12px' }}`. Replaced with a
  reusable `fieldErrorStyles` helper that pulls colorError, fontSizeSM, and
  sizeUnit from the SupersetTheme, so error appearance follows theme tokens
  in dark mode and on custom themes.

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review Agent Run #0bd36a

Actionable Suggestions - 1
  • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx - 1
Review Details
  • Files reviewed - 14 · Commit Range: b3b0593..c822114
    • superset-frontend/packages/superset-core/src/components/Alert/Alert.test.tsx
    • superset-frontend/packages/superset-core/src/components/Alert/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/Form/LabeledErrorBoundInput.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.test.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.tsx
    • superset-frontend/src/components/Modal/ModalFormField.tsx
    • superset-frontend/src/explore/components/ControlHeader.tsx
    • superset-frontend/src/explore/components/controls/NumberControl/index.tsx
    • superset-frontend/src/explore/components/controls/TextControl/index.tsx
    • superset-frontend/src/features/alerts/AlertReportModal.tsx
    • superset-frontend/src/features/alerts/components/NumberInput.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
    • superset-frontend/src/features/roles/RoleFormItems.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Fedo Hagge-Kubat and others added 5 commits May 13, 2026 11:00
… ModalFormField traversal

Address Bito + CodeAnt review findings on PR apache#39245:

ControlHeader / NumberControl / TextControl
- ControlHeader accepts an external errorId so wrappers share one DOM id
  per control. Previously both ControlHeader and the input wrapper rendered
  id="${name}-error" + role="alert", producing duplicate ids and
  duplicate screen-reader announcements for the same validation error.
- NumberControl now computes a stable input id via useId when name is
  missing, so id="undefined" never hits the DOM.
- The visible inline red error below the input keeps the text but drops
  its id and role="alert" — the live-region inside ControlHeader is the
  single source of truth for assistive tech.

ModalFormField
- Injecting aria-invalid / aria-describedby on the first child missed
  FormItem-wrapped inputs, leaving the real interactive element unlinked
  to the error. The traversal now hops through a single-child wrapper to
  decorate the wrapped input.

SSHTunnelForm
- Required-field check treated whitespace-only input as valid, letting
  users bypass validation with a space. The check now trims before the
  emptiness test.

Already addressed in prior commit 3f2a60f on this branch:
- AlertReportModal name/owners error guards against currentAlert loading
- ControlHeader useId fallback for missing name

Not changed:
- RoleNameField — Ant Design FormItem with rules={[{required:true}]}
  already sets aria-invalid on the input via FieldContext when validation
  fails; the explicit render-prop pattern the bot suggested would nest
  FormItems for no behavior gain.
…ine error styles

Addresses three remaining bot-review items on PR apache#39245:

- AlertReportModal: validateGeneralSection now bails early when currentAlert
  is still null/undefined, mirroring the display-side `currentAlert &&` gate.
  Previously validation flagged required-field errors during the brief load
  window, disabling save without showing the error to the user. Validation
  reruns once setCurrentAlert initializes the form data.
- NumberControl, TextControl, SSHTunnelForm: the inline error spans used
  hardcoded `style={{ color: 'red', fontSize: '12px' }}`. Replaced with a
  reusable `fieldErrorStyles` helper that pulls colorError, fontSizeSM, and
  sizeUnit from the SupersetTheme, so error appearance follows theme tokens
  in dark mode and on custom themes.
…r error fields

Two real bugs surfaced after rebasing onto master and re-running jest:

- ModalFormField + LabeledErrorBoundInput both used `useId()` directly for
  aria-describedby. React's useId returns `:r1:` style values, which are
  invalid as CSS selectors / DOM id lookup targets — jest-dom's
  `toBeVisible()` (via nwsapi) threw `SyntaxError: not a valid selector`.
  Strip the colons so the id is a usable selector target everywhere.

- ModalFormField wrapped children in `Children.map(...)` only when an error
  was present, falling back to the raw `children` reference otherwise.
  Toggling between the two shapes auto-keyed vs. unkeyed children, so React
  unmounted and remounted the underlying input on every error transition,
  dropping keyboard focus mid-typing (`userEvent.type` then crashed in
  `setSelectionRange` because the active element fell back to body).
  Always run through Children.map; conditionally inject the aria props
  inside `applyAria` so the tree shape stays stable across renders.

Test impact: LabeledErrorBoundInput error-state test and AlertReportModal
'modal reopen resets local state' both go from failing to passing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Aitema-gmbh
Aitema-gmbh force-pushed the fix/wcag-3.3.1-error-identification branch from c822114 to b165e97 Compare May 13, 2026 10:48
@codecov

codecov Bot commented May 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.21569% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.15%. Comparing base (e2a8a88) to head (b165e97).
⚠️ Report is 4629 commits behind head on master.

Files with missing lines Patch % Lines
...features/databases/DatabaseModal/SSHTunnelForm.tsx 78.57% 6 Missing ⚠️
...eatures/databases/DatabaseModal/SqlAlchemyForm.tsx 78.57% 3 Missing ⚠️
...t-frontend/src/components/Modal/ModalFormField.tsx 94.11% 1 Missing ⚠️
...xplore/components/controls/NumberControl/index.tsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #39245      +/-   ##
==========================================
+ Coverage   64.14%   64.15%   +0.01%     
==========================================
  Files        2590     2590              
  Lines      138033   138130      +97     
  Branches    32019    32086      +67     
==========================================
+ Hits        88537    88617      +80     
- Misses      47977    47994      +17     
  Partials     1519     1519              
Flag Coverage Δ
javascript 67.02% <89.21%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bito-code-review

bito-code-review Bot commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #c69f77

Actionable Suggestions - 0
Review Details
  • Files reviewed - 14 · Commit Range: a3aefe1..b165e97
    • superset-frontend/packages/superset-core/src/components/Alert/Alert.test.tsx
    • superset-frontend/packages/superset-core/src/components/Alert/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/Form/LabeledErrorBoundInput.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.test.tsx
    • superset-frontend/src/components/ErrorMessage/BasicErrorAlert.tsx
    • superset-frontend/src/components/Modal/ModalFormField.tsx
    • superset-frontend/src/explore/components/ControlHeader.tsx
    • superset-frontend/src/explore/components/controls/NumberControl/index.tsx
    • superset-frontend/src/explore/components/controls/TextControl/index.tsx
    • superset-frontend/src/features/alerts/AlertReportModal.tsx
    • superset-frontend/src/features/alerts/components/NumberInput.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SSHTunnelForm.tsx
    • superset-frontend/src/features/databases/DatabaseModal/SqlAlchemyForm.tsx
    • superset-frontend/src/features/roles/RoleFormItems.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the requires:rebase Requires rebasing on top of current master label Aug 1, 2026

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I rebased this locally against current master (same caveat as my other comments today: I don't have push access to aitema-de's fork even with maintainer edits on, so I can't land this myself). Good news: once rebased, everything passes, 239 tests across the files this PR touches, oxlint clean, and all the earlier bot threads check out against the current diff: the errorId prop threading through ControlHeader/NumberControl/TextControl is real and consistent, the whitespace-only validation fix on SSHTunnelForm is there, and the AlertReportModal loading-state gating is correct.

Two things worth flagging from the rebase itself, not bugs in this PR, just drift it'll need to account for:

  1. AlertReportModal's "Owners" field was renamed to "Editors" on master (SubjectPicker replacing the old AsyncSelect-based owners picker) sometime after this branch was cut. The error-identification wiring needs to move to the new field under the new name, same validation, just editors instead of owners.
  2. SSHTunnelForm grew its own sshErrors/getValidation() mechanism on master, which already gets full aria-invalid/aria-describedby/role="alert" wiring for free through LabeledErrorBoundInput (confirmed by reading that component: it computes errorDescriptionId from errorMessage and renders the alert span itself). The blurred/fieldError state this PR adds in parallel is redundant once that's accounted for, I'd drop it here rather than carry two validation paths.

oxfmt also wants to reformat 4 files (Alert.test.tsx, NumberControl/index.tsx, SqlAlchemyForm.tsx, RoleFormItems.tsx), a plain pre-commit run after rebasing should catch that.

@Aitema-gmbh, once that's sorted this should be in good shape.

@sadpandajoe

Copy link
Copy Markdown
Member

Superseded by #46455, which carries this fix forward. Thanks for the original work, @Aitema-gmbh! This PR can be closed.

@sadpandajoe sadpandajoe added the close:superseded Superseded by a newer PR; a maintainer can close label Nov 21, 2026
@Aitema-gmbh

Copy link
Copy Markdown
Contributor Author

Thanks @sadpandajoe for carrying this forward in #46455, and thanks @rusackas for the reviews along the way. Closing in favour of #46455.

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

Labels

change:frontend Requires changing the frontend close:superseded Superseded by a newer PR; a maintainer can close design:accessibility Related to accessibility standards packages requires:rebase Requires rebasing on top of current master size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants