• GitHub
  • Documentation
  • Discord
  • Donate
search
  • chevron_right Threads
  • label Feedback

Make message editor persist between pages

tetricky
March 22, 2023
chat_bubble_outline 6
  • link
    tetricky
    Members 159 posts
    March 22, 2023, 9:23 a.m. March 22, 2023, 9:23 a.m.
    link

    .... additionally. I have the editor, once opened, remain active while browsing the current thread.

    If we browse elsewhere in the site, eg going to the threaded view, the edit is cancelled, ie the editor just disappears.

    Would it be possible, or desirable, for the editor to remain active outside the current thread? It is not unusual for me to look for quotes from other threads outside the current one.

  • link
    rafalp
    Project Lead 1976 posts
    March 22, 2023, 11:42 a.m. March 22, 2023, 11:42 a.m.
    link

    This is currently not possible due to how UI is built. We would need to convert the UI to SPA first and thats quite a journey.

  • link
    tetricky
    Members 159 posts
    March 22, 2023, 12:02 p.m. March 22, 2023, 12:02 p.m.
    link

    That's fine....it's workable around (and not a required feature).

    It does occur to me that if people are browsing a thread, with the editor down, they can lose track and click on a threaded view, or follow a link. I've done it myself. In that case the active edits are just lost without any warning.

    Would it be possible to alert the user that browsing away will discard current edits? (or a draft that can be returned to)

  • link
    rafalp
    Project Lead 1976 posts
    March 23, 2023, 1:45 a.m. March 23, 2023, 1:45 a.m.
    link

    Alert seems easy to do. Draft system is also something I want, but would likely take few weeks to implement and I have much more important features on list before doing that.

  • link
    rafalp
    Project Lead 1976 posts
    March 27, 2023, 2:32 p.m. March 27, 2023, 2:32 p.m.
    link

    I've just tested this and found that new thread input is persisted when user navigates between categories. And new reply editor is persisted when user navigates between pages of thread. So we are halfway there, which is nice :D

    But for editor to persist across entire site, I still need to convert whole site to SPA.

  • link
    tetricky
    Members 159 posts
    March 27, 2023, 3:13 p.m. March 27, 2023, 3:13 p.m.
    link

    It occurs to me that I don't know what SPA means.

  • link
    rafalp
    Project Lead 1976 posts
    March 27, 2023, 3:20 p.m. March 27, 2023, 3:20 p.m.
    link

    Single Page Application. Its when entire UI of website runs in single JavaScript app. Its what Facebook and Reddit does.

    Currently Misago has separate JavaScript apps that each handles other part of the site. There’s an app for thread page, other one for threads list, other for user profile and another fir search page. So when you open message composer on thread page and go to threads list, it goes away because it was open in thread app and now you are in threads list app.

    tetricky likes this.

    favorite 1

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Donate
  • Terms of service
  • Privacy policy
powered by misago