apache/superset

[SQL Lab] Tab rename uses native browser prompt() instead of modal dialog

Fermée

#40 401 ouverte le 24 mai 2026

 (0 commentaire) (0 réaction) (0 personne assignée)TypeScript (17 291 forks)batch import
#bug:cosmeticgood first issuesqllab:design

Métriques du dépôt

Stars
 (72 837 étoiles)
Métriques de merge PR
 (Merge moyen 31j 15h) (773 PRs mergées en 30 j)

Description

Bug description

When renaming a SQL Lab tab via the tab context menu, the application uses the browser's native prompt() dialog instead of a styled modal component consistent with the rest of the Superset UI.

The relevant code in SqlEditorTabHeader/index.tsx even has a TODO comment acknowledging this: // TODO: Replace native prompt with a proper modal dialog

Steps to reproduce

  1. Open SQL Lab
  2. Click the ⋮ (three dots) menu on any query tab
  3. Click "Rename tab"
  4. Observe the native browser prompt dialog appears

Expected behavior

A styled Superset modal dialog (using the existing Modal component) should appear, consistent with how other rename/edit operations work in the application.

Actual behavior

A native browser prompt() dialog appears. This cannot be styled, is blocked in some environments, and breaks the visual consistency of the app.

Environment

  • Superset version: latest (master)
  • Browser: any

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

File: superset-frontend/src/SqlLab/components/SqlEditorTabHeader/index.tsx Function: renameTab()

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Guide contributeur