One of my goals when developing note-viewer is to try various experimental features. Note-viewer started as a replacement for user’s notes pages. I could have tried changing it in the osm website code but then I’d be constrained by other things. And I want to do some things that are definitely not going to be on the osm website, maybe for a good reason because some of them will turn out to be useless and I’ll throw them away later. In fact, I’ve already thrown away some. If you were using note-viewer before did you notice that round note status icons in the table used to work as radio buttons? They don’t anymore, that was a way to select the date, now you just click the date. What does this date selection do is another topic which we won’t go into here.
Links in comments
What we are going to look into is getting links to various things mentioned in note comments. Actually when the API returns note information it sends note comments in two formats: plaintext and html. However we won’t rely on this html output because users commenting notes enter plaintext and don’t set any links themselves and in the html output everything that looks like a url gets a link, no matter how dubious the site is. We only want links to sites we trust. Obviously one of them is openstreetmap.org. Another one is StreetComplete’s image hosting. Currently that’s all what note-viewer handles, but other sites may get added in the future.
As I am working my way through