Commit Graph
6704 Commits
Author SHA1 Message Date
7w1 487221d985 fix: recover timeline after TimelineReset (#478)
### Description

This PR fixes the reconnect / limited-sync recovery path in the room
timeline. Managed to track it down, thanks to this sentry report
[SABLE-1V](https://sable-client.sentry.io/issues/104545427/events/741b82918ba34554996ad673efe75a6f/)

After `TimelineReset`, the hook now re-anchors live event detection to
the current live timeline, allows bottom-pinned recovery to bypass the
transient `liveTimelineLinked` lag, and avoids snapping non-bottom users
to latest.

It also adds a regression test covering the reset behavior so the scroll
recovery and non-bottom path stay locked down.

Fixes #360

Repro (It's a tricky one):

- Use a broken build on Android Chrome if possible. Desktop Chrome works
too, but mobile/backgrounding is closer to the original report.
- Open a busy room and stay pinned to the bottom.
- In another client/account, send several messages to that room while
the first client is disconnected.
- Force a real sync gap:
- Mobile: background the app/tab, lock the phone, or toggle Wi‑Fi/mobile
data off for 30-60s.
  - Desktop: open DevTools and set network to Offline for 30-60s.
- Reconnect and return to the room.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [x] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-03-23 02:28:52 +00:00
7w1 967c161b75 Fix touchpad zooming in image viewer (#481)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

When using the touchpad both browser and app zoom gets activated, so let
the browser handle zooming when using a touchpad

Fixes #463

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-23 02:08:33 +00:00
7w1 0235d1510e Fix Video Camera auto enabling on Electron (and Tauri) clients using Sable Call. (#485)
### Description

Fixes #285 for good. Element Call (and thus Sable Call) use a
`callIntent` paramter derived from the `intent` parameter to decide if
the Camera should be requested. The Camera was being requested on every
call, and thus auto approved on Electron clients (and Tauri clients).
This affected both starting a room call and joining a VC room. This is
likely due to the fact that in Element they are 'Video Rooms'. This
change simply uses `JoinExistingDMVoice` which sets the correct
parameters to join a VC room OR call from the room header. The
`StartCall` and `JoinExisting` intents function the same on Sable Call's
end, this can be changed if they start to diverge in future updates of
course though.

I have tested this change in both scenarios of calling with multiple
people and it has functioned as intended.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-03-23 01:49:57 +00:00
Shea Duma e40f620cd9 corrected md 2026-03-23 03:22:36 +02:00
Shea Duma 8e85e8a90e removed visual focus on the 1st item to avoid any potential bugginess 2026-03-23 03:19:53 +02:00
Shea Duma ef817ce175 forced the focus to go to the right editor to stop the main one from mainspreading 2026-03-23 03:10:27 +02:00
Rye 0c97bfcadc fix (per-message-profile): unset fields if their value is oprional, and don't include a fallback if the display name is empty 2026-03-23 01:58:33 +01:00
Rawrington 525d3e311d i forgot typescript is evil sometimes 2026-03-23 00:53:01 +00:00
Rawrington 139290e326 pref can be undefined. 2026-03-23 00:44:32 +00:00
Rawrington 8eecebe339 Add knope changeset 2026-03-22 23:56:45 +00:00
Rawrington 2283cd6711 Small refactor. JoinExisting works for starting a call/joining a voice room. 2026-03-22 23:54:19 +00:00
Rawrington a3fda5a13c Silly CallIntent for video auto turning on 2026-03-22 22:54:40 +00:00
Rose 7b97565993 docs: simple AI disclosure (#456)
### Description

This PR adds the requirement to disclose AI usage on the PR, asking for
an explanation of what any AI generated code does.

With this I hope the AI dramas can end, while also making sure that no
vibecoded bad PR gets through, only the good ones.

I'm open to discussion but let's keep it calm here...

(Oh also, this PR fixes the link at the top of the PR template to link
to our contributing page and not Cinny's.)

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-22 21:27:38 +00:00
7w1 8d16b53466 chore(ci): group dependabot npm major updates (#480)
### Description

Group npm Dependabot version updates into separate major and non-major
PR buckets so routine updates stay consolidated while breaking changes
remain isolated.

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-22 21:13:40 +00:00
integralfunction d9924e2ad4 add changeset 2026-03-22 15:43:05 -04:00
hazre 4444c078c3 chore(ci): remove redundant dependabot npm patterns 2026-03-22 20:38:16 +01:00
hazre 6ed96f3cb9 chore(ci): group dependabot npm updates by semver 2026-03-22 20:35:17 +01:00
integralfunction 943f0e942a Fix touchpad zooming in image viewer 2026-03-22 15:28:18 -04:00
Rose e8559efc8b Add maskable icons for better iOS/Android PWA appearance (#473)
### Description

I've added maskable icons to the selection of app icons. Maskable icons
are designed to be cropped into any shape, like on various Android
launchers, and this distinction additionally makes them work well on
iOS.

Here is a screenshot for comparison, with the new icon on the left :
<img width="522" height="323" alt="image"
src="https://github.com/user-attachments/assets/a647c9a3-c2cf-4f8a-8fee-5a5c15829be5"
/>

In the process of doing this, I've adjusted the structure of the
directories containing the app icons (they are no longer sorted by
Android/Apple, since any platform can pull from either format under
different circumstances). On that note, it looks like many of the
resolutions could probably be pruned... I kept all of the existing ones,
though.

I've also removed the dots from the paths in the HTML file, since this
was causing major issues in the `dev` run. I haven't been able to do a
proper build and test by hosting the /dist folder, so if this does break
anything in that scenario, I can revert that change.

I've tested this to completion on Linux and iOS so far, and I will edit
this part as I test more platforms (assuming it isn't merged by then).
- [ ] Android: Seems to work; a bit stretched, though? Edge might just
be bad at making PWAs. Should try more browsers.
- [ ] Windows:
- [ ] macOS:
- [ ] iPadOS:

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-22 19:19:44 +00:00
hazre 4cd716097a fix(timeline): recover after TimelineReset without scroll jumps 2026-03-22 19:34:41 +01:00
hazre e5d52300b5 docs: clarify editor and recorder internals 2026-03-22 19:18:52 +01:00
Septicity 515e386b74 Make Vite store all icons in public folders and make manifest.json pull from production file locations 2026-03-22 12:50:19 -05:00
hazre d7948d8a20 fix(deps): add overrides for flatted and undici vulnerabilities
- flatted >=3.4.2: fixes CVE-2026-33228 (prototype pollution via parse())
- undici >=7.24.0: fixes 6 CVEs including DoS via WebSocket frame overflow,
  decompression bombs, request smuggling, and CRLF injection
Both affect dev dependencies only (vitest, jsdom, wrangler).
2026-03-22 18:35:35 +01:00
hazre f22a764971 chore: bring comments back 2026-03-22 18:13:09 +01:00
hazre 6df361cae4 chore: merge dev into zvurqmtk 2026-03-22 18:13:09 +01:00
hazre 2af3c72e30 fix: voice message preview seeking not working on firefox 2026-03-22 18:13:09 +01:00
hazre 340d643233 fix: fully tear down voice recorder audio graph 2026-03-22 18:13:09 +01:00
hazre 54ce4aa721 chore: add cloudflared tunnels for easier testing on mobile 2026-03-22 18:13:09 +01:00
hazre 6f0663d194 chore: add changeset 2026-03-22 17:37:17 +01:00
Rose 729e5607eb Update favicon and apple-touch-icon paths to relative
revert changing to absolute paths
2026-03-22 17:20:34 +01:00
Rose 710ddb1cd3 Update description for PWA icon variants PR
Removed formatting as heading, as that will probably break our changelog layout
2026-03-22 17:02:19 +01:00
7w1 90871904af M4A file support (#472)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This adds x-m4a to the supported file type list, this is the same mime
type that element uses for m4a files making Sable compatible with both
uploading them and playing them.

Fixes #

#### Type of change

- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
(Would have been overkill for what it is)
- [ ] I have made corresponding changes to the documentation (Is this
needed for this simple PR?)
- [X] My changes generate no new warnings
2026-03-22 15:29:45 +00:00
Henk 8b9c962379 Merge branch 'dev' of https://github.com/henk717/Sable into dev 2026-03-22 16:27:05 +01:00
Henk d2fe3608f9 m4a: remove unneccesary change 2026-03-22 16:26:54 +01:00
Rose fddb85d008 Merge branch 'dev' into add-black-theme 2026-03-22 16:12:45 +01:00
Rose 6940b6d765 put “.m4a” inside inline code 2026-03-22 16:04:15 +01:00
Henk 68e9563428 m4a: prettier pass 2026-03-22 15:53:17 +01:00
hazre 6bf6d7c099 chore: merge dev into ytxmyzmv 2026-03-22 14:34:13 +01:00
hazre 78c5a45a4c fix: stabilize editor multiline wrap detection 2026-03-22 14:34:00 +01:00
hazre eb0290e6c2 fix: adapt recorder waveform to available width 2026-03-22 14:33:40 +01:00
hazre c061d3ac16 fix: compact and right-align recorder footer 2026-03-22 14:33:40 +01:00
hazre 91f1800ae9 fix: move recorder into multiline footer 2026-03-22 14:33:40 +01:00
hazre 91dce3423d fix: voice recording making the editor container expand 2026-03-22 14:33:40 +01:00
hazre d3fc96644e feat: add multiline editor mode 2026-03-22 14:33:40 +01:00
hazre 3279fdacc8 fix: render AudioMessageRecorder in main content area during mobile recording
Prevents layout shift by rendering the recorder in the editor's main content
area instead of in the after buttons section. Uses replacementContent prop
to swap the editor with the recorder while maintaining proper padding.
2026-03-22 14:33:40 +01:00
hazre 2aa9e5a960 fix: allow stop button to work during mobile voice recording
When recording on mobile, if the pointerup listener was lost (e.g., dragging
off the button), there was no way to stop recording. Now the stop button's
onClick handler works on mobile when recording is active, providing a fallback.
2026-03-22 14:33:40 +01:00
hazre cd80ca642e fix: prevent text selection on following indicator
Prevents mobile voice recording glitch where holding the record button
would select text from the 'following the conversation' row underneath.
2026-03-22 14:33:37 +01:00
Henk 13212d710e m4a changeset 2026-03-22 14:03:07 +01:00
Kamil Wolter 509c6bf738 Added changeset 2026-03-22 13:52:52 +01:00
Kamil Wolter ab33c94e1d Sidebar config discoverability 2026-03-22 13:43:04 +01:00