Skip to content

Conversation

@wjames111
Copy link
Contributor

@wjames111 wjames111 commented May 16, 2025

Description

Suggested tags seem to save on the server as lowercase. That means that when I edit a task with suggested tags, the suggested tags are correctly highlighted, but they also show up in the "Additional Tags" dropdown.

Jira ticket available here

Things to Note
So I think the easiest solution to this problem would be to filter out the selected task tags from autocomplete. However this still felt a little awkward. In addition to this I wanted to make the suggested tags and additional tags a little more in sync with each other so when one is selected it's reflected in the other, and the same with removing. The only caveat is when a suggested tag is selected I did not want it to create an entry in additional tags, so they aren't entirely in sync with each other, but more so then before.

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

@wjames111 wjames111 changed the title MPDX 8388 suggested tags autocomplete MPDX-8388 - Suggested task tags show up in tags autocomplete May 16, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2025

Bundle sizes [mpdx-react]

Compared against f18df0d

No significant changes found

@wjames111 wjames111 self-assigned this May 16, 2025
@wjames111 wjames111 added On Staging Will be merged to the staging branch by Github Actions Preview Environment Add this label to create an Amplify Preview labels May 16, 2025
@wjames111 wjames111 requested review from caleballdrin and dr-bizz May 16, 2025 20:37
@github-actions
Copy link
Contributor

@wjames111
Copy link
Contributor Author

Although maybe it would be better if additional tags had all phase tags filtered out. That way there's no overlap between the two.

@dr-bizz
Copy link
Contributor

dr-bizz commented May 20, 2025

Is this ready for review?

@wjames111 wjames111 marked this pull request as ready for review May 20, 2025 16:12
@wjames111
Copy link
Contributor Author

@dr-bizz I was going to wait to mark it as ready for review as I didn't want to flood you guys with PR review requests, but it's ready whenever you guys have time.

Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

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

This is looking great! Awesome job on this.

await waitFor(() =>
expect(queryByRole('option', { name: 'tag-1' })).not.toBeInTheDocument(),
);
}, 10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to have this time limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it is not needed. It's been removed.

@wjames111 wjames111 force-pushed the MPDX-8388-suggested-tags-autocomplete branch from 0d34027 to cb150ee Compare May 21, 2025 17:07
@wjames111 wjames111 merged commit e725dfe into main May 21, 2025
16 of 18 checks passed
@wjames111 wjames111 deleted the MPDX-8388-suggested-tags-autocomplete branch May 21, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

On Staging Will be merged to the staging branch by Github Actions Preview Environment Add this label to create an Amplify Preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants