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

Update user labels based on design review #503

Merged
merged 13 commits into from
Aug 21, 2023

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Aug 15, 2023

What does this PR do?

  1. Fix typo in labels placeholder
  2. Reorder tags and helper text

Test Plan

Visit Preview

Manual:

image

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

kabhamo and others added 11 commits April 2, 2023 12:40
Use `symmetricDifference` instead of `difference`.
- `difference` only returns values that are present in the edited attributes, but not in the originally fetched attribute vales. This always ends up returning an empty array.
- I used `symmetricDifference` as it returns an intersection of `difference` from both sides and works perfectly for this use case, as the original attributes never change.
- Original code creates a reference copy of `$doc` into `$work` which means that editing values of `$work` changes the values in `$doc`.
- Fix this behaviour by creating a deep clone of `$doc` into `$work`, so underlying values aren't cross-referenced.
Instead of cramming all the steps for correct deep cloning, I split the implementation into 4 distinct steps:
- define they keys to exclude
- filtering the keys
- reduce filtered keys into an object
- returning a writable deep clone
…document-after-array-value-deletion

fixed issue that didn't allow a user to update a document when deleting elements in an array attribute
@vercel
Copy link

vercel bot commented Aug 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ❌ Failed (Inspect) Aug 21, 2023 6:52pm
console-cloud ❌ Failed (Inspect) Aug 21, 2023 6:52pm
console-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2023 6:52pm
console-preview ❌ Failed (Inspect) Aug 21, 2023 6:52pm

1. Fix typo in labels placeholder
2. Reorder tags and helper text
Copy link
Contributor

@heyCarla heyCarla left a comment

Choose a reason for hiding this comment

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

Everything looks good, just one small change needed!

Copy link
Contributor

@heyCarla heyCarla left a comment

Choose a reason for hiding this comment

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

NVM, don't know what I was thinking. I just checked the pill again and you're using the right one. All good here!

@ArmanNik ArmanNik changed the base branch from main to 1.4.x August 21, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants