Skip to content

feat: hide connector dropdown when only one connector is available - #456

Merged
dmitriy-kostianetskiy merged 2 commits into
mainfrom
copilot/do-not-show-connector-dropdown
Mar 12, 2026
Merged

dmitriy-kostianetskiy merged 2 commits into
mainfrom
copilot/do-not-show-connector-dropdown

Conversation

Copilot AI commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

The connector <select> dropdown in SQL cells was always rendered, even when there was only a single connection option (e.g., the default Core DuckDB), providing no useful choice to the user.

Changes

  • packages/cells/src/components/SqlCellContent.tsx: Conditionally render the connector dropdown only when connectionOptions.length > 1
{connectionOptions.length > 1 && (
  <div className="flex-1">
    <select ...>
      {connectionOptions.map((connection) => (
        <option key={connection.id} value={connection.id}>
          {connection.title}
        </option>
      ))}
    </select>
  </div>
)}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: /usr/bin/curl curl -LsSf REDACTED node dule�� --log-cli-level=DEBUG (dns block)
  • extensions.duckdb.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node scripts/download-extensions.mjs (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Do not show Connector dropdown if only one connector available</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Fix Connector dropdown visibility for single connector Hide connector dropdown when only one connector is available Mar 11, 2026
@dmitriy-kostianetskiy dmitriy-kostianetskiy changed the title Hide connector dropdown when only one connector is available feat: hide connector dropdown when only one connector is available Mar 11, 2026
@dmitriy-kostianetskiy
dmitriy-kostianetskiy marked this pull request as ready for review March 11, 2026 23:13
@dmitriy-kostianetskiy
dmitriy-kostianetskiy merged commit 7349a11 into main Mar 12, 2026
1 check passed
@dmitriy-kostianetskiy
dmitriy-kostianetskiy deleted the copilot/do-not-show-connector-dropdown branch March 12, 2026 09:27
mihajlo-stojkovic pushed a commit that referenced this pull request Mar 12, 2026
)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: dmitriy-kostianetskiy <[email protected]>
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.

Do not show Connector dropdown if only one connector available

3 participants