Commit Graph
3087 Commits
Author SHA1 Message Date
Shea f35dceea46 Feat show all rooms (#866)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Adds toggle for showing all rooms, allow routing rooms through home when
so desired, and list the rooms by activity

(basically this)
<img width="599" height="463" alt="image"
src="https://github.com/user-attachments/assets/bed8017a-3475-4dec-9c3b-1b3386b3637f"
/>

Fixes #862

#### 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:

- [ ] 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
- [ ] 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. -->
Written with the dread of having to touch the router and fearing
breaking sth that we'll only find out about months after this feature
becomes mundane
2026-05-21 19:48:39 +00:00
Koen Oostveen 652e91acda Fix OIDC logins in the account switcher failing due to the router ignoring login attempts
The router only lets you visit `/home` or the like if `addAccount` is unset,
but this did not account for `loginToken`. Now, if `loginToken` is set,
you visit the `/login/server` route instead of being redirected to `/home`,
allowing the account switcher to work as intended.
2026-05-19 20:54:49 +02:00
Shea Duma d448c752ef add routing 2026-05-19 07:43:00 +03:00
Shea Duma 230c2e719a add option and sorted list 2026-05-19 06:27:11 +03:00
7w1 8fcb3120ed Remove arbitrary bio limit (#863)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Removes the arbitrary bio limit

#### 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:

- [ ] 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
- [ ] 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-05-18 18:22:52 -05:00
7w1 04a4eb52f0 More markdown improvements (#860)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Add support for misskey-flavored markdown color definitions. E.g.
`$[fg.color=f00 bg.color=00ff00 red on green]`.
Fix single new lines after block quotes being block-quoted.
Hardened html parsing in standard input box, should no longer randomly
delete text in arrow brackets (unless valid, properly closed, legal
html).
Fix matrix.to links getting arrow brackets inserted when editing
messages.
Fix mentions breaking after editing messages with mentions. Fixes #858 
Fix emojis not rendering in reply chips.
Fixed starting lists at arbitrary numbers and list markers extending off
screen with long numbers.

#### 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:

- [ ] 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
- [ ] 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).
<!-- 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. -->

Tests were fully AI generated. AI helped with some of the regex which I
then verified and tested.
2026-05-18 18:16:48 -05:00
7w1 a9d20c5a78 Fix tablet layout sidebar filling screen (#864)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes tablet layout sidebar taking up the full screen

#### 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:

- [ ] 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
- [ ] 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-05-18 18:09:17 -05:00
7w1 e378a0fe7a Add image viewer rework (#686)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

I've fixed many issues with the image viewer, while also adding some
intuitive functionality.

Fixes:
- Inline styles that aren't changed dynamically have been moved to the
CSS.
- The Zoom % pill no longer changes size except for manual zoom over
500%. This prevents the +/- buttons from moving as they are being
clicked.
- Transitions are now disabled for manual panning to improve
responsiveness.
- Images are now scaled independently of browser dimensions. This means
that 100% zoom will always refer to the image's native size, and zoomed
images will be rendered at full quality. (Previously, a small browser
window would shrink the base image such that zooming in would make it
visibly blurry.)
- Pinch gestures generally did not work before (as their detection was
usually overridden by the double tap detection, since pinching
inherently involves using two fingers); This should be fixed. (Waiting
for a deployment to test properly!)
- The double tap gesture will no longer be triggered by extremely fast
double taps, to prevent accidental triggers.

Changes:
- The Zoom % pill now allows entering a custom zoom value, rather than
resetting to 100% zoom on click.
- Related to the previous change, there is now a View Original Size
button (with a photo icon) that only appears when you aren't already at
100% zoom.
- With the image scaling changes, I *have* reasonably kept the original
behavior, with alterations to stay intuitive: Until an image being
viewed is manually panned or zoomed (or the view is reset), it is
automatically scaled to fit the container it's in.
- Related to the previous change, there is a Reset View button (with a
refresh icon) that only appears when you have manually panned or zoomed
away from the initial rendered position.
- The default rendering style for images is now `pixelated`; this
preserves detail for smaller images, especially pixel art, and
*shouldn't* be relevant for larger images, but it's a change I'm willing
to revert.

Known issues:
- The Reset View button doesn't animate the transition back to the
original view, but the View Original Size button does. I could not
figure out how to get this to work properly.
- Some functionalities/changes I'd make aren't possible without
project-wide reworks:
- Some of the buttons' functionalities would be much clearer with
tooltips, but *no* components use browser-level tooltips and I don't
feel confident adding the pop-up tooltips used in the sidebar.
- I would add a border to the Download button for better contrast, but
the only "Primary"-colored button I've seen with borders is the Mark All
As Read button, so changing that would require a broader scope.
- Some of these changes may need to be put into the PDF viewer as well,
or perhaps we should combine those two things at some point?
- It feels disingenuous for me to bundle a bug fix with added
functionality, but the process of fixing these bugs led to gaps that
needed to be filled; If necessary, we can try to separate this into two
PRs, but I assume the functionality will be appreciated already.
- This needs a changeset, but I'm not sure exactly how much of this will
make sense to put into it, since it's a fairly big change.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] 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).
<!-- 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. -->
I used AI to help wire gestures correctly and deal with correctly
selectively disabling animation transitions.
2026-05-18 22:42:35 +00:00
7w1 d7912ec397 add setting for pixelated rendering and update changeset 2026-05-18 17:40:18 -05:00
7w1 9f0d0651bf fix: tablet layouts taking full screen 2026-05-18 16:44:12 -05:00
7w1 42e47cf558 fix: removed bio limit 2026-05-18 15:37:17 -05:00
7w1 95493d6f1a fix: lists pushing off screen 2026-05-18 13:22:38 -05:00
7w1 92c270ee2e fix: arbitrary list starts 2026-05-18 13:18:44 -05:00
7w1 7170a1d78f fix typecheck 2026-05-18 12:17:42 -05:00
7w1 c9ff055c24 fix: emojis not rendering in replies 2026-05-18 12:13:38 -05:00
7w1 3ac14ab60e fix: improper order of escapes and html parsing for angle brackets 2026-05-17 22:39:21 -05:00
7w1 34d94af30b changeset and lint 2026-05-17 21:46:39 -05:00
7w1 4c8af8aa3b feat: support misskey-flavored markdown for colors 2026-05-17 21:42:45 -05:00
7w1 58ffeb00b8 fix: html input tag parsing hardening 2026-05-17 21:06:05 -05:00
7w1 66b5efe348 fix: matrix.to links getting arrow brackets added 2026-05-17 20:41:22 -05:00
7w1 db2f11518d fix: block quote new lines 2026-05-17 20:35:21 -05:00
7w1 fdeaf481ef fix: preserve matrix.to mentions when editing 2026-05-17 20:26:26 -05:00
7w1 3ef2a3fa47 attribution comment 2026-05-17 10:57:47 -05:00
Shea a8eee71f24 Perf: banners and room icons (#851)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Add settings for rooms icons showing for every space with the default
leaving it up to the general setting for icons showing, and the rest
overriding it:
<img width="823" height="697" alt="image"
src="https://github.com/user-attachments/assets/7dd3255d-e483-4545-99fc-e14066a867a5"
/>

For the Room currently it will be present inside of the
<img width="810" height="695" alt="image"
src="https://github.com/user-attachments/assets/061d1c84-a1f6-4e3e-a216-77db96ef4063"
/>

It also adds styling to the RoomCard using the banner in preparation of
maybe when it might happen that the associated MSC gets merged into the
spec (as it stands it only works with rooms you are already a member of
as it is stored as a regular state event)
<img width="993" height="1064" alt="image"
src="https://github.com/user-attachments/assets/ed6ac35d-fa28-4292-a1bb-f4fd883a2035"
/>

And it also increases the size of the Vertical resizer bar as they are
the ones that are possible to be seen on mobile and it helps with
gripping them, and separated them into classes better so it might be
more easily changeable with a tweak if so desired.
<img width="536" height="535" alt="image"
src="https://github.com/user-attachments/assets/69661a59-9727-4ced-b165-27afb29c751a"
/>

Lastly it fixes the banner buttons previously being enabled when the
user is missing the permissions to edit the room banner

Fixes #

#### 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)

### 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] 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. -->
Caine (the AI from TADC) gave me swappable parts and trapped me into a
circus if that counts as assistance!
2026-05-16 18:03:27 +00:00
Shea Duma e97b02d707 added changeset, titles to buttons and a border around the download button, and fixed 'bug' with resizing the thing not doing the animation 2026-05-16 14:34:25 +03:00
Shea Duma fde563e46e changed it to zoom to fit to container initially regardless of size sinze with the button its easy to get to the natural size, and it helps for sending pixelart 2026-05-16 14:00:14 +03:00
Shea Duma 6c832a8a8d fix permission check 2026-05-16 13:30:01 +03:00
7w1 cd04625b13 support stable mutual rooms endpoint 2026-05-15 20:49:16 -05:00
Shea Duma 4a2521c233 fix user icon positionings in VCs in collapsed sidebar view 2026-05-16 00:20:25 +03:00
Shea Duma 6da0cdf0b3 i call the failures skill issues because it behaves correctly wo the incertitude 2026-05-15 20:23:43 +03:00
Shea Duma 027f6d22ae add changeset 2026-05-15 20:16:39 +03:00
Shea Duma 30940f2409 add banner to roomCard 2026-05-15 19:15:03 +03:00
Shea Duma f0e175d4bc fixed some banner issues 2026-05-15 10:05:54 +03:00
Shea Duma ac922e1ee4 added resetting space room status and setting for home 2026-05-15 09:03:46 +03:00
Shea Duma b81d2901fc added base setting needed to implement per space sidebar icons 2026-05-15 08:07:00 +03:00
7w1 8de7ad2f61 Fix message load indicator positions (#849)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #835 
Centers the load indicators properly so they dont appear in the top
right.

#### 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:

- [ ] 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
- [ ] 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-05-15 00:03:23 -05:00
7w1 0a577a11c7 fix message load indicator positions 2026-05-14 23:58:05 -05:00
7w1 565d4b384e fix pin concat crash (#848)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Untested fix for #834 , just adds an additional check to make sure that
we aren't trying to concat on an empty array which I think is likely
what caused the crash.

#### 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:

- [ ] 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
- [ ] 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-05-14 23:53:26 -05:00
7w1 0edf45cf93 Fix link editing behaviors (#847)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes the random \<> and links being too aggressive with parsing leading
to the entire markdown structure being seen as part of it and fixes
editing messages with suppressed links not remaining suppressed.

#### 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:

- [ ] 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
- [ ] 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).
<!-- 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. -->

Tests were AI generated.
2026-05-14 23:51:36 -05:00
7w1 e19e0df8f9 formatting 2026-05-14 23:48:10 -05:00
7w1 d04f84ea2a fix pin concat crash 2026-05-14 23:47:55 -05:00
7w1 24a7a9d05c fix link editing behaviors 2026-05-14 23:43:07 -05:00
7w1 5b1fb580d2 satisfy linter 2026-05-14 23:01:23 -05:00
7w1 a64ecd5773 fix reply chips not showing some replies 2026-05-14 22:47:34 -05:00
7w1 dd6d5f4c51 Fix mentions and markdown things (#837)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes room mentions not being linkified.
Fixes markdown headers not working without 2 new lines.
Fixes random lint stuff.

#### 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:

- [ ] 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
- [ ] 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-05-14 21:36:22 -05:00
7w1 daba875a93 formatting and lint things 2026-05-14 15:16:10 -05:00
7w1 542474b80f markdown header fix 2026-05-14 15:05:03 -05:00
7w1 801851a172 fix mentions 2026-05-14 14:55:16 -05:00
7w1 4fe27992d2 fix room pings not looking like @ room 2026-05-14 10:36:18 -05:00
Shea Duma b3c4edcead added small qol changes 2026-05-14 16:02:25 +03:00