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

Added flag to conditionally display unit list in metadata editing table. #1373

Merged

Conversation

Junjiequan
Copy link
Member

@Junjiequan Junjiequan commented Jan 17, 2024

Description

Added metadataEditingUnitListDisabled flag to conditionally display available unit list in the metadata editing table.
SciCatProject/scicat-backend-next#1014 needs to be merged for this change.

Motivation

The unit list is hard coded and shows only a limited unit list, which in some circumstances can give the user a false perception that they can only select predefined units from the list.

Changes:

Before

image

After

image

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install?
  • Toggle added for new features?
  • Requires update of SciCat backend API?

Copy link
Member

@nitrosx nitrosx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment is not blocking. So we can go ahead and merge if @bpedersen2 says that it is fine this way

src/app/app-config.service.ts Show resolved Hide resolved
@bpedersen2
Copy link
Contributor

As for the E2E failures, see SciCatProject/scicat-backend-next#1013

@bpedersen2 bpedersen2 force-pushed the SWAP-3721-scicat-fe-in-the-scientificmetadata-table-edit-mo branch from 70d5afc to a23fc4e Compare January 19, 2024 07:54
@bpedersen2
Copy link
Contributor

In the longer run we could consider switching the input to a combobox (edit+list) or use some autosuggest logic. But for now I would say: go ahead and merge

@Junjiequan Junjiequan merged commit ca2aa1d into master Jan 19, 2024
6 checks passed
@Junjiequan Junjiequan deleted the SWAP-3721-scicat-fe-in-the-scientificmetadata-table-edit-mo branch January 19, 2024 12:29
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