Skip to content

Signals migration#1665

Merged
lyubov-voloshko merged 5 commits intomainfrom
signals-migration
Mar 13, 2026
Merged

Signals migration#1665
lyubov-voloshko merged 5 commits intomainfrom
signals-migration

Conversation

@lyubov-voloshko
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 13, 2026 13:48
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 migrates Angular UI components from the decorator-based @Input() pattern to the newer signals-based input() API, removes empty ngOnInit lifecycle hooks, and adds error handling to the dashboard's data fetching.

Changes:

  • Migrated BannerComponent, BreadcrumbsComponent, and IpAddressButtonComponent from @Input() decorators to signal-based input(), updating templates to call signals as functions.
  • Added a Breadcrumb interface and replaced *ngFor/*ngIf structural directives with @for/@if control flow in the breadcrumbs template.
  • Added error callback to fetchTablesFolders subscription in DashboardComponent and removed debug console.log calls.

Reviewed changes

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

Show a summary per file
File Description
ip-address-button.component.ts Migrated to input() signal and inject()
ip-address-button.component.html Updated template to call ip()
breadcrumbs.component.ts Migrated to input() signal, added Breadcrumb interface, removed CommonModule
breadcrumbs.component.html Replaced structural directives with @for/@if control flow
banner.component.ts Migrated to input() signal
banner.component.html Updated template to call type()
dashboard.component.ts Added error handler, removed debug logs

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

Comment on lines +215 to 221
},
(err) => {
this.isServerError = true;
this.serverError = { abstract: err.error?.message || err.message, details: err.error?.originalMessage };
this.loading = false;
this.title.setTitle(`Error | ${this._company.companyTabTitle || 'Rocketadmin'}`);
});
});
}
},
(err) => {
@lyubov-voloshko lyubov-voloshko merged commit 64e735a into main Mar 13, 2026
15 of 17 checks passed
@lyubov-voloshko lyubov-voloshko deleted the signals-migration branch March 13, 2026 14:13
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