summaryrefslogtreecommitdiff
path: root/ui/lib/store.js
Commit message (Collapse)AuthorAge
* npm run fmtOwen Jacobson2025-02-24
|
* Merge branch 'main' into prop/preserve-stateKit La Touche2025-02-21
|\
| * Split "set up the event source" and "apply events to state" from one another.Owen Jacobson2025-02-21
| |
* | Separate channel metadata out into its own storeKit La Touche2025-02-20
| | | | | | | | | | | | | | | | This is stored locally, and, while parallel to channel info, is not the same as. Eventually, this may hold info about moot/decayed channels, and grow unbounded. That'll need to be addressed.
* | Merge local channel data and remote to maintain stateKit La Touche2025-02-20
|/ | | | | | | | | When we hit the boot endpoint, we get the server's view of things. If we just setChannels with that, we overwrite all our locally-stored info in on things like lastReadAt. So we need to merge data. Eventually, this might militate for a `meta` key containing an object of locally stored data, rather than having to handle each key specially.
* Rename and modify channels storeKit La Touche2024-11-29
| | | | | | | | I tried to have a custom class for Channel objects, but Svelte's automatic proxy logic works only on bare objects, as far as I could tell. So that broke everything. I resorted to a function that would build the bare objects, but we still lack methods that I think would make life easier ("touch last read" etc).
* Split message runs after ten minutes' silence.Owen Jacobson2024-11-06
| | | | I've also refactored how runs are processed, to avoid re-splitting runs every time the channel view is rendered. They're generated when messages are ingested into the `$messages` store, instead.
* Move `showMenu` out of globals and into page state.Owen Jacobson2024-11-05
| | | | | | I generally don't love globals, and the scope of this global is pretty narrow. Let's use the context hierarchy for this, instead. (Kit mentioned that it might be possible to use CSS variables for this.)
* Do a big mobile app design thingKit La Touche2024-10-23
| | | | | | Mobile-friendly anyway. Thanks to [Miriam](https://www.miriamsuzanne.com/) for the CSS that enables a sliding menu on mobile size, constant menu on larger.
* Compute the active channel from the current routing state, not from a store.Owen Jacobson2024-10-10
|
* Hoist the UI one step up furtherOwen Jacobson2024-10-10