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

Enable Dope (Dark) Mode on TownSquare 🌙 #6245

Closed
wants to merge 49 commits into from
Closed

Enable Dope (Dark) Mode on TownSquare 🌙 #6245

wants to merge 49 commits into from

Conversation

molecula451
Copy link
Contributor

@molecula451 molecula451 commented Mar 17, 2020

Description

record-09033821032020

  • Localstorage to keep user preference on the site
  • Button toggle/untoggled if certain mode selected
Refers/Fixes

fix #6223

Testing

Local env. Still on going testing for activity stream

@molecula451 molecula451 changed the title Update index.html Enable Dark Mode on TownSquare Mar 17, 2020
@codecov
Copy link

codecov bot commented Mar 17, 2020

Codecov Report

Merging #6245 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6245   +/-   ##
=======================================
  Coverage   27.29%   27.29%           
=======================================
  Files         287      287           
  Lines       26712    26712           
  Branches     3945     3945           
=======================================
  Hits         7290     7290           
  Misses      19155    19155           
  Partials      267      267           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecbc931...ecbc931. Read the comment docs.

@molecula451 molecula451 changed the title Enable Dark Mode on TownSquare Enable Dark Mode on TownSquare 🌙 Mar 17, 2020
@owocki
Copy link
Contributor

owocki commented Mar 17, 2020

does it stick between page loads?

@willsputra what should we do about people who have dark mode town square when they go to the rest of the site? should we dark mode the rest of the site too?

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 17, 2020

@owocki Yes, localstorage when page loads so it keeps user preferences

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 18, 2020

if its for the whole site can be perform just inheritance the dark classes and it will keep across site

@willsputra
Copy link
Contributor

@owocki @molecula451 ideally yes, the rest of the site should be dark mode too.

i haven't really looked at how the rest of the site would look like in dark mode, though. might need some fixes afterwards if it breaks parts of the site.

@willsputra
Copy link
Contributor

the town square dark mode is looking great tho! 👍@molecula451

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 19, 2020

@owocki @octavioamu @willsputra watch it on reloading

@molecula451
Copy link
Contributor Author

I would go Townsquare only. It's a whole different space than the other sections

@owocki
Copy link
Contributor

owocki commented Mar 19, 2020 via email

@molecula451
Copy link
Contributor Author

Yes, let's do it. Townsquare first ahead! giving the last touch so it ships and ready to review

@owocki
Copy link
Contributor

owocki commented Mar 19, 2020

can the status updates themselves also go into dark mode? having the posts in light mode and the background in dark mode is kinda harsh on the eyes

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 20, 2020

Yes @owocki the 'toggle' as is. Is providing the whole functionality while maintaining user preference. Classes are just being inherit and providing an easy way to handle for further maintenance to the whole site if. and as you wish

@walidmujahid walidmujahid mentioned this pull request Mar 20, 2020
2 tasks
@walidmujahid
Copy link
Contributor

#6258

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 20, 2020

When a poll happens:

poll

@molecula451
Copy link
Contributor Author

@walidmujahid Any feedback is very welcoming my friend!

@molecula451
Copy link
Contributor Author

there is no need for further complexity the toggle is providing me the expected POWER, and classes are just being inhering as fun

@molecula451
Copy link
Contributor Author

When activity appears: (1 new activity on Townsquare)
activity

@molecula451
Copy link
Contributor Author

molecula451 commented Mar 20, 2020

DOPE MODE and Daily Actions active

magic

@molecula451
Copy link
Contributor Author

Perhaps if some users wants to make any contribution their better well decide to contribute onto some implementations made by "approved contributors" this will respect guidelines on the philosophy of working & Open Source Software and will for sure contribute to the whole project, platform (Gitcoin) to make a better experience for everyone & working with everyone

@molecula451
Copy link
Contributor Author

Some UI thoughts on the implementation:

Youtube's Dark Mode:

record-20500024042020

  • Does not change icon when changing modes
  • The button is hide on the user menu
  • So far provide a contextual info on what the option do
  • Do not change text

Uniswap's Dark Mode:

record-20594424042020

  • Provides a minimal custom-switch with embedded icons (not changing - it gives the sensation that something change, tho)

So far the Gitcoin's Dope Mode has it's own minimal "custom-switch" without too much fancy, very customizable for most part of the site and with it's own touch (Dope Mode) and it does what it is intented to.

record-21094324042020

@octavioamu
Copy link
Contributor

Hey guys what's the point in post-posing the feature application, and not working along one PR. #6258 The user was not approved to work. User went ahead and opened a PR. What's the point? in being approved or not can you please guy make a honest one-time decision. The only one I've seen so far taken a decision was @danlipert

@thelostone-mc is a lot indifferent.

@owocki
@octavioamu

Man worry about your PR if you are accepted to work and you are working on you PR then focus on that, I already let is clear in the first discussion about this when you actually started before the bounty was created #6223 (comment) So there is not sense to create any stress about it, trust on your work if someone else want to submit PR, well is open source, another thing is the agreement about who was approved to work / receive at the end.

@danlipert
Copy link
Contributor

@molecula451 looks like travis is failing - can you fix the lint errors? thanks!

@danlipert danlipert marked this pull request as draft April 29, 2020 13:25
@molecula451 molecula451 marked this pull request as ready for review April 29, 2020 14:27
@molecula451
Copy link
Contributor Author

molecula451 commented Apr 29, 2020

Thank you for such an eye-opener words great @octavioamu this pumped me today! appreciate it a lot

@danlipert I have fixed all lint errors within this implementation.

@molecula451
Copy link
Contributor Author

molecula451 commented Apr 30, 2020

Good to push gentlemen :) build passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a user, I want to browse the town square in dark mode 🌙
7 participants