This release is a major overhaul of Patchfox. It is laying the necessary groundwork for Patchfox to support multiple backends — nodejs-based ssb-server, browser-ssb server, go-ssb server — and become a viable main client.
There is comprehensive information about the ROADMAP on SSB, and the tasks have been broken into discreet issues on Github.
Because there is so much going on, the release notes will give at a glance information only.
Revamped UI with theme support
Every single package has been reworked to support the new design language used in Patchfox. You can now use the little palette at the end of the main navigation bar to switch among the available themes. Your selected theme will be remembered.
For the developer-curious among you, I replaced the old <i>Spectre2 CSS + Augmented UI CSS</i> based layout with <i>Tailwind CSS + DaisyUI</i>.
This represents two months of work and is the necessary foundation to move the ROADMAP forward. Using the new components and layout framework, I'll be able to code more complex packages such as the private messaging feature.
Support Multiple Identities / Connections
This release adds support for using multiple identities and connections with Patchfox. The
settings package has been enhanced to allow you to add as many identities as you want.
An account switcher is provided in the top-right corner of the UI. Selecting an identity there will open a new tab using that identity.
Identity switcher modal dialog.
Developers can now use
ssb.platform to detect what is the current running backend, and use the
supportedPlatforms property in the package declaration to make sure the package only loads for supported platforms.
Be aware that the only supported backend is
nodejs-ssbat the moment. Trying to add a
browser-ssbidentity will work, but connecting to them will not work as expected since the packages have not been patched to handle them. Baby steps, baby steps...
Fixes & Improvements
- Made packages more backend agnostic by removing direct calls to nodejs-ssb-only features. For cases where this was not possible, made sure they detect what is the current backend before attempting to use such features.
- Provided ways for package developers to flag which backends their package supports, and also detect the running backend at runtime.
- Removed hardcoded occurrences of
localhostto fetch blobs. Now it uses the same host and port as the remote in settings.
This may seem like a minor update, but this is actually two months of a lot of work. I had to change every single component in Patchfox, that is most of the files. I also had to rearchitect how it works internally so that it can be evolved into a multi-connection/multi-identity client — the first of its kind IIRC — and be able to support the exciting new servers that our friends are working on.
All this work was possible because of the grant received from the butt council. Thank you.