Skip to content

feat(ui): Hide unnecessary suggested assignees#23817

Merged
davidenwang merged 2 commits into
masterfrom
davidenwang/hide_suggested_when_assigned
Feb 12, 2021
Merged

feat(ui): Hide unnecessary suggested assignees#23817
davidenwang merged 2 commits into
masterfrom
davidenwang/hide_suggested_when_assigned

Conversation

@davidenwang

@davidenwang davidenwang commented Feb 12, 2021

Copy link
Copy Markdown
Contributor

If a suggested assignee is already selected it doesn't need to be shown in the suggested list for the assignee selector. This PR filters the list of suggested assignees to not include a suggestion if it is currently used as the assignee.

Example where the suggestion is hidden after being used:
Kapture 2021-02-11 at 16 16 18

Fixes: WOR-526

@davidenwang davidenwang requested a review from a team February 12, 2021 00:16
@github-actions

github-actions Bot commented Feb 12, 2021

Copy link
Copy Markdown
Contributor

size-limit report

Path Base Size (ed677fe) Current Size Change
public/app.js 315.57 KB 315.59 KB +0.01% 🔺
public/vendor.js 611.96 KB 611.96 KB 0%
public/sentry.css 25.76 KB 25.76 KB 0%

return (
this.getSuggestedAssignees()
// filter out suggested assignees if one is already selected
?.filter(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

confusing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nvm i get it now

@davidenwang davidenwang Feb 12, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

haha i can edit it if you want

i also realize it looks kinda weird with the comment just placed in between :248/:250

@vercel

vercel Bot commented Feb 12, 2021

Copy link
Copy Markdown

Deployment failed with the following error:

Creating the Deployment Timed Out.

@davidenwang davidenwang merged commit 9678b90 into master Feb 12, 2021
@davidenwang davidenwang deleted the davidenwang/hide_suggested_when_assigned branch February 12, 2021 04:09
bruno-garcia pushed a commit that referenced this pull request Feb 12, 2021
If a suggested assignee is already selected it doesn't need to be shown in the suggested list for the assignee selector. This PR filters the list of suggested assignees to not include a suggestion if it is currently used as the assignee.
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants