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

chore: show number units on inactive List if defined #3367

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Jul 3, 2024

A small thing spotted during demo this morning!

Since many schemas are using a Number input to collect area, we should ensure the m2 units is consistently displayed on both the active & inactive List when it's defined.

Screenshot from 2024-07-03 15-43-27

@@ -21,6 +22,7 @@ export function formatSchemaDisplayValue(
) {
switch (field.type) {
case "number":
return field.data.units ? `${value} ${field.data.units}` : value;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is my only change !

Rest are formatting only, I guess prettier has changed with recent dependabot updates? Sorry for extra noise.

Copy link
Contributor

@DafyddLlyr DafyddLlyr Jul 3, 2024

Choose a reason for hiding this comment

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

Ah yep that makes sense - I'll open a pnpm lint:fix PR to fix this in a oner and try to remember this next time there's a prettier update 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

PR here - #3372

Copy link

github-actions bot commented Jul 3, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak requested a review from a team July 3, 2024 13:44
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Very nice spot! 🦅 👀

@jessicamcinchak jessicamcinchak merged commit 712819f into main Jul 3, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/show-units-inactive-list-numbers branch July 3, 2024 13:53
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