themmesthemmesIHP Contributor

Usability suggestions

Back from holiday and trying to catchup on forum posts I thought of some usability improvements.

  1. In the homepage overview we should probably limit the size of the post previews
  2. In the homepage overview reverse the ordering of posts to have latest at the top
  3. Ability to change the topic when editing a thread

If you think these improvements make sense I could try to make a PR :-)

marcmarcdi Team

Agree with all of them :) We should also add email notifications asap :)

marcmarcdi Team

Just applied some improvements :) But there's IMO a lot more todo :)

themmesthemmesIHP Contributor

Great, these are huge improvements!

Tonight I attempted to limit the length of the posts on the homepage. However, that was a bit more complicated than I thought. First I tried simply get #body thread |> take 200 |> renderMarkdown, however that gives me Text type errors (I really don't understand the Text/Char/String mess in Haskell). Then I thought of the problems of simply trimming Markdown would give, potentially incorrect Markdown? But starting to look into limiting the amount of text in HTML is a whole different rabbit hole...

marcmarcdi Team

Yeah, just limiting the html is not so easy. Also limiting the markdown string might have a few edge cases. E.g. the shorted markdown string could result in invalid markdown. Then the generated html would be an error message. In that case we'd need some kind of loop that keeps removing one more character and then looks whether the html can be successfully be generated from the markdown.