-
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
[HOLD for payment 2024-06-05] [$500] Fix scrollable elements in Policy pages #37782
Comments
Triggered auto assignment to @MitchExpensify ( |
So the whole page should scroll just like it does everywhere else, got it. I'll make this external tomorrow |
ProposalPlease re-state the problem that we are trying to solve in this issue.Only the list element can be scrolled on policy page What is the root cause of that problem?The
What changes do you think we should make in order to solve the problem?We can wrap all elements after the header like subtitle, ... or only
What alternative solutions did you explore? (Optional)NA |
Current assignee @MitchExpensify is eligible for the Bug assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~010982d541dff55b4c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Fix scrollable elements in Policy pages What is the root cause of that problem?Feature request. What changes do you think we should make in order to solve the problem?We can't use ListHeaderComponent={
<>
{ListHeaderComponent}
{ListHeaderComponent && (
<View style={[styles.peopleRow, styles.userSelectNone, styles.ph4, styles.pb3, listHeaderWrapperStyle]}>
<Checkbox
isChecked={flattenedSections.allSelected}
onPress={selectAllRow}
disabled={flattenedSections.allOptions.length === flattenedSections.disabledOptionsIndexes.length}
accessibilityLabel={translate('workspace.people.selectAll')}
/>
{customListHeader ?? (
<View style={[styles.flex1]}>
<Text style={[styles.textStrong, styles.ph3]}>{translate('workspace.people.selectAll')}</Text>
</View>
)}
</View>
)}
</>
} Resultfix_scroll_view_workspace.mp4AlternativelyA workaround to avoid native console error would be to use 2 scrollviews (horizontal ScrollView + FlatList) like in the code below App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 620 to 628 in be716dd
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Content on the header does not scroll with the list. What is the root cause of that problem?The issue is that only the Categories lis is nested into a scrollable component We can't just wrap the whole content including the The are several reasons why nested
Also we can't just add a new new prop What changes do you think we should make in order to solve the problem?1- On WorkspaceCategoriesPage create a new prop headerScrollable (true/false). 2- if true, then we render what we need from the header inside the + if (index === 0) {
return (
<View>
+ <NewHeaderCompoenent />
<ListItem
item={item}
....
/>
</View>
);
} The 3- Adjust |
Some proposals here for you @aimane-chnaif 👍 |
@MitchExpensify, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bumped @aimane-chnaif 1:1 |
updating shortly |
ListHeaderComponent prop was introduced in react native for the exact purpose of fixing this kind of issue easily. |
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This issue has not been updated in over 15 days. @akinwale, @flodnv, @MitchExpensify, @Krishna2323 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Waiting on @Krishna2323 to fix merge conflicts |
PR is in final review |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-05. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Reminder set to pay, @akinwale thoughts on the BZ steps? |
This is a new feature.
Regression Test Steps
Devices with width greater than 800px
Devices with width less than 800px
Do we agree 👍 or 👎? |
@MitchExpensify Checklist completed. |
@MitchExpensify bump for payment. Thanks. |
Paid and contract ended, thanks @akinwale ! |
@MitchExpensify, I haven't been paid yet, automatic offer wasn't sent to me at the time of assignment. |
Oh ok, I'm actually unsure what to do in that case. Are you expecting to be paid via Upwork or NewDot just to be sure? |
@MitchExpensify, through Upwork :) |
Offer sent here Fix scrollable elements in Policy pages #37782 |
@MitchExpensify, accepted. |
Paid and contract ended! Thanks for your patience @Krishna2323 |
Coming from this comment, all elements but the page header should scroll on policy pages, e.g. members, categories, tags. etc
chrome.mov
cc @Expensify/design
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: