Commit Graph
6704 Commits
Author SHA1 Message Date
Shea 0e8fea530c fmt <3
Signed-off-by: Shea <[email protected]>
2026-06-02 13:22:27 +03:00
Shea 107c3fc804 maybe overcomplicated logic for useless text <3
Signed-off-by: Shea <[email protected]>
2026-06-02 13:16:12 +03:00
Shea 9ee6c54707 add respones modal
Signed-off-by: Shea <[email protected]>
2026-06-02 12:20:52 +03:00
Shea 277babcaaf add setting for reverting menu on the plus button
Signed-off-by: Shea <[email protected]>
2026-06-02 10:26:52 +03:00
Shea 1fd451557e add command
Signed-off-by: Shea <[email protected]>
2026-06-02 09:19:49 +03:00
Shea a7ae1a4451 optimizations
Signed-off-by: Shea <[email protected]>
2026-06-01 21:23:30 +03:00
Shea 1d265ba222 add rendering for all options
Signed-off-by: Shea <[email protected]>
2026-06-01 06:28:35 +03:00
7w1 19e3dbcf3c Fix math parsing in color (#910)
<!-- 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 math parsing inside of color blocks not being parsed as math with
color.

#### 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-31 19:46:56 -05:00
Shea 16d67f19d3 style and clear path of the poll dialogue
Signed-off-by: Shea <[email protected]>
2026-05-31 22:37:14 +03:00
Shea 2f610b3565 add poll creation modal
Signed-off-by: Shea <[email protected]>
2026-05-31 04:56:38 +03:00
Shea 607e972e1c add ending polls, and poll ends
Signed-off-by: Shea <[email protected]>
2026-05-30 10:01:28 +03:00
7w1 b706cb9ed3 changeset 2026-05-28 17:41:06 -05:00
7w1 8daf965788 fix math inside of color blocks 2026-05-28 16:37:02 -05:00
Shea 763a3a72cb add poll styling and poll selection
Signed-off-by: Shea <[email protected]>
2026-05-28 08:05:02 +03:00
Shea 7d3dc037cd add basic poll display
Signed-off-by: Shea <[email protected]>
2026-05-27 21:32:23 +03:00
7w1 d012f0a7f6 Fix list markdown behaviors (#906)
<!-- 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 a couple bugs with lists. Indentation levels for nested lists on
edit and lists rendering paragraph tags on new lines when they shouldnt.

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

- [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.
2026-05-26 23:45:38 -05:00
7w1 ee575c0dbd fix: nested list indentation 2026-05-26 23:42:24 -05:00
7w1 b0349b431c fix: lists rendering p tags causing new lines 2026-05-26 23:37:09 -05:00
7w1 744ebda30e Pronoun pill details on hover and adjustable limits (#904)
<!-- 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 #62 
<img width="276" height="60" alt="image"
src="https://github.com/user-attachments/assets/36f7647d-55ab-4d49-9ec1-6538d12743e3"
/>

Also adds options for setting the max pronoun pills and the max display
length per pill.


#### 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. -->
2026-05-25 23:57:00 -05:00
7w1 254cd5e907 Fix crash while scrubbing some audio files (#902)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

I don't think we technically do "scrubbing" but idk any other word for
it.

<!-- 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 crash while scrubbing audio files by pretty much just spamming
infinity checks everywhere and adding a helper to calculate duration
properly (previously the voice message content never specified duration
so it would only appear after the file fully loaded in).

#### 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-25 15:47:08 -05:00
7w1 a2f2707a37 feat: customizable pronoun pill limits 2026-05-24 22:54:54 -05:00
7w1 79cd9bd2bf feat: pronoun pill hover details 2026-05-24 22:29:03 -05:00
7w1 9038386973 Highlight message that you are about to reply to! (#897)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Add a tag called isMarked for allowing marking for arbitrary things that
need to not be pulsating like highlighting or confusable with the right
clicking on a thing

The color is currently color.Other.Overlay but if anyone has any better
unique color idea that would be nice, it has its own class to allow easy
tweaking

(the black highlighting in this case)
<img width="663" height="474" alt="image"
src="https://github.com/user-attachments/assets/b508f0fc-30a3-43bf-a0ec-0b5824234a2d"
/>

Fixes #755

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

### 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. -->
Written with the lights turned on but nobody in there.

Signed-off-by: Shea Duma <[email protected]>
2026-05-25 02:55:25 +00:00
7w1 057203660c Fix unset User Profile cards having incorectly colored text. (#896)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Fixes this:

(how it would look sometimes)
<img width="347" height="309" alt="image"
src="https://github.com/user-attachments/assets/2caac23e-744c-4e8e-8085-72a4c8845daf"
/>

(this is how it should and will look)
<img width="344" height="307" alt="image"
src="https://github.com/user-attachments/assets/053336be-1fea-474c-930d-f23fbbee2adb"
/>

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:

- [ ] 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. -->
Accidentally pressing control enter convinced me to create the PR

Signed-off-by: Shea Duma <[email protected]>
2026-05-25 02:53:30 +00:00
7w1 898d22ca52 changeset 2026-05-24 21:52:32 -05:00
7w1 69315dc2ed fix: various hardening for audio messages to ensure finite-ness 2026-05-24 21:50:15 -05:00
Shea Duma 39bfed2208 highlight to be replied to
Signed-off-by: Shea Duma <[email protected]>
2026-05-23 17:02:43 +03:00
Shea Duma e02f12736d small profile-card fix
Signed-off-by: Shea Duma <[email protected]>
2026-05-23 12:19:37 +03:00
7w1 4c4d146a9f chore: prepare release 1.17.0 (#853)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Features

* Add support for misskey-flavored markdown color definitions. E.g.
`$[fg.color=f00 bg.color=00ff00 red on green]`.
([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Add per Space setting for when to show room icons in sidebar
([#851](<https://github.com/SableClient/Sable/pull/851>) by @nushea)
* Add toggle to list all rooms inside of the home sidebar.
([#866](<https://github.com/SableClient/Sable/pull/866>) by @nushea)

### Change Image Viewer to feel more natural to use.
([#686](<https://github.com/SableClient/Sable/pull/686>) by @7w1,
@nushea, @Septicity)

- Fixed zoom gestures generally not working on mobile.
- Changed the % number in the top right to reflect the zoom of the
original image as opposed to the change from it fitting the container.
- Made the zoom pill allow entering custom values.
- Added a button that zooms you to the original size of the image, and a
button to return to the size that fills the container.
- Added a pixelated image scaling setting: choose Both, Chat, Image
viewer (default), or Neither for crisp nearest-neighbor rendering.
- Transitions are now disabled for manual panning to improve
responsiveness.

## Fixes

* Fixed starting lists at arbitrary numbers and list markers extending
off screen with long numbers.
([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Fix single new lines after block quotes being block-quoted.
([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Fix emojis not rendering in reply chips.
([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Hardened html parsing in standard input box, should no longer randomly
delete text in arrow brackets (unless valid, properly closed, legal
html). ([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Fixed the message loading spinner flickering instead of continuing
during large pagination chunks.
([#895](<https://github.com/SableClient/Sable/pull/895>) by @7w1)
* Fix matrix.to links getting arrow brackets inserted when editing
messages. ([#860](<https://github.com/SableClient/Sable/pull/860>) by
@7w1)
* Fix mentions breaking after editing messages with mentions.
([#860](<https://github.com/SableClient/Sable/pull/860>) by @7w1)
* Fix account switching and logging in with multiple (SSO) accounts
silently failing
([#882](<https://github.com/SableClient/Sable/pull/882>) by
@770grappenmaker)
* Removed the arbitrary bio limit from the bio editor.
([#863](<https://github.com/SableClient/Sable/pull/863>) by @7w1)
* Remove target and rel attributes from outgoing html links.
([#891](<https://github.com/SableClient/Sable/pull/891>) by @7w1)
* Fix tablet layouts having the sidebar fill up the screen.
([#864](<https://github.com/SableClient/Sable/pull/864>) by @7w1)
* Add support for stable mutual rooms endpoint, manually ported from
[this
commit](https://github.com/cinnyapp/cinny/commit/bef267257a28b3be8a96852fed1718f63cf570f9)
by ajbura upstream.
([#852](<https://github.com/SableClient/Sable/pull/852>) by @7w1)

## Documentation

* Docker build tags have been updated: `latest` now tracks the latest
versioned release and `dev` now tracks the dev branch.
([#892](<https://github.com/SableClient/Sable/pull/892>) by @7w1)
v1.17.0
2026-05-22 02:03:10 +00:00
github-actions[bot] 2ad332a25e chore: prepare release 1.17.0 2026-05-22 01:49:13 +00:00
7w1 eebf97bc30 Prevent loading spinner flicker on timeline (#895)
<!-- 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 loading spinner resetting every time a chunk of messages loads
in, now, assuming there's still more to load in the current batch, it
should just continue spinning in one animation.

#### 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-21 20:48:57 -05:00
7w1 451d9f92d0 Fix room pings regression on dev (#894)
<!-- 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 pings not appearing as room pings, again

Internal since its just a regression on dev due to the other fixes with
mentioning people

#### 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-21 20:46:34 -05:00
7w1 6dac5bf4ca fix: prevent loading spinner flicker on timeline 2026-05-21 20:41:40 -05:00
7w1 f77906907e fix: room pings regression on dev 2026-05-21 20:36:48 -05:00
7w1 219d0d1552 Fix block quotes doing mitosis (#893)
should preserve the new lines more accurately and probably fixes a
couple other bugs

<!-- 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 block quotes creating extra block quote lines when editing a
message/bio

Internal because its covered by the existing changesets for this update.

#### 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 updated by AI
2026-05-21 20:07:59 -05:00
7w1 ed1edabdb5 Update latest and dev tags (#892)
<!-- 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. -->

Makes latest the latest versioned release and dev the dev branch (which
is what latest currently was doing)

#### 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
- [ ] 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-21 20:04:34 -05:00
7w1 ed80f656a4 fix: block quotes doing mitosis
should preserve the new lines more accurately and probably fixes a couple other bugs
2026-05-21 20:03:09 -05:00
7w1 aa0dae7600 changeset 2026-05-21 19:50:23 -05:00
7w1 3517f733ff update latest and dev tags 2026-05-21 19:48:01 -05:00
7w1 5272ca8c97 Remove rel and target from outgoing links (#891)
<!-- 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 rel and target attributes from outgoing links

#### 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-21 19:41:09 -05:00
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
7w1 f134ee94b4 enable file nesting in explorer with custom patterns (#886)
### Description

enable file nesting, small quality of life improvement for devs

```json
"explorer.fileNesting.patterns": {
    "package.json": "pnpm-*.yaml, yarn.lock, package-lock.json, .npmrc, .nvmrc, .node-version",
    "tsconfig.json": "tsconfig.*.json",
    "Dockerfile": ".dockerignore",
    ".env": ".env.*",
    "flake.nix": "flake.lock",
    ".gitattributes": ".gitignore"
}
```

#### 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
- [ ] My changes generate no new warnings

### AI disclosure:

No AI was used
2026-05-21 19:25:20 +00:00
7w1 66fe404e03 fix: remove rel and target from outgoing links 2026-05-21 14:14:06 -05:00
Rye 81295f51b9 enable file nesting in explorer with custom patterns
skip-checks: true
2026-05-20 17:09:32 +02:00
Rose 1262994e67 Fix OIDC logins silently failing when switching accounts (#882)
Fix OIDC logins in the account switcher failing due to the router
ignoring login attempts. Closes #40 and probably more related issues.

### Description

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.

Fixes #40
Fixes #284

#### 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
(does not apply)
- [x] I have made corresponding changes to the documentation (does not
apply)
- [x] My changes generate no new warnings

### AI disclosure:

No AI assists.
2026-05-20 03:54:18 +00:00
Koen Oostveen 46dc6e64c4 Add knope changeset 2026-05-20 01:26:44 +02: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
7w1 0009272dc0 formatting 2026-05-18 23:41:56 -05:00
7w1 30798ac266 typecheck and cleanup 2026-05-18 23:25:38 -05:00