Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cde 65 #35

Merged
merged 9 commits into from
Mar 27, 2024
Merged

Feature/cde 65 #35

merged 9 commits into from
Mar 27, 2024

Conversation

afonsobspinto
Copy link
Member

@afonsobspinto afonsobspinto commented Mar 26, 2024

DISCLAIMER: The target branch is pointing to feature/CDE-39. It can change to develop when #34 is merged

Closes https://metacell.atlassian.net/browse/CDE-65

  • Refactors out (of CustomMappingDropdown.tsx) CreateCustomDictionaryFieldBody and CreateCustomDictionaryFieldHeader
  • Adds new props to CustomMappingDropdown to address the creation of custom dictionary fields (this breaks a little bit the goal of having the component generic but it was already like that from the placeholder implementation)
  • Connects the creation of custom dictionary fields:
    CreateCustomDictionaryFieldBody allows the user to fill in all the columns that currently exist in the datasetMapping header (except variable name, id and cde level which are automatically filled). It manages it's own state for immediate updates and updates the parent state onBlur changes
    Upon confirmation on the CreateCustomDictionaryFieldHeader, the parent adds the created custom dictionary field as an option and chooses that option for the header in cause.
2024-03-26.11-59-16.mp4

Notes:

  • I think it would make sense to have the selected option always show in the dropdown. cc @ddelpiano

@afonsobspinto afonsobspinto requested a review from zsinnema March 26, 2024 12:04
@afonsobspinto afonsobspinto mentioned this pull request Mar 27, 2024
@zsinnema zsinnema changed the base branch from feature/CDE-39 to develop March 27, 2024 12:10
@zsinnema
Copy link
Collaborator

@afonsobspinto can you servolve the conflicts? thanks

* CDE-67 feat: Refactor out chip component

* CDE-67 feat: Fix memory leak on optionsMap

* CDE-67 feat: WIP - Connect dictionary fields search

* CDE-67 fix: Update mapping strategy to rely on header indexes

* CDE-67 fix: Disallow variable name overwrite

* CDE-67 feat: Add custom dictionary field validation

* CDE-67 feat: Add search on previous custom dictionary fields

* CDE-67 feat: Update search collection label
@zsinnema
Copy link
Collaborator

@afonsobspinto btw I merged #36 into this one :-)

@afonsobspinto afonsobspinto requested review from zsinnema and removed request for zsinnema March 27, 2024 13:55
@afonsobspinto afonsobspinto marked this pull request as draft March 27, 2024 13:57
@afonsobspinto afonsobspinto marked this pull request as ready for review March 27, 2024 14:01
@afonsobspinto afonsobspinto requested a review from zsinnema March 27, 2024 14:01
@ddelpiano ddelpiano merged commit 094ee0e into develop Mar 27, 2024
1 check passed
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.

3 participants