-
Notifications
You must be signed in to change notification settings - Fork 3k
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 tagSelection and categorySelection copies #38242
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,6 @@ import type { | |
SizeExceededParams, | ||
SplitAmountParams, | ||
StepCounterParams, | ||
TagSelectionParams, | ||
TaskCreatedActionParams, | ||
TermsParams, | ||
ThreadRequestReportNameParams, | ||
|
@@ -657,8 +656,8 @@ export default { | |
`changed the distance to ${newDistanceToDisplay} (previously ${oldDistanceToDisplay}), which updated the amount to ${newAmountToDisplay} (previously ${oldAmountToDisplay})`, | ||
threadRequestReportName: ({formattedAmount, comment}: ThreadRequestReportNameParams) => `${formattedAmount} ${comment ? `for ${comment}` : 'request'}`, | ||
threadSentMoneyReportName: ({formattedAmount, comment}: ThreadSentMoneyReportNameParams) => `${formattedAmount} sent${comment ? ` for ${comment}` : ''}`, | ||
tagSelection: ({tagName}: TagSelectionParams) => `Select a ${tagName} to add additional organization to your money.`, | ||
categorySelection: 'Select a category to add additional organization to your money.', | ||
tagSelection: 'Select a tag to better organize your spend.', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we no longer using the tagName? If the field is called "Department" for example, they won't know what "tag" means right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the linked conversation, but 2 reasons:
|
||
categorySelection: 'Select a category to better organize your spend.', | ||
error: { | ||
invalidCategoryLength: 'The length of the category chosen exceeds the maximum allowed (255). Please choose a different or shorten the category name first.', | ||
invalidAmount: 'Please enter a valid amount before continuing.', | ||
|
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.
I think we should also remove this from types since it's no longer used
App/src/languages/types.ts
Line 213 in 09eb438
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.
Good catch, fixed! Very strange to me that this type existed just to define a
string
😕