[openstreetmap/openstreetmap-website] Color mode preference stored in db (PR #5339)

Anton Khorev notifications at github.com
Sun Nov 17 15:59:00 UTC 2024


The same as #5337 but stores the preferred color scheme value in user preferences db table instead of cookies.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5339

-- Commit Summary --

  * Add auto/light color scheme stylesheets depending on user preferences
  * Show color scheme on user preferences page
  * Add color scheme select to preferences form
  * Store selected color scheme

-- File Changes --

    M app/assets/stylesheets/parameters.scss (1)
    A app/assets/stylesheets/screen-auto-ltr.scss (3)
    A app/assets/stylesheets/screen-auto-rtl.rtlcss.scss (3)
    A app/assets/stylesheets/screen-light-ltr.scss (3)
    A app/assets/stylesheets/screen-light-rtl.rtlcss.scss (3)
    D app/assets/stylesheets/screen-ltr.scss (1)
    D app/assets/stylesheets/screen-rtl.rtlcss.scss (1)
    M app/controllers/preferences_controller.rb (6)
    M app/views/layouts/_head.html.erb (6)
    M app/views/preferences/edit.html.erb (8)
    M app/views/preferences/show.html.erb (8)
    M config/locales/en.yml (4)
    M test/controllers/preferences_controller_test.rb (22)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5339.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5339.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5339
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5339 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241117/531678f1/attachment.htm>


More information about the rails-dev mailing list