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

[HS-1251563] Sort and refresh contact tags #1179

Merged
merged 4 commits into from
Nov 6, 2024
Merged

Conversation

canac
Copy link
Contributor

@canac canac commented Nov 5, 2024

Description

  • Sort tags in the filters panel alphabetically, like Angular did.
  • Refresh the contact filters when contact tags are added or deleted.
  • In the future, we should do something similar for task tags.

https://secure.helpscout.net/conversation/2749833892/1251563/

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

@canac canac added the Preview Environment Add this label to create an Amplify Preview label Nov 5, 2024
@canac canac requested a review from dr-bizz November 5, 2024 22:19
@canac canac self-assigned this Nov 5, 2024
Copy link
Contributor

github-actions bot commented Nov 5, 2024

Preview branch generated at https://hs-1251563-tags-issues.d3dytjb8adxkk5.amplifyapp.com

page === 'contacts' ? ContactFiltersDocument : TaskFiltersDocument,
variables: { accountListId },
},
page === 'contacts' ? ContactFiltersDocument : TaskFiltersDocument,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason, how this was wasn't causing the data to refresh. Removing the variables makes it work though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it saw it as a different query

Copy link
Contributor

github-actions bot commented Nov 5, 2024

Bundle sizes [mpdx-react]

Compared against 5bd236b

Route Size (gzipped) Diff
/accountLists/[accountListId]/reports/partnerCurrency/[[...contactId]] 135.66 KB -1.32 KB
/accountLists/[accountListId]/reports/salaryCurrency/[[...contactId]] 135.66 KB -1.32 KB

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.

The code looks great. I'm a little bit confused with this message: https://secure.helpscout.net/conversation/2749833892/1251563/

Why do you need to refetch the whole contact list when you can just refetch the filters?

page === 'contacts' ? ContactFiltersDocument : TaskFiltersDocument,
variables: { accountListId },
},
page === 'contacts' ? ContactFiltersDocument : TaskFiltersDocument,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it saw it as a different query

@canac canac enabled auto-merge November 6, 2024 16:19
@canac canac merged commit d8e2ed0 into main Nov 6, 2024
19 checks passed
@canac canac deleted the hs-1251563-tags-issues branch November 6, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants