You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-19] [$250] [Wave Control] Update the Report field list type creation flow #45990
When creating a list-type report field, we need to make sure the Initial value option comes after the list of values AND the List values option shows the created values as a comma-separated list, as shown below.
Note that the list values should not truncate but wrap to next line
If we want to wrap the title in next line we can do that by using numberOfLinesTitle prop.
Code can be refactored because we have the similar way of getting list values in ReportFieldsListValuesPage also.
What alternative solutions did you explore? (Optional)
If we don't want to show disabled value then we can filter that out using disabledListValues in ReportFieldsSettingsPage and formDraft?.[INPUT_IDS.DISABLED_LIST_VALUES] in CreateReportFieldsPage page.
// In 'ReportFieldsSettingsPage'title={listValues.filter((v,i)=>!disabledListValues[i]).join(', ')}// In 'CreateReportFieldsPage'title={formDraft?.[INPUT_IDS.LIST_VALUES]?.filter((v,i)=>!formDraft?.[INPUT_IDS.DISABLED_LIST_VALUES][i]).join(', ')}
Additionally we also might want to increase the number of lines for value field in ReportFieldsValueSettingsPage.
Note: This will be refactored
Activity
melvin-bot commentedon Jul 23, 2024
Triggered auto assignment to @muttmuure (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.mountiny commentedon Jul 23, 2024
@Expensify/design @JmillsExpensify Can you please double check that is right?
shawnborton commentedon Jul 23, 2024
Looks good to me!
Krishna2323 commentedon Jul 23, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Initial value incorrectly appears above List values for report field configuration
What is the root cause of that problem?
The
MenuItemWithTopDescriptionforinitialValueis placed abovelisvaluesApp/src/pages/workspace/reportFields/ReportFieldsSettingsPage.tsx
Lines 83 to 98 in d739580
What changes do you think we should make in order to solve the problem?
Place
MenuItemWithTopDescriptionforinitialValueafterMenuItemWithTopDescriptionforlisvaluesWe should also do this in CreateReportFieldsPage.
Then in
ReportFieldsSettingsPagewe need to get the list values. We can merge disabled values if needed.Same should be done in
CreateReportFieldsPagebut there we should get the list values fromformDraft?.[INPUT_IDS.LIST_VALUES].numberOfLinesTitleprop.ReportFieldsListValuesPagealso.What alternative solutions did you explore? (Optional)
disabledListValuesinReportFieldsSettingsPageandformDraft?.[INPUT_IDS.DISABLED_LIST_VALUES]inCreateReportFieldsPagepage.Additionally we also might want to increase the number of lines for value field in
ReportFieldsValueSettingsPage.Note: This will be refactored
Result
field_list.mp4
Krishna2323 commentedon Jul 23, 2024
Proposal Updated
43 remaining items
melvin-bot commentedon Aug 21, 2024
@rushatgabhane, @mountiny, @muttmuure, @shubham1206agra, @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
mountiny commentedon Aug 21, 2024
This can be separate
$250 to @Krishna2323 and to @shubham1206agra please @muttmuure
Krishna2323 commentedon Aug 21, 2024
I have been paid. 🙏🏻
muttmuure commentedon Aug 22, 2024
@Krishna2323 has indeed been paid
muttmuure commentedon Aug 22, 2024
@shubham1206agra I need you to accept the offer https://www.upwork.com/nx/wm/offer/103272331
muttmuure commentedon Aug 22, 2024
@rushatgabhane - $250 C+
@Krishna2323 - $250
@shubham1206agra - $250
shubham1206agra commentedon Aug 22, 2024
@muttmuure Offer accepted
muttmuure commentedon Aug 22, 2024
Paid
muttmuure commentedon Aug 22, 2024
@rushatgabhane can request in ND using the summary above #45990 (comment)
garrettmknight commentedon Sep 2, 2024
$250 approved for @rushatgabhane based on this summary.