refactor: delete orphan files, remove fortawesome, remove cdk dependencies - #954
Merged
Conversation
DerekRoberts
force-pushed
the
feat/fom-code-simplifications
branch
from
June 3, 2026 17:38
3d5d82f to
d6b45be
Compare
DerekRoberts
marked this pull request as ready for review
June 3, 2026 17:50
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes unused/orphan UI components, pipes, and helper models from the admin and public Angular apps, and simplifies the public modal/error-dialog flow to avoid the direct @angular/cdk/portal ComponentType dependency. It also cleans up admin’s dependency tree by removing now-unused Font Awesome packages.
Changes:
- Deleted unused/orphan components/pipes/models from
admin/src/coreandpublic/src/core. - Refactored
publicHTTP error handling to useModalService.openDialograther than a CDK-based “custom dialog” entrypoint. - Removed
@fortawesome/*dependencies fromadmin(and updated the lockfile) after deleting the only consumer.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| public/src/core/services/modal.service.ts | Removes openCustomDialog and relies on a single openDialog path. |
| public/src/core/interceptors/http-error.interceptor.ts | Switches error UI from custom CDK component opening to ModalService.openDialog. |
| public/src/core/components/dialog/dialog.component.ts | Replaces <app-button> usage with a plain <button> in the dialog actions. |
| public/src/core/pipes/order-by.pipe.ts | Deletes unused pipe. |
| public/src/core/pipes/object-filter.pipe.ts | Deletes unused pipe. |
| public/src/core/pipes/newlines.pipe.ts | Deletes unused pipe. |
| public/src/core/components/form-group/form-group.component.ts | Deletes unused component. |
| public/src/core/components/file-row/file-row.component.ts | Deletes unused component (and embedded Font Awesome usage). |
| public/src/core/components/file-row/file-row.component.scss | Deletes unused styles. |
| public/src/core/components/button/button.component.ts | Deletes unused component. |
| public/src/core/components/button/button.component.scss | Deletes unused styles. |
| admin/src/core/pipes/order-by.pipe.ts | Deletes unused pipe. |
| admin/src/core/models/file-types.ts | Deletes unused model/helpers tied to Font Awesome icons. |
| admin/src/core/models/enum.ts | Deletes unused generic type helpers. |
| admin/src/core/components/form-group/form-group.component.ts | Deletes unused component. |
| admin/src/core/components/file-row/file-row.component.ts | Deletes unused component (Font Awesome consumer). |
| admin/src/core/components/file-row/file-row.component.scss | Deletes unused styles. |
| admin/package.json | Removes unused @fortawesome/* dependencies. |
| admin/package-lock.json | Removes @fortawesome/* packages from lockfile to match dependency removal. |
Files not reviewed (1)
- admin/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
public/src/core/services/modal.service.ts:18
openDialogcurrently cannot pass through commonMatDialogoptions likedisableClose/autoFocus. This is a behavior regression vs the removedopenCustomDialogusage in the HTTP error interceptor (previouslydisableClose: true,autoFocus: true). Consider supporting these options onopenDialogso call sites can preserve prior behavior when needed.
openDialog(config: { data: DialogData }): MatDialogRef<any> {
const { data } = config;
const { width = null } = data;
return this.dialog.open(DialogComponent, {
data,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
DerekRoberts
force-pushed
the
feat/fom-code-simplifications
branch
from
June 3, 2026 18:12
040120a to
d955a28
Compare
basilv
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delete Orphan Files and Refactor Core Components
This PR deletes unused/orphan components, pipes, and helper models from the
adminandpublicapps, removing their unused dependencies. It also refactors modal usage inpublicto eliminate the direct package dependency on@angular/cdk/portal, and deletes the staledemo.ymlworkflow.Deleted Files
admincomponent:admin/src/core/components/file-row/(containsfile-row.component.ts,file-row.component.scss- used@fortawesome)admin/src/core/components/form-group/(containsform-group.component.ts)admin/src/core/models/file-types.tsadmin/src/core/models/enum.tsadmin/src/core/pipes/order-by.pipe.tspubliccomponent:public/src/core/components/file-row/(containsfile-row.component.ts,file-row.component.scss)public/src/core/components/button/(containsbutton.component.ts,button.component.scss)public/src/core/components/form-group/(containsform-group.component.ts)public/src/core/pipes/newlines.pipe.tspublic/src/core/pipes/object-filter.pipe.tspublic/src/core/pipes/order-by.pipe.tsWorkflows:
.github/workflows/demo.yml(long stale workflow)Removed Dependencies
admin/package.json: Removed@fortawesome/angular-fontawesome,@fortawesome/fontawesome-svg-core, and@fortawesome/free-solid-svg-iconspackages (since the orphanedFileRowComponentwas the only user of these libraries). Updated the lockfile.CDK Portal Refactoring in Public
public/src/core/services/modal.service.ts&public/src/core/interceptors/http-error.interceptor.ts: Refactored to eliminate dependency on@angular/cdk/portal(ComponentType). The HTTP error interceptor now uses the cleaner, standardopenDialogmethod instead of callingopenCustomDialogwith direct CDK components.public/src/core/components/dialog/dialog.component.ts: Updated the standalone template to use a standard HTML<button>rather than the undeclared<app-button>.Closes #176
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: