Skip to content
Snippets Groups Projects
  1. Apr 19, 2024
    • dakkar's avatar
      rework pagination - fixes #491 · dbfafe25
      dakkar authored
      previously, when adding items either at the beginnig (e.g. new notes
      coming in while we're not looking at the top of the timeline) or a the
      end (e.g. more items arriving from a background fetch) of a paginated
      view, the resulting list got truncated to `displayLimit`, potentially
      throwing data away and causing a new fetch.
      
      This, coupled with the async nature of scrolling & fetching, could
      cause weird results.
      
      Also, `offset` was always incremented by the size of the fetched
      results, even if not all of them were displayed, meant that it was
      possible for offset-based pagination to drop items.
      
      Finally, the "queue" of new items (usually, new notes) also got
      truncated to `displayLimit`, which again could drop items (this effect
      was usually masked by the first point: when scrolling to the top of
      the timeline, if the queue's length was equal to `displayLimit`, those
      notes displaced any existing ones, `unshiftItems` set
      `more.value=true`, you got scrolled to the top, and notes were fetched
      again, so you lost your position but at least all notes got shown,
      eventually)
      dbfafe25
  2. Apr 11, 2024
  3. Apr 09, 2024
  4. Apr 07, 2024
  5. Apr 04, 2024
  6. Apr 03, 2024
  7. Mar 30, 2024
  8. Mar 27, 2024
  9. Mar 19, 2024
  10. Mar 14, 2024
  11. Mar 13, 2024
  12. Mar 11, 2024
  13. Mar 10, 2024
    • dakkar's avatar
      make cookie a bit more secure - fixes #445 · 6826e43a
      dakkar authored
      We can't make the cookie `HttpOnly` because we're setting it from
      Javascript, but I'm not sure it's worth the trouble to redesign that:
      `JSON.parse(localStorage.account).token` gives you the token anyway,
      hiding the cookie from JS won't offer much protection.
      
      At least we can mark is `Secure` (meaning, only send it over HTTPS)
      and _delete it on logout_ (it wasn't!)
      6826e43a
    • dakkar's avatar
      hide CW-ed featured notes on welcome page - fixes #458 · ff189b19
      dakkar authored
      not the most elegant solution, but simple and robust
      ff189b19
  14. Mar 09, 2024
  15. Mar 08, 2024
  16. Mar 07, 2024
  17. Mar 05, 2024
Loading