]> git.openstreetmap.org Git - rails.git/commit
Show a preview of the tags when uploading or editing a trace
authorvignesh-chaturvedi <vigneshchaturvedi@gmail.com>
Wed, 28 Oct 2026 21:15:11 +0000 (02:45 +0530)
committervignesh-chaturvedi <vigneshchaturvedi@gmail.com>
Mon, 2 Nov 2026 18:59:20 +0000 (00:29 +0530)
commit02fe1c6a09357fa186a28d8a20830e737cc6f935
tree256cc25ff10d3c696a91da8c15f495c58b2d3c2e
parent7bb3d9737fae84426aed4c71657ea16fb658df57
Show a preview of the tags when uploading or editing a trace

The help for the tags field says that they are comma delimited, but
if there aren't any commas they are split on spaces instead, so
"Foo Bar" gives two tags rather than one.

Rather than trying to explain that in the help, show the tags that
will be created after it as they are typed, split in the same way as
Trace#tagstring= does, and change the help to say whether they are
comma or space delimited. The help is left as it was unless there
would be more than one tag.
app/assets/javascripts/trace.js [new file with mode: 0644]
app/views/traces/edit.html.erb
app/views/traces/new.html.erb
config/locales/en.yml
test/system/trace_tags_test.rb [new file with mode: 0644]