Skip to content

Fix connections list#1630

Merged
lyubov-voloshko merged 4 commits into
mainfrom
fix-connections-list
Feb 25, 2026
Merged

Fix connections list#1630
lyubov-voloshko merged 4 commits into
mainfrom
fix-connections-list

Conversation

@lyubov-voloshko

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 25, 2026 10:48

Copilot AI 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.

Pull request overview

This PR updates how the frontend determines UI theme (dark vs light) and applies it to code editor widgets and the connections list, including adding a dedicated dark-mode Cassandra icon.

Changes:

  • Replace the UiSettingsService.editorTheme API with UiSettingsService.isDarkMode and update consumers accordingly.
  • Apply the computed Monaco editor theme (vs/vs-dark) across record view/edit code editors and dashboard editors.
  • Fix the connections list empty-state wording and swap Cassandra’s icon in dark mode by registering and using a new cassandra-dark SVG.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/src/app/services/ui-settings.service.ts Introduces isDarkMode and removes editorTheme getter.
frontend/src/app/components/ui-components/record-view-fields/json-editor/json-editor.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/ui-components/record-view-fields/code/code.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/ui-components/record-edit-fields/markdown/markdown.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/ui-components/record-edit-fields/markdown/markdown.component.spec.ts Updates mocks to use isDarkMode.
frontend/src/app/components/ui-components/record-edit-fields/json-editor/json-editor.component.ts Injects UiSettingsService and computes editor theme from isDarkMode.
frontend/src/app/components/ui-components/record-edit-fields/json-editor/json-editor.component.html Binds editor theme dynamically via [theme].
frontend/src/app/components/ui-components/record-edit-fields/code/code.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/ui-components/record-edit-fields/code/code.component.spec.ts Updates mocks to use isDarkMode.
frontend/src/app/components/dashboard/db-table-view/db-table-widgets/db-table-widgets.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/dashboard/db-table-view/db-table-actions/db-table-actions.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/connections-list/own-connections/own-connections.component.ts Adds isDarkMode state for template usage.
frontend/src/app/components/connections-list/own-connections/own-connections.component.html Updates empty-state text and switches Cassandra icon in dark mode.
frontend/src/app/components/charts/chart-edit/chart-edit.component.ts Computes editor theme from isDarkMode.
frontend/src/app/components/charts/chart-edit/chart-edit.component.spec.ts Updates mocks to use isDarkMode.
frontend/src/app/app.component.ts Registers the new cassandra-dark SVG icon.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

get isDarkMode(): boolean {
return this._isDarkMode;
}

Copilot AI Feb 25, 2026

Copy link

Choose a reason for hiding this comment

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

Theme selection logic (isDarkMode ? 'vs-dark' : 'vs') is now duplicated across multiple components. Consider reintroducing a derived editorTheme (or similar) getter on UiSettingsService that maps isDarkMode to the code-editor theme string, so callers don’t need to repeat this mapping in many places.

Suggested change
get editorTheme(): string {
return this.isDarkMode ? 'vs-dark' : 'vs';
}

Copilot uses AI. Check for mistakes.
}

updateGlobalSetting(key: string, value: any) {
updateGlobalSetting(key: string, value: any) {

Copilot AI Feb 25, 2026

Copy link

Choose a reason for hiding this comment

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

updateGlobalSetting is not indented like the other class methods, which makes the class formatting inconsistent and can trip up linting/formatting tools. Please align its indentation with the surrounding methods.

Suggested change
updateGlobalSetting(key: string, value: any) {
updateGlobalSetting(key: string, value: any) {

Copilot uses AI. Check for mistakes.
@lyubov-voloshko lyubov-voloshko merged commit f5bb5e9 into main Feb 25, 2026
13 of 15 checks passed
@lyubov-voloshko lyubov-voloshko deleted the fix-connections-list branch February 25, 2026 12:35
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.

2 participants