Closed m-natarajan closed 3 weeks ago
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Edited by proposal-police: This proposal was edited at 2024-09-13 08:13:38 UTC.
The intro text on More Features stays fixed when it should scroll with the page
workspaceCategories
, workspaceTags
etc..., the HeaderText
is scrollable for mobile devices and fixed otherwise.profile
, workflows
, etc...workspaceCategories
,workspaceTags
etc...) create a function getHeaderText
to accommodate following
<Text style={[styles.ph5, styles.mb4, styles.mt3, styles.textSupporting, shouldUseNarrowLayout ? styles.workspaceSectionMobile : styles.workspaceSection]}>
{translate('workspace.moreFeatures.subtitle')}
</Text>
scrollView
on mobile devices and inside otherwise.
{!shouldUseNarrowLayout && getHeaderText()}
<ScrollView contentContainerStyle={styles.pb2}>
{shouldUseNarrowLayout && getHeaderText()}
{sections.map(renderSection)}
</ScrollView>
renderSections
function, since it's not matching with styles of other similar pages (profile
, workflows
, etc...)
https://github.com/Expensify/App/blob/caf529b46a6d99cab523729bc0ffdad2fbd94e5c/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx#L368Optional changes current style of
headerText
somewhat differs from from other pagesheaderText
so replace [styles.mb4, styles.mt3] with [styles.pb5, styles.pt3] to remove that 4px difference compare to other pages https://github.com/Expensify/App/blob/caf529b46a6d99cab523729bc0ffdad2fbd94e5c/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx#L412 WorkspaceCategoriesPage Reference WorkspaceTagsPage reference
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
The intro text on More Features stays fixed when it should scroll with the page
We are not adding this Text in scrollView
. In narrowLayout the header scrolls with the content but here we have not added that functionality.
https://github.com/Expensify/App/blob/04762acb53f446708d6f649cbb6b527abbf72889/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx#L412-L414
We can create a const getHeaderText
to store this
const getHeaderText = () => (
<Text style={[styles.ph5, styles.mb4, styles.mt3, styles.textSupporting, shouldUseNarrowLayout ? styles.workspaceSectionMobile : styles.workspaceSection]}>
{translate('workspace.moreFeatures.subtitle')}
</Text>
)
and then outside scrollView here we can add
{!shouldUseNarrowLayout && getHeaderText()}
and then finally we can change scrollView
<ScrollView contentContainerStyle={styles.pb2}>
{shouldUseNarrowLayout && getHeaderText()}
{sections.map(renderSection)}
</ScrollView>
Note: We might need some minor styling that can be done in PR.
We can use isSmallScreenWidth
instead of shouldUseNarrowLayout
Updated added additional changes we should make for more consistent user experience.
Reference images for proposal Notice Larger gap between sections on MoreFeaturesPage | MoreFeaturesPage | WorkflowPage |
---|---|---|
@Expensify/design I want to confirm that the "expected" above is true:
Intro text should be attached to the content of the page and scroll with the rest of the cards. Also the padding on the right of the text missing. The text is too close to the edge.
Should More Features
scroll with the page or remain fixed at the top?
The More features part should stay fixed.
That's what I was assuming Closing
Why are we closing this? Sorry if I missed something, but this issue isn't fixed is it? To clarify the top header shouldn't scroll, but the text below should:
Sorry if I'm missing something though 😅
Agree with Jon, I think this is something we need to fix.
OH! I did misunderstand. I thought you meant the whole "More Features" part stays fixed!
Job added to Upwork: https://www.upwork.com/jobs/~021837165152252710251
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (External
)
Edited by proposal-police: This proposal was edited at 2024-09-21 01:17:03 UTC.
<ScrollView contentContainerStyle={[styles.pb2]}>
<Text style={[styles.ph5, styles.mb4, styles.mt3, styles.textSupporting, shouldUseNarrowLayout ? styles.workspaceSectionMobile : styles.workspaceSection]}>
{translate('workspace.moreFeatures.subtitle')}
</Text>
{sections.map(renderSection)}
</ScrollView>
@dubielzyk-expensify Can you help confirm that: This issue need to be resolved on all platforms, right?
@dubielzyk-expensify Can you help confirm that: This issue need to be resolved on all platforms, right?
I think it should be resolved on all platforms, but we should wait for confirmation.
Yep. All platforms please
Yep. All platforms please
Based on the confirmation @truph01 proposal LGTM. and I believe the issue The text is too close to the edge
has been fixed in #48565.
🎀 👀 🎀 C+ reviewed
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@dubielzyk-expensify we only scroll the header text in narrow layouts and apply the same approach for the categories page and other workspace pages.
https://github.com/user-attachments/assets/408b5ed7-9d3f-4ebc-9179-59c4f301edf1
And here, only small screen devices are selected.
Which of our officially supported platforms is this issue occurring on?
- [x] Android: Native
- [x] Android: mWeb Chrome
- [x] iOS: Native
- [x] iOS: mWeb Safari
- [ ] MacOS: Chrome / Safari
- [ ] MacOS: Desktop
@suneox With the selected proposal, the text will scroll in all cases. We only scroll the header text when we're in narrow layouts.
cc: @dubielzyk-expensify
@suneox With the selected proposal, the text will scroll in all cases. We only scroll the header text when we're in narrow layouts.
@Nodebrute The expected behavior has been confirmed in this comment
Yes, we must fix this on all platforms, but we only scroll the header text in narrow layouts. This is the same approach we use on other workspace pages. Can you check this video https://github.com/Expensify/App/issues/49075#issuecomment-2368158721
cc: @shawnborton @dubielzyk-expensify
In the wider layout example is it possible to have the intro text scroll, but not the table header?
In the wider layout example is it possible to have the intro text scroll, but not the table header?
@dubielzyk-expensify Could you provide more details? I don't fully understand what you're referring to.
My bad. Can we do this?
I can fix the 'Name-Status' header, but I’m unable to make the 'Get a better overview ...' text scrollable:
https://github.com/user-attachments/assets/ba3e4547-5917-4b80-93dd-492282d93770
@dubielzyk-expensify I don't see any similarity between the workspace 'More Features' page and other pages like workspace categories, tags, or taxes. Therefore, there’s no reason to require us to apply the same behavior on the 'More Features' page as on those other pages.
So I think we just need to apply the changes to all platforms as you mentioned above:
All platforms please
Yeah, I think for the pages with tables, let's just leave them as is for now and proceed with the original bug in this issue.
It's still solvable by making a sticky header table when scrolling, but it requires more work
@srikarparsi C+ has reviewed the proposal. All yours!
I don't see any similarity between the workspace 'More Features' page and other pages like workspace categories, tags, or taxes. Therefore, there’s no reason to require us to apply the same behavior on the 'More Features' page as on those other pages.
Definitely agree with this so I agree with where you all landed. Make More features
work how we want it to work and leave the table pages alone for now.
Cool, sounds good. If we want the intro text to scroll up with the page on all platforms then @truph01's proposal looks good to me too
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
@abekkala The PR has been deployed to production for a week, so we can proceed with the payment for this issue.
@truph01 and @suneox payments sent and contracts ended - thank you! 🎉
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.33-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @dubielzyk-expensify Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726115971343019
Action Performed:
Expected Result:
The intro text that says: "use the toggles below to enable..." is fixed when you scroll the page
Actual Result:
Intro text should be attached to the content of the page and scroll with the rest of the cards. Also the padding on the right of the text missing. The text is too close to the edge:
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/b1e78d00-750c-4742-849c-45f0a5bb78ad
https://github.com/user-attachments/assets/c84e130f-baf1-4dd0-a176-e88bf11e413a
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @suneox