-
Notifications
You must be signed in to change notification settings - Fork 506
Add "Show table relationships" toggle to Schema Designer filter #19691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: aasimkhan30 <6816294+aasimkhan30@users.noreply.github.com>
can you change the opacity of the related table (that are not selected) to make them a little translucent? |
Co-authored-by: aasimkhan30 <6816294+aasimkhan30@users.noreply.github.com>
Done! Related tables (that are not explicitly selected) now have reduced opacity (0.6) while explicitly selected tables maintain full opacity (1.0). This provides a clear visual distinction between the two types of tables when the "Show table relationships" toggle is enabled. Commit eb51c27 |
PR Changes
|
@copilot currently there is a bug that makes the partially visible tables (related tables) selected tables when the filter button is clicked in the toolbar. Please make sure that doesn't happen. |
… filter button clicked Co-authored-by: aasimkhan30 <6816294+aasimkhan30@users.noreply.github.com>
Fixed the bug where related tables were incorrectly marked as selected when the filter button was clicked. The issue was in the |
Problem
There was a regression in the Schema Designer where filtering tables would hide their related tables, making it impossible to see table relationships. Previously, users could filter a table and still see its foreign key relationships to other tables, but the current implementation only shows edges when both source and target tables are explicitly selected.
Before (issue):

Expected behavior (showing relationships):

Solution
Added a "Show table relationships" toggle button to the filter menu that allows users to optionally display related tables when filtering. This matches the design requirement shown in the issue comments.
After (with toggle enabled):

Key Changes
Added localization support in
locConstants.ts
:showTableRelationships: l10n.t("Show table relationships")
Enhanced filtering logic in
filterTablesButton.tsx
:getRelatedTables()
function to discover tables connected through foreign key relationshipsUI improvements:
Behavior
Example Usage
This change addresses the user experience issue where important table relationships were hidden during filtering, while maintaining backwards compatibility through the optional toggle.
Fixes #19099.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.