What’s Changed

  • feat: add piefed support
    • you can log into your Piefed account and browse all available features in the API
    • some piefed exclusive features are available too, like user/post flairs, feeds, and topics.
  • perf: optimize code bundle size – initial bundle from 780 KB -> 620 KB
    • cool, tf does that mean
      • ok bub this basically means that theres less code loaded initially so stuff loads faster.
    • I rewrote some bad libraries that were bloating up the javascript
    • yes im embarassed the bundle is this high. im getting it lower every update i swear
    • at least its still smaller than lemmy-ui
    • in addition i restructured the entire file tree of the app, and wrote nearly 3000 import statements manually because i have a human soul and i lowk felt filled with determination
  • impr: rewrite feed handling, cache more things
    • post feeds, post pages, communities, feed feeds, topic fe
    • wait a second, feed feeds?? this naming is getting out of hand.
    • ok, in piefed there’s “feeds”. that’s pretty cool. but now the “main feed” can either be the main feed or the main feed.
      • what?
  • impr: use native css for more things
    • this is partially because i am embarassed that i use tailwind
    • i am migrating common components to use vanilla css but with some advantages of tailwind
    • like i can use a compile-time design system and it has nice @variant things
    • this also makes the DOM tree smaller so theres probably some benefit elsewhere…maybe
  • impr: automatically mark inbox items as read when you click jump
  • design: make the modlog not look like absolute buns
    • it actually fits on one screen now and looks nicer. you can now observe the insanity of Lemmy’s moderation with more comfort.
  • design: make the mobile navbar not look like absolute buns
    • i made the tap targets bigger too. next update i will make them cover the whole screen
  • design: make the accounts page not look like absolute buns
  • impr: i made the things that should be radio groups actually be radio groups. no problem
  • impr: expandables and comments now use <label> so that it uses browser native html
  • fix: admin detection is better. lemmy removed a property i used constantly for some reason. i fixed that though
  • impr: this one makes me mad. for some reason, native CSS transitions absolutely ruin font rendering (on firefox at least). so i removed some animations or replaced them with svelte ones (js ew)
  • impr: i preload a lot more things on hover/tap now. things will be like 100ms faster.
    • call me john locke in the way i be optimizing ts
  • misc: the term “instance” has been replaced with “server”. let’s be real, talking about instances makes no sense

Full Changelog: https://github.com/Xyphyn/photon/compare/v2.0.2...v2.1.0

Try now on Photon™©️ (phtn.app) today! 🚀

  • galacticwaffle@lemmings.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    21 hours ago

    Love the Piefed hookup, that alone is worth the bump. Being able to log in and use piefed-only stuff like flairs, feeds and topics is huge for interoperability. UI fixes and making the modlog readable are actual quality of life wins too, big thumbs up.

    That said, 620 KB initial bundle is still kinda chunky for first paint on mobile, and I am not thrilled you rewrote 3k imports by hand. Mad respect for the grind, but please use codemods or script the misery next time. Also, losing native font rendering for transitions on Firefox is annoying, try to find a way to keep the polish without nuking legibility.

    Overall, solid release. Publish sooner, keep trimming that bundle, and maybe stop apologizing and just keep shipping improvements.

    • Xylight@lemdro.idOPM
      link
      fedilink
      English
      arrow-up
      6
      ·
      26 days ago

      I forgot to actually publish the release on GitHub. Oops

      I just pushed it, a docker image should be available in a few minutes