Skip to content

Minor fixes#1717

Merged
lyubov-voloshko merged 2 commits intomainfrom
minor-fixes
Apr 16, 2026
Merged

Minor fixes#1717
lyubov-voloshko merged 2 commits intomainfrom
minor-fixes

Conversation

@lyubov-voloshko
Copy link
Copy Markdown
Collaborator

@lyubov-voloshko lyubov-voloshko commented Apr 16, 2026

Summary by CodeRabbit

  • New Features
    • Added tooltips to folder labels and table items in the database tables list that display full names when they exceed character limits.

Copilot AI review requested due to automatic review settings April 16, 2026 11:25
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 16, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Two separate component updates are applied. The branding component now imports RouterModule from Angular's routing library. The dashboard table list template adds Angular Material tooltips to table items and folder labels with conditional disabling based on text length thresholds.

Changes

Cohort / File(s) Summary
Branding Component Module
frontend/src/app/components/branding/branding.component.ts
Adds RouterModule import from @angular/router and includes it in the component's imports array.
Dashboard Table List Template
frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html
Restructures table item rendering by wrapping <a> elements in <div> containers to apply matTooltip directives. Adds conditional tooltips to folder labels and table items, disabled when text length is 18 characters or fewer.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Whiskers twitching with delight,
Router paths now shining bright,
Tooltips dance on every table,
Showing hints when we are able,
Code flows smooth, a rabbit's fable!

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Minor fixes' is vague and generic, failing to convey specific information about the actual changes (Angular RouterModule import and Material tooltips additions). Provide a more descriptive title that reflects the main changes, such as 'Add RouterModule import and Material tooltips to dashboard components' or 'Improve dashboard table list UI with RouterModule and tooltips'.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Security Check ✅ Passed Pull request follows OWASP security guidelines with no vulnerabilities introduced through safe Angular property bindings and automatic sanitization.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch minor-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lyubov-voloshko lyubov-voloshko merged commit 6cac9f9 into main Apr 16, 2026
19 of 20 checks passed
@lyubov-voloshko lyubov-voloshko deleted the minor-fixes branch April 16, 2026 11:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 makes small UI/template adjustments in the Angular frontend, primarily improving hover tooltips in the DB tables list and ensuring routing directives are available in the Branding standalone component.

Changes:

  • Refactors the collapsed tables list markup and adjusts where tooltips are applied.
  • Adds tooltips (with length-based disabling) for folder names and table entries in the expanded tables list.
  • Imports RouterModule into BrandingComponent to support routerLink usage.

Reviewed changes

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

File Description
frontend/src/app/components/dashboard/db-tables-list/db-tables-list.component.html Updates collapsed/expanded table list templates and adds tooltips for names.
frontend/src/app/components/branding/branding.component.ts Adds RouterModule to standalone component imports for routerLink.

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

Comment on lines +42 to +45
<div *ngFor="let tableItem of getCollapsedTableList()"
[matTooltip]="getTableName(tableItem)"
matTooltipPosition="right"
(click)="closeSidebar()">
<!-- Show icon if available, otherwise show initials -->
<mat-icon *ngIf="tableItem.icon; else tableNameInitials" class="table-list-icon">
{{tableItem.icon}}
</mat-icon>
<ng-template #tableNameInitials>
{{tableItem.initials}}
</ng-template>
</a>
matTooltipPosition="right">
<a class="collapsed-table-item"
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

matTooltip is attached to the wrapping <div> (not the <a>), but the <div> is not focusable. This means keyboard users focusing the link won’t get the tooltip on focus (regression vs when tooltip was on the anchor). Move the tooltip bindings onto the <a> or make the tooltip host focusable (e.g., tabindex="0") and ensure focus/aria behavior is correct.

Copilot uses AI. Check for mistakes.
Comment on lines 152 to 156
<div *ngFor="let table of getFolderTables(folder)"
class="selected-table-item"
[matTooltip]="getTableName(table)"
[matTooltipDisabled]="getTableNameLength(getTableName(table)) <= 18"
cdkDrag
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The tooltip is placed on .selected-table-item (a <div> without tabindex), while the interactive element is the inner <a>. As a result, the tooltip won’t appear when navigating via keyboard focus on the link. Consider moving matTooltip/matTooltipDisabled onto the <a> (or the .table-name span) so it triggers on focus as well as hover.

Copilot uses AI. Check for mistakes.
Comment on lines +154 to 156
[matTooltip]="getTableName(table)"
[matTooltipDisabled]="getTableNameLength(getTableName(table)) <= 18"
cdkDrag
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

Within the *ngFor this introduces multiple method calls per row (getTableName(table) is invoked for matTooltip, again inside matTooltipDisabled, and again in the link text). This can add noticeable change-detection cost for large lists. Prefer computing the value once (e.g., via *ngIf="getTableName(table) as tableName" and reusing tableName, or by precomputing a tableName field in the data).

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