Skip to content

feat: make excluded columns configurable in CollectionsInfoOverlay#775

Closed
Sai-Adithya-M wants to merge 1 commit intoHSF:mainfrom
Sai-Adithya-M:feat/collections-info-refactor
Closed

feat: make excluded columns configurable in CollectionsInfoOverlay#775
Sai-Adithya-M wants to merge 1 commit intoHSF:mainfrom
Sai-Adithya-M:feat/collections-info-refactor

Conversation

@Sai-Adithya-M
Copy link
Copy Markdown

@Sai-Adithya-M Sai-Adithya-M commented Jan 10, 2026

Description:

Validation
[x] Code fulfills the rules in CONTRIBUTING.md
[x]test:ci passed (locally)
What:
This PR refactors CollectionsInfoOverlayComponent to allow the list of excluded columns in the collections info table to be configurable via an @input().

Why:
Previously, the list of excluded columns (['uuid', 'hits', 'isCut', 'labelText']) was hardcoded with a "FIXME" comment indicating it was an "ugly hack". Making this list configurable improves the reusability of the component and allows different contexts to exclude different columns as needed.

Changes

  • Added @input() excludeColumns: string[] to CollectionsInfoOverlayComponent
    (defaulting to the original exclusion list).
  • Updated changeCollection method to filter columns based on this.excludeColumns.
  • Added a unit test to verify that custom columns can be excluded.

Added excludeColumns Input to CollectionsInfoOverlayComponent to allow custom column exclusion. Updated changeCollection method to use the new input instead of a hardcoded list. Added unit test to verify the behavior.
@EdwardMoyse
Copy link
Copy Markdown
Collaborator

The linting error probably just need yarn lint:fix, but was the actual change implemented? Unless I'm missing something it seems to just be removing log / debug messages?

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