Commit Graph
480 Commits
Author SHA1 Message Date
Thunderandtaskylizard 8cef4107b0 fix lints
Co-authored-by: taskylizard <[email protected]>
2026-03-24 00:22:55 +02:00
Thunder 17263e712a fixup 2026-03-24 00:22:55 +02:00
Thunder eefc4cdb38 don't nest ternary 2026-03-24 00:22:55 +02:00
Thunder f24bcb1bf5 formatting 2026-03-24 00:22:55 +02:00
Thunder c20479b689 cleanup and finalization ish 2026-03-24 00:22:55 +02:00
Thunder e5906183d7 horrendous state but it kind of works hopefully i can squash these 2026-03-24 00:22:55 +02:00
Shea Duma 6e490460d8 fixed the file description field being way too small when having the new editor 2026-03-23 14:15:00 +02:00
7w1 1451be371c fix my merge :3 2026-03-23 00:22:35 -05:00
7w1 1a7b555baf Merge branch 'dev' into more-styled-events 2026-03-23 00:20:15 -05:00
7w1 e5fe0813ce Merge branch 'dev' into more-styled-events 2026-03-23 00:11:31 -05:00
7w1 03daf81868 feat: reply mention indicator (#465)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

in yet another episode of "mini_bomba yoinks discord features into
sable":
reply mention indicators (the @ before the username, not the yellow
highlight)
<img width="239" height="124" alt="image"
src="https://github.com/user-attachments/assets/95a7a25a-7d70-4913-8cf8-c560f8605fcd"
/>

proudly vibecoded using my brain, while referencing matrix client docs

#### 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-23 05:09:42 +00:00
7w1 43ef337d2c Add knocking support (#470)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This adds support for room knocking to Sable from both space hierarchy
and the room card (as seen when joining from address, clicking a room
mention, or in the featured page of discovery). It additionally adds a
new modal type that may be used for all knock attempts.

Fixes #

#### 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
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-23 05:01:25 +00:00
7w1 4fbcfef90d feat: add editor multiline mode and many edge case fixes (#476)
### Description

Fixes #350

This adds a dynamic multiline layout to `CustomEditor`. When the message
input grows past a single line (word wrap, explicit newlines, or
multiple blocks), the editor shifts from a single-row layout into a
two-row grid, before/textarea on top, with responsive content spanning
the full width below. It drops back to single-row once the text fits on
one line again.

The old `replacementContent` prop (which swapped out the textarea on
mobile during voice recording) is gone. It's replaced by
`responsiveAfter`, which renders inline next to the send button in
single-line mode and moves down to the footer row in multiline mode.
There's also a `forceMultilineLayout` prop for when you want to push
into multiline immediately, which is what we use when the audio recorder
opens. This means the recorder now takes the same code path on desktop
and mobile instead of having a separate mobile-only branch.

A few other things got fixed along the way:

- Holding the record button on mobile was selecting the "following the
conversation" text underneath it. Fixed with `userSelect: none`.
(related to #350)
- The stop button's `onClick` was being skipped on mobile entirely, so
if `pointerup` got lost mid-drag there was no way to stop recording. Now
`onClick` works as a fallback when recording is already active. (a form
of recovery in case more situations like #350 happen again)
- The waveform bar count is now calculated from the actual container
width via `ResizeObserver` instead of a hardcoded number.
- `cleanupMediaRecorder` wasn't being called in all the
stop/delete/restart/error/unmount paths, which could leave the mic track
open. That's fixed.
- Firefox couldn't seek voice messages because `audio/webm` doesn't
include a seek index. Codec preference now puts `audio/ogg;codecs=opus`
first so Firefox records seekable blobs. Also added a `seekTo` helper
that waits for `loadedmetadata` if the audio element isn't ready yet,
and `audio.preload = 'auto'` + `audio.load()` on mount so Firefox parses
metadata right away.
- Multiline wrap detection is now debounced through
`requestAnimationFrame` and uses a `ResizeObserver` on the scroll
container to cut down on flicker and extra re-renders.
- Added cloudflared tunnels for easier testing on mobile

Also sorry for the cursed line height measurer, there was legit no other
way to detect it that didn't cause other issues.

Good amount of this was created with help of AI (like figuring out
options on how to fix the edge cases), especially the edge case unit
tests, but It had to be fixed by hand in many places and frankly I can't
tell you exactly where was what. I've been working on this for couple
days now.. (losing my mind over it)

### Screenshots:

https://github.com/user-attachments/assets/bcff3766-6c60-46c7-ac9e-a8b943a665d3

https://github.com/user-attachments/assets/367cdcc4-666e-4324-8e81-1b415feb0aca

#### Type of change
- [x] 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
- [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:

- [x] 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).
2026-03-23 04:02:36 +00:00
integralfunction 943f0e942a Fix touchpad zooming in image viewer 2026-03-22 15:28:18 -04:00
hazre e5d52300b5 docs: clarify editor and recorder internals 2026-03-22 19:18:52 +01:00
hazre f22a764971 chore: bring comments back 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 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 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
polyjitter 503f7d3d6a Finish RoomCard integration 2026-03-21 18:46:16 -04:00
polyjitter c76383fc65 Added KnockRoomPrompt, added integration to space join, started work on RoomCard integration 2026-03-21 18:43:34 -04:00
polyjitter 3cf07991f4 Convert to uncontrolled text input 2026-03-21 16:59:20 -04:00
polyjitter 0fc7899657 Fixed typo in debug logger name. 2026-03-21 16:30:00 -04:00
polyjitter 92b4549c9a Changed "left" to "knocked" in debug info. 2026-03-21 16:29:39 -04:00
polyjitter 7a6e79a41c Added KnockRoomPrompt. 2026-03-21 16:29:11 -04:00
polyjitter 0bc0869e7e Changed to style override for Default item. 2026-03-21 14:20:22 -04:00
mini-bomba dcead075cd feat: reply mention indicator 2026-03-21 19:18:37 +01:00
polyjitter abc6c98dee Added conditional for "Default" RoomNotificationSwitcher menu item. 2026-03-21 13:58:07 -04:00
Shea Duma a2d532bd2b added styling to replying to pin events 2026-03-21 19:07:44 +02:00
Shea Duma 8452fd5f9d added reply formatting 2026-03-21 17:57:22 +02:00
7w1 1f561c730d fix conditional memo in reply renderer 2026-03-21 00:43:11 -05:00
7w1 497e759eff lint fix 2026-03-20 21:54:16 -05:00
7w1 62de6e26e9 Fix reply message rendering 2026-03-20 21:46:19 -05:00
7w1 5bcfe23b58 Merge pull request #416 from nushea/styling-state-event-replies
Feat: Added Styling to replies to non-messages
2026-03-21 01:17:50 +00:00
Shea Duma 9e77fdb060 reverted to colorful name look 2026-03-20 08:11:40 +02:00
Shea Duma 3646d9e277 fixed bug around deleted encrypted messages showing as undecryptable due to the previewing overpowering the redact look 2026-03-20 08:08:07 +02:00
Shea Duma e32df9be89 displays repliy event properly for regular messages 2026-03-20 06:25:35 +02:00
Shea Duma 9a44faf4dd basic replies for standard event types 2026-03-20 05:53:50 +02:00
7w1 1cd3850a26 lint stuff 2026-03-19 22:18:52 -05:00
7w1 abe6b8d53d Merge pull request #401 from sachin-dul/fix/reduce-mention-highlight-opacity
fix: reduce mention highlight background opacity
2026-03-19 19:52:54 +00:00
Evie Gauthier 1e46dd64c6 Merge pull request #309 from dozro/feat/allow-setting-pmp
Implement per-message profile management and sending with a per-message profile
2026-03-19 19:52:06 +00:00
Sachin Manimekalai Balakrishnan 826554a300 fix: reduce mention highlight background opacity to 25% 2026-03-19 15:07:05 -04:00
Sachin Manimekalai Balakrishnan 54b4da77f7 fix: reduce mention highlight background opacity 2026-03-19 12:07:48 -04:00
7w1 39682b9d3f Merge pull request #365 from dozro/fix/reply-nicks
fix stripping nickname from replies and plain mentions and a lot of documentation
2026-03-19 05:06:43 +00:00
Rye aaa802606d added missing questionmark lol 2026-03-18 22:49:55 +01:00