Instead of *submitted* and *commented* note colors switch to *created*, *resolved* and *commented*.
Reasons: - Close actions were colored as *commented* even if notes were closed without any comments. Now they are going to be colored as *resolved*. - *Submitted* is not a term we use for notes, we have "add a note" and notes "created by". - There was a [complaint](https://github.com/openstreetmap/openstreetmap-website/pull/4700#issuecomment-2221682594) about the primary color used for submitted notes that is blue making links harder to see. What other color can we use? For example, the *success* color, like we do for unread messages. But that's the color of the resolved note marker, and then we might as well add the unresolved color. Caveats: - I keep "submitted" in locale keys to avoid errors while `subheading_html` is not updated. - I ignore *reopen* events because if I don't, I'd have to treat them as *open* events but then there wouldn't be an equivalent to the previous *submitted* state. And the equivalent is green *created* + yellow *created and resolved*. - I had to add this *created and resolved* state because what if the user did both actions? I can't pick one more important color. If I look at note status changes, the latest action is the most important one and I'd have to color notes as *resolved*. But then again I'd lose the equivalent to the previous *submitted* state.  Dark mode:  Legend while locale strings aren't updated:  You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5269 -- Commit Summary -- * Replace submitted note table color with created/resolved -- File Changes -- M app/assets/stylesheets/common.scss (8) M app/views/notes/index.html.erb (22) M config/locales/en.yml (6) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5269.patch https://github.com/openstreetmap/openstreetmap-website/pull/5269.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5269 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev