feature: hide automatic mappings - #61
Open
Imene-Amirat wants to merge 8 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a UI toggle to hide/show “automatic” mappings (LOOM, CUI, SAME_URI) in mapping result tables, implemented as a Stimulus controller that filters rows client-side.
Changes:
- Add localized label for a “Hide automatic mappings” toggle (EN/FR).
- Tag mapping table rows with
map.sourceto enable client-side filtering. - Introduce a Stimulus controller and extend
switch_input/SwitchInputComponentto support passing Stimulusdata-*attributes.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| config/locales/fr.yml | Adds French translation for the new toggle label. |
| config/locales/en.yml | Adds English translation for the new toggle label. |
| app/views/mappings/_show_line.html.haml | Adds map.source as a row class for concept mapping rows. |
| app/views/mappings/_show.html.haml | Wraps results with Stimulus controller and adds the toggle + row classes for the modal/global mappings table. |
| app/views/mappings/_concept_mappings.html.haml | Adds the toggle to the concept mappings tab and attaches the Stimulus controller. |
| app/javascript/controllers/index.js | Registers the new auto-mapping-filter Stimulus controller. |
| app/javascript/controllers/auto_mapping_filter_controller.js | Implements row hide/show logic for automatic mapping sources. |
| app/helpers/inputs_helper.rb | Extends switch_input helper to accept data: and forward it to the component. |
| app/components/switch_input_component/switch_input_component.html.haml | Applies forwarded data-* attributes to the switch wrapper element. |
| app/components/switch_input_component.rb | Adds data: param storage for the switch component. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hakimalem
requested changes
Mar 12, 2026
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Add a toggle to hide/show automatic mappings (LOOM, CUI,) in the mapping results table
Changes implemented:
A video demonstration is provided to show how the toggle works :
Capture vidéo du 2026-03-19 14-06-08.webm