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

HelpScout Tasks Search #1120

Merged
merged 4 commits into from
Oct 7, 2024
Merged

HelpScout Tasks Search #1120

merged 4 commits into from
Oct 7, 2024

Conversation

caleballdrin
Copy link
Contributor

@caleballdrin caleballdrin commented Oct 7, 2024

Description

https://secure.helpscout.net/conversation/2726128388/1238886?folderId=7669074

  • Show tooltip so users know what they can search for
  • Automatically show the filters on Contacts and Tasks
  • Fix amperstand on welcome message

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

@caleballdrin caleballdrin added the Preview Environment Add this label to create an Amplify Preview label Oct 7, 2024
@caleballdrin caleballdrin requested a review from canac October 7, 2024 19:53
@caleballdrin caleballdrin self-assigned this Oct 7, 2024
Copy link
Contributor

github-actions bot commented Oct 7, 2024

Preview branch generated at https://helpscout-tasks-search.d3dytjb8adxkk5.amplifyapp.com

Copy link
Contributor

github-actions bot commented Oct 7, 2024

Bundle sizes [mpdx-react]

Compared against d4b2075

Route Size (gzipped) Diff
/accountLists/[accountListId]/contacts/[[...contactId]] 109.18 KB +3.5 KB
/accountLists/[accountListId]/contacts/flows/setup 184.05 KB +3.51 KB
/accountLists/[accountListId]/tools 145.64 KB +3.5 KB
/accountLists/[accountListId]/tools/fix/mailingAddresses/[[...contactId]] 195.4 KB +3.51 KB
/accountLists/[accountListId]/tools/fix/sendNewsletter/[[...contactId]] 120.72 KB +3.5 KB
/accountLists/[accountListId]/tools/import/csv 110.25 KB +3.5 KB
/accountLists/[accountListId]/tools/import/google 159.67 KB +3.5 KB
/accountLists/[accountListId]/tools/import/tnt 153.31 KB +3.5 KB
Dynamic import Size (gzipped) Diff
../src/components/Contacts/ContactFlow/DynamicContactFlow.tsx -> ./ContactFlow 64.22 KB -3.42 KB
../src/components/Contacts/ContactsList/DynamicContactsList.tsx -> ./ContactsList 41.4 KB -3.42 KB
../src/components/Contacts/ContactsRightPanel/DynamicContactsRightPanel.tsx -> ./ContactsRightPanel 129.38 KB -3.41 KB
../src/components/Shared/Filters/DynamicFilterPanel.tsx -> ./FilterPanel 104.75 KB -3.42 KB
../src/components/Tool/Appeal/Flow/DynamicContactFlow.tsx -> ./ContactFlow 64.22 KB -3.42 KB
../src/components/Tool/Appeal/List/ContactsList/DynamicContactsList.tsx -> ./ContactsList 41.4 KB -3.42 KB

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

When I have PRs without a Jira ticket that are based on HelpScout tickets, I think it can be helpful to put the HelpScout link(s) in the PR description so that if we ever need the context for the change it's linked to the user's bug report or feature request.

greeting = firstName
? t('Good Afternoon, {{ firstName }}.', { firstName })
: t('Good Afternoon,');
greeting = t('Good Afternoon,') + (firstName ? ` ${firstName}.` : '');
Copy link
Contributor

Choose a reason for hiding this comment

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

How about removing the string concatenation and after the last else if doing

if (firstName) {
  greeting += ` ${firstName}.`
}

Also, this seems good for now, but if find any more bugs like this, we should probably look into tweaking i18n's interpolation settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm sure there are many more bugs because of the interpolation settings. My work around in the past has been to use a component where I can set interpolation: { escapeValue: false },

Comment on lines 51 to 52
? t('Search subject, tags, contact name, comments')
: t('Search name, phone, email, partner #')
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about this tweak?

Suggested change
? t('Search subject, tags, contact name, comments')
: t('Search name, phone, email, partner #')
? t('Search by subject, tags, contact name, or comments')
: t('Search by name, phone, email, or partner #')

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

@caleballdrin caleballdrin merged commit d34020f into main Oct 7, 2024
18 checks passed
@caleballdrin caleballdrin deleted the helpscout-tasks-search branch October 7, 2024 21:30
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