Skip to content

[FE] Delete the old filters element and logic once the new element is fully working #192

@otrocadev

Description

@otrocadev

🎯 Objective

Finalize the migration to the new filtering system by completely removing the deprecated start-filters.component from the codebase, including all its references, declarations, and associated stylesheet rules.


📍 Background

The project recently underwent a migration from a legacy filtering approach to a new filtering system. While the new system has been implemented and validated, the old start-filters.component was left in the codebase as residual code.

This task addresses that technical debt by performing a targeted cleanup — ensuring no traces of the old component remain in the project structure.


🔎 Scope of Work

The following areas are covered by this task:

  • Component removal — Delete all files belonging to start-filters.component (.ts, .html, .scss, .spec.ts )
  • Reference cleanup — Remove every import, usage, and invocation of the component across the project
  • Module cleanup — Remove the component from any NgModule where it was declared or exported
  • SCSS cleanup — Remove all stylesheet rules that were written specifically for or dependent on start-filters.component
  • Validation — Verify the application builds and behaves correctly after the removal

🚫 Out of Scope

The following are explicitly not part of this task:

  • Any modification to the new filtering system logic or its components
  • Refactoring of other unrelated components or modules
  • Design or UX changes to the filtering functionality
  • Performance optimizations beyond what the cleanup naturally provides
  • Writing new tests for the new filtering system (covered in its own task)
  • Migration of any remaining feature flags or configuration tied to the old filter (tracked separately)

✅ Definition of Done

This task is considered complete when all of the following criteria are met:

  • All start-filters.component files have been deleted from the repository
  • No imports or references to start-filters.component remain anywhere in the codebase
  • The component has been removed from all NgModule declarations and exports
  • All SCSS rules exclusively related to start-filters.component have been removed
  • The application compiles with no errors or warnings related to the removed component
  • No visual regressions are detected in areas previously involving the old component
  • The new filtering system continues to function correctly end-to-end

⚠️ Risks & Considerations

  • Shared SCSS rules — Some styles may have been reused beyond start-filters.component. Care must be taken to only remove rules that are exclusively tied to the old component, to avoid unintended visual side effects.
  • Indirect references — Dynamic imports or string-based references (e.g., in routing configs or lazy-loaded modules) could be overlooked. A project-wide search is recommended before closing the task.
  • Testing coverage — If any existing tests were written specifically for start-filters.component, they must also be removed or updated to avoid false failures in the test suite.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions