Skip to content

Implement archive permalinks

fixes #650 (closed)

This is initial implementation that decides whether is the chatItem being rendered in chat or archive window and based on that generates different permalink.

  • render different link based on whether the chat is rendered in normal or archive chat window
  • write unit for the permalink logic
  • implement permalink highlight ?at=5c94afb8b9552a27a7930fbb in archive chat window
  • change the interface of ArchvieNavigationView to match other Views used in layouts
  • don't let the chatCollection to fetch additional messages
  • fix the ... icon and context menu in archive chat
  • Don't show (Alt-click to quote) in archive date popup
  • Handle archive permalinks generated in different time zone (add timestamp parameter to URL and redirect if necessary)

Test Cases

  1. Time zone
    • create a message at 7am AEDT, generate permalink in a AEDT located browser, send it to CET browser - expect redirect to previous day
  2. chat item actions
    • validate all actions work as expected for chat message
    • validate actions button is not visible in archive
    • validate action button is not visible in not-logged-in chat
  3. (Alt-click to quote) in date popover
    • visible in chat
    • not showing in archive
    • STRETCH GOAL: not showing in nli chat
  4. Permalink (archive)
    • click on date -> changes URL with ?at= permalink and highlights the chat item
  5. Permalink (chat and not logged in chat)
    • click on date -> changes URL with ?at= (no highlight)
    • quote with Alt+click works in chat
  6. Opening the generated permalink in a browser shows permalinked chat item and highlights it
    • in archive
    • in normal chat (Locally, I observed behavior on latest Chrome (74) where only first load/hard refresh causes highlight, but it's same on master - without this MR)
Edited by Tomas Vik (OOO back on 2024-11-19)

Merge request reports

Loading