Skip to content

Refactor main page

Mirian Margiani requested to merge refactor-main-page into master

I rewrote the main page (sessions page) with UI support for a lot of fancy unimplemented features, including profile pictures. Everything works as it is now. A few menu entries (etc.) are commented-out and can be activated as soon as the backend is ready.

I added a few icons (read, sent, received, group) and put their SVG source in the icons-src. Is that a good place?

A large portion of code has to be removed when !91 (merged) is merged. I marked the section prominently; the MRs are independent.

The MR should be ready to be merged.

Backend tasks (can be done when they're ready):

  • add count of unread messages (model.unread seems to be a boolean but was treated as integer before...?) [this shows a nice label] (#218)
  • provide own phone number or something else to decide if a chat is with myself (#138 (closed)) [has "note to self" as title and shows an indicator]
  • pin sessions to the top of the list (ordering has to be done in the backend too) [shows an indicator, commented menu item] (#219 (closed))
  • "archive" chats [shows an indicator, menu item is commented; needs a separate page] (#220 (closed))
  • save unsent "drafts" (#178 (closed)) [shows an indicator and "draft: ..."]
  • profile pictures! (#192 (closed), #154 (closed), #204) [are shown... opens the contact/group page when clicked]
  • "sent" and "received" markers are not updated in the preview, only when the app is restarted (#151 (closed), #55?) [indicator...]
  • "mark as read/unread" [commented menu items] (#221)
  • "bookmark" messages and show them on a separate page [commented menu item] (#222)
  • full text search over one/multiple chats (#13) [commented menu item]
Edited by Mirian Margiani

Merge request reports