-
Notifications
You must be signed in to change notification settings - Fork 144
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
Conversation
…-code-component-style-fix
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
Fix 5295 code component style fix
…document-after-array-value-deletion fixed issue that didn't allow a user to update a document when deleting elements in an array attribute
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1. Fix typo in labels placeholder 2. Reorder tags and helper text
8eb5f02
to
17d0594
Compare
There was a problem hiding this 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!
src/routes/console/project-[project]/auth/user-[user]/updateLabels.svelte
Show resolved
Hide resolved
There was a problem hiding this 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!
…els-design-corrections
What does this PR do?
Test Plan
Visit Preview
Manual:
Related PRs and Issues
Have you read the Contributing Guidelines on issues?
Yes