Skip to content

Fixes#1439

Merged
lyubov-voloshko merged 3 commits into
mainfrom
fixes
Nov 19, 2025
Merged

Fixes#1439
lyubov-voloshko merged 3 commits into
mainfrom
fixes

Conversation

@lyubov-voloshko

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 19, 2025 11:52
@lyubov-voloshko lyubov-voloshko merged commit f9e4fc7 into main Nov 19, 2025
12 checks passed
@lyubov-voloshko lyubov-voloshko deleted the fixes branch November 19, 2025 11:55

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 implements several fixes including styling improvements for SSO checkboxes and enhanced CSV export functionality with proper foreign key handling.

  • Adds CSS styling to align SSO configuration checkboxes consistently
  • Implements validation to prevent CSV export when no rows are selected
  • Updates CSV export logic to properly extract primary key values from foreign key objects

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
frontend/src/app/components/sso/sso.component.html Applies CSS class to active and authnResponseSignedValidation checkboxes for consistent styling
frontend/src/app/components/sso/sso.component.css Defines styling for checkbox elements with margin adjustments
frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts Adds selection validation and implements foreign key value extraction in CSV export functionality

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

// Check if this field is a foreign key
if (this.isForeignKey(fieldName) && value && typeof value === 'object') {
// Get the foreign key definition
const foreignKey = this.tableData.foreignKeys[fieldName];

Copilot AI Nov 19, 2025

Copy link

Choose a reason for hiding this comment

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

Missing null safety: The code accesses this.tableData.foreignKeys[fieldName] without checking if this.tableData.foreignKeys exists. If foreignKeys is undefined or null, this will throw a runtime error. Consider adding a check like this.tableData.foreignKeys && this.tableData.foreignKeys[fieldName] or using optional chaining this.tableData.foreignKeys?.[fieldName].

Suggested change
const foreignKey = this.tableData.foreignKeys[fieldName];
const foreignKey = this.tableData.foreignKeys?.[fieldName];

Copilot uses AI. Check for mistakes.
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