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

[HOLD for payment 2023-01-11] [$2000] [Dark mode] Scrollbars should have a dark color #12914

Closed
aldo-expensify opened this issue Nov 22, 2022 · 97 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Nov 22, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. In the comment composer, click the Emoji button
  2. Verify that the scroll bar looks "well" in the dark mode

Expected Result:

Scrollbar should be darker

Actual Result:

Scrollbar color is toooo light

image

Workaround:

N/A this is just cosmetic

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Reproducible in staging?:
Reproducible in production?:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019481609abc2ae0b8
  • Upwork Job ID: 1603152076507746304
  • Last Price Increase: 2022-12-21
@aldo-expensify aldo-expensify added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 22, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 22, 2022

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@aldo-expensify
Copy link
Contributor Author

cc @shawnborton do we have a color for the scrollbars?

@aldo-expensify
Copy link
Contributor Author

Do we have a tracking issue for things related to dark mode?

@shawnborton
Copy link
Contributor

Oh interesting, I would think we would hide the scroll bar in that particular piece of UI. Thoughts?

@shawnborton
Copy link
Contributor

Otherwise I would make the scroll background the same color as the darkest app BG color, and the tracking button the same color as our default buttons.

I don't think we have a tracking issue for things related to dark mode... yet? I am not sure if we need one though, we can just handle bugs on a 1:1 basis. Now that I see the scroll bar some more, I can see why it would be useful given how long the emoji list is.

@aldo-expensify
Copy link
Contributor Author

Oh interesting, I would think we would hide the scroll bar in that particular piece of UI. Thoughts?

Maybe, but you still have the scrollbar in other views

image

@shawnborton
Copy link
Contributor

Good point. Okay, so let's try with my color suggestions above?

@aldo-expensify
Copy link
Contributor Author

Good point. Okay, so let's try with my color suggestions above?

sounds good to me!

@grgia
Copy link
Contributor

grgia commented Nov 22, 2022

I could bundle these dark mode color fixes into one PR for faster QA, mind if I take this one too?

@grgia grgia assigned grgia and unassigned dylanexpensify Nov 22, 2022
@grgia grgia added the Internal Requires API changes or must be handled by Expensify staff label Nov 22, 2022
@aldo-expensify
Copy link
Contributor Author

I could bundle these dark mode color fixes into one PR for faster QA, mind if I take this one too?

Feel free to take them if there is no engineer assigned ;)

@melvin-bot melvin-bot bot added the Overdue label Nov 24, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 25, 2022

@grgia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@grgia
Copy link
Contributor

grgia commented Nov 28, 2022

Haven't gotten to this one yet

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 2, 2022

@grgia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@grgia
Copy link
Contributor

grgia commented Dec 2, 2022

Looking into this, will update with what I find

@melvin-bot melvin-bot bot removed the Overdue label Dec 2, 2022
@grgia
Copy link
Contributor

grgia commented Dec 2, 2022

https://dev.to/shayanypn/anything-about-customizing-native-scrollbar-59hm dropping this here to reference later

@grgia
Copy link
Contributor

grgia commented Dec 2, 2022

@marcaaron I saw you updated some WebKit styles, do you have insight on modifying the scrollbar colors

@marcaaron
Copy link
Contributor

Scrollbars... I would check this for information about web ->

https://css-tricks.com/the-current-state-of-styling-scrollbars-in-css/

I am not really sure about react native...

I found this -> https://reactnative.dev/docs/scrollview#indicatorstyle-ios

But it's iOS only.

There's also a package someone created to customize the indicators here. Which could be a sign that this is not an easy thing to do. But I'd be surprised if we are the first people to ever try to implement a "dark mode" in a React Native app 😅

@melvin-bot melvin-bot bot added the Overdue label Dec 5, 2022
@grgia
Copy link
Contributor

grgia commented Dec 6, 2022

Thanks for the direction, Marc!
For later reference, this is the GitHub dark mode scrollbar hover:
Screenshot 2022-12-06 at 9 06 51 AM

@melvin-bot melvin-bot bot removed the Overdue label Dec 6, 2022
@sakluger
Copy link
Contributor

Thanks Shawn! Sounds like we're good to accept @0xmiroslav's proposal.

@JmillsExpensify
Copy link

@aimane-chnaif @grgia would you like to see an updated version of @0xmiroslav proposal before we move to the PR phase? If not, let's get them assigned building on @sakluger's last comment.

@aimane-chnaif
Copy link
Contributor

@aimane-chnaif @grgia would you like to see an updated version of @0xmiroslav proposal before we move to the PR phase? If not, let's get them assigned building on @sakluger's last comment.

@JmillsExpensify you mean this one?
change

@JmillsExpensify
Copy link

Yes

@aimane-chnaif
Copy link
Contributor

yes checked. So this may also fix @quinthar's concern in android (slack convo)
cc: @cristipaval (for #13815) @Julesssss (for #13087)

@grgia
Copy link
Contributor

grgia commented Dec 28, 2022

I think that we are good to move forward. I'll assign @0xmiroslav

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 28, 2022

📣 @0xmiroslav You have been assigned to this job by @grgia!
Please apply to this job in Upwork 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 📖

@JmillsExpensify JmillsExpensify changed the title [HOLD] [$2000] [Dark mode] Scrollbars should have a dark color [$2000] [Dark mode] Scrollbars should have a dark color Dec 28, 2022
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Dec 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jan 3, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@syedsaroshfarrukhdot
Copy link
Contributor

This PR solving this issue is causing a Deploy Blocker #13951 Currently as the issue is locked so commenting here and tagging the issue. Already proposed solution on Slack.

To fix it we need to set color to colorBackgroundFloating to fix the issue in styles.xml because applying background color dark to android app also causes Modals to be Dark.

As it is a Deploy Blocker I know the urgency to fix the issue so I will be available to raise a PR in next few minutes if assigned to the job.


diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index a804c14ab..b30501c5b 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -10,6 +10,7 @@
         <item name="android:statusBarColor">#061B09</item>
         <item name="colorAccent">@color/accent</item>
         <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
+        <item name="colorBackgroundFloating">@color/white</item>
     </style>
 
     <!-- Themes unique to the boot splash page -->

After Fix :-

WhatsApp.Video.2023-01-03.at.11.13.45.AM.1.mp4

@0xmiros
Copy link
Contributor

0xmiros commented Jan 3, 2023

I explained details here regarding #13951

@0xmiros
Copy link
Contributor

0xmiros commented Jan 5, 2023

Interestingly, I'm not seeing this issue on Android 13. I'm on app version 1.2.48-2 and I see the dark window background no matter how the app is opened (from background, fresh open after kill, fresh open after back button press):

@Julesssss regarding your concern 👆, I explained here 👇:

This also fixes any other dark mode issues in android like #13815, #13087 and also when opening the keyboard, the background flashes white reported in slack

@0xmiros
Copy link
Contributor

0xmiros commented Jan 5, 2023

and that PR is already deployed to production

@sakluger sakluger changed the title [$2000] [Dark mode] Scrollbars should have a dark color [HOLD for payment 2023-01-11] [$2000] [Dark mode] Scrollbars should have a dark color Jan 5, 2023
@sakluger sakluger added Awaiting Payment Auto-added when associated PR is deployed to production Reviewing Has a PR in review and removed Reviewing Has a PR in review labels Jan 5, 2023
@sakluger
Copy link
Contributor

sakluger commented Jan 5, 2023

The issue was deployed to production, but it seems like some of the automation isn't triggering, so I updated the title manually.

For payment:

  • Issue reporter: There is no external issue reporter
  • Contributor: @0xmiroslav I've sent an offer through Upwork
  • C+ reviewer: @aimane-chnaif I've sent an offer through Upwork

It looks like the linked PR was merged within 3 days, so I believe that this is eligible for a 50% bonus.

It also looks like there may have been a regression from the PR, but I can't tell if that was actually a regression or a false positive. @grgia @aimane-chnaif could you please confirm if there was a regression or not that would affect payment?

@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Jan 5, 2023

It is a kind of regression but PR not reverted. And it's handled in separate issue here with expanded scope and removed from deploy blockers list.
So I think we can consider it's not a regression.
Thoughts? @grgia

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Jan 11, 2023
@sakluger
Copy link
Contributor

Hey everyone, I discussed with my team regarding the payments, and I have an update. For this issue, we still consider the regression to be an actual regression - the PR doesn't necessarily need to be reverted to be deemed a regression. For that reason, we will be applying the 50% penalty for the regression.

Additionally, we do not pay the "efficiency" bonus for a fast merge when there is a regression.

Given the above info, here are the payments that I will be sending out today:

  • Contributor: @0xmiroslav - $2000 payment
  • C+ reviewer: @aimane-chnaif - $1000 payment

@sakluger
Copy link
Contributor

The contributors have been paid, the contracts completed, and the Upwork post closed.

@mallenexpensify
Copy link
Contributor

Late to this but... for the timeliness bonus, @0xmiroslav was hired on hired on 12/28 and the PR was merged on 12/30. CONTRIBUTING.md just got updated today to state

If the PR causes a regression within 7 days of being deployed to production, contributors are not eligible for the 50% bonus.

Before then we didn't make clearly state that a regression (reverted or not) would affect the timeliness bonus. With CONTRIBUTING.md being the source of truth, we need to always be able to point to it (which we can now). I've issued @0xmiroslav and @aimane-chnaif each $1000 bonus for timeliness.

For "If a regression is found but not reverted, does it still affect compensation?" the answer is yes for C+, per our internal process doc for C+, the regression is the trigger, regardless if it's reverted or not.

the PR has been deployed to production with no regressions. If regressions are found that “should have”* been caught after the PR has been approved

Copy link

melvin-bot bot commented Dec 14, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests