Commit Graph
6704 Commits
Author SHA1 Message Date
hazre 110e615d51 test: restore mocks after oxlint migration 2026-04-19 15:56:51 +02:00
hazre 87da39efc6 Expand settings link release notes 2026-04-19 13:36:29 +02:00
hazre e4c2e0ed19 Move send-time link rewrites behind transform boundary 2026-04-19 13:01:33 +02:00
hazre 1072ece46f Ignore malformed settings focus ids 2026-04-18 18:28:25 +02:00
hazre 42a9114983 Rewrite copied settings links on send 2026-04-18 18:28:20 +02:00
hazre 4dbdb6fcc9 Harden settings link parsing and rendering 2026-04-18 18:27:16 +02:00
7w1 f2bd03f427 add promise to plugins
and disable always-return because its annoying
2026-04-17 16:36:47 -05:00
7w1 40bb35f34c linting awayy 2026-04-17 16:23:59 -05:00
7w1 144e148154 many lint fixes 2026-04-17 14:09:04 -05:00
7w1 760b19ea1d more linting 2026-04-17 12:44:11 -05:00
7w1 9c13aaa557 knip ignore oxlint config, fix array issues 2026-04-17 12:34:20 -05:00
7w1 9636e7389d swap to .config.ts and remove useless script and pushnotification lint fixes 2026-04-17 12:30:04 -05:00
7w1 27eaadf9ae typecheck and linting fixes 2026-04-17 00:37:15 -05:00
7w1 b13c9b61d4 formatting 2026-04-16 22:38:18 -05:00
7w1 1717ca872f migrate to oxlint and oxfmt
ran formatter
fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
2026-04-16 22:15:13 -05:00
7w1 f6f63253fa fix(caddy): add cache-control headers for static assets, service worker, and index.html (#609)
> Related to closed PR #548 (`fix/media-error-handling`), which was
split into smaller focused PRs.

### Description

Without explicit `Cache-Control` headers, browsers apply heuristic
caching to all responses — including `sw.js` and `index.html`. This
causes stale service workers and stale app shells to persist after a
deploy. Three header rules added to the Caddyfile:

- `/assets/*` — `public, max-age=31536000, immutable`: content-hashed
filenames change on every build, so these are safe to cache permanently.
- `/sw.js` — `no-cache`: must always be revalidated so the browser picks
up SW updates promptly.
- `/index.html` — `no-cache`: must always be revalidated so the browser
gets the latest asset hashes on load.

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
- [x] I have commented my code, particularly in hard-to-understand areas
- [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).

The cache header rules were partially AI assisted. I verified the
`immutable` directive is appropriate for content-hashed assets and that
`no-cache` (revalidate-always, not no-store) is correct for `sw.js` and
`index.html`.
2026-04-16 15:10:48 +00:00
7w1 b8ef2418fa fix(pwa): re-enable Workbox precaching (remove injectionPoint override) (#611)
> Related to closed PR #548 (`fix/media-error-handling`), which was
split into smaller focused PRs.

### Description

`injectionPoint: undefined` was set in `vite.config.ts` to silence a
Workbox `AssertionError` about multiple `self.__WB_MANIFEST` occurrences
(an `if` guard in `sw.ts` plus the `precacheAndRoute()` call = two
matches; Workbox requires exactly one). The unintended consequence:
Workbox never injected the precache manifest, so **no assets were
precached** — every cold start hit the network instead of serving from
cache, and offline use was broken entirely.

Fix: remove the `if` guard in `sw.ts` (leaving exactly one
`self.__WB_MANIFEST` reference) then remove `injectionPoint: undefined`
from `vite.config.ts` to restore normal precaching behaviour.

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
- [x] I have commented my code, particularly in hard-to-understand areas
- [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).

The root cause diagnosis (two `self.__WB_MANIFEST` references causing
Workbox to silently skip injection) was identified with AI assistance. I
verified the fix by checking Workbox's `injectionPoint` behaviour and
confirming precaching was restored.
2026-04-16 15:10:07 +00:00
7w1 618d71bc5d Fix the first message showing as empty because it is expecting a prevContent (#685)
<!-- 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 first message showing as empty because it is expecting a
prevContent

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
- [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. -->
Having a hard time to think of a pun here made me optimize the fix
instead.
2026-04-15 19:44:47 +00:00
hazre bf30f94bf1 Remove copy settings links from dynamic settings rows 2026-04-15 19:10:33 +02:00
hazre fcf44ffdd3 Change settings links to use explicit markers 2026-04-15 18:19:50 +02:00
Evie Gauthier 8ea42131ed Merge branch 'dev' into fix/workbox-precaching 2026-04-15 11:48:19 -04:00
7w1 7783707d87 fix(ui): suppress button hover transform inside VList rows to prevent smearing (#614)
> Related to closed PR #598 (`fix/perf-rerender-reduction`), which was
split into smaller focused PRs.

### Description

Buttons inside VList rows were applying a CSS `transform` on `:hover`.
Because VList row elements use `position: relative` with `will-change:
transform` for virtualisation, the button transform was composited
against the row's own transform layer, producing a visual smear — the
button appeared to shift or blur while the row stayed in place.

Fix: add a scoped CSS override in `General.css.ts` that resets
`transform: none` on `:hover` for buttons inside VList row containers.

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
- [x] I have commented my code, particularly in hard-to-understand areas
- [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).

The CSS override was partially AI assisted. I identified the smearing
symptom and verified that the transform interaction between VList row
layers and button hover state was the cause before applying the fix.
2026-04-14 22:28:41 +00:00
7w1 0ae344aa6e fix spamming the abbreviation crashing sable (#665)
<!-- 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. -->
Checks if the click is real and returns; if it isn't

Fixes #588

#### 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
- [x] 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. -->
A Cupid with a Yellow Rose hit me with its arrow that had fix wrapped
around the shaft <3
2026-04-14 22:26:21 +00:00
Septicity 47ccb529d4 Make double tap gestures ignore clicks that are *too* fast (accidental, finger skidding, etc.) 2026-04-14 05:25:33 -05:00
Septicity 2d57445fe0 Make pinch zoom gesture not trigger double tap gesture 2026-04-14 05:23:38 -05:00
Septicity e7539b5570 Move image/container resize logic to useImageGestures.ts; make double tap to zoom work properly again 2026-04-14 04:49:23 -05:00
Evie Gauthier 2db7b605a4 refactor(css): simplify VList hover transform overrides
The catch-all [data-index] button:hover and [data-index] [role="button"]:hover
selectors already cover every button variant inside VList items, making the
intermediate class-specific selectors redundant. Remove them.
2026-04-13 23:57:51 -04:00
Evie Gauthier 7e0b220bef chore: add changeset for vlist-hover-transform 2026-04-13 23:57:50 -04:00
Shea Duma 472b822eea smolest fix :plead::plead::plead: 2026-04-14 03:15:02 +03:00
Shea Duma f70d9a99b4 smoler fix :plead::plead: 2026-04-14 03:12:00 +03:00
Shea Duma 294103f00a smol fix :plead: 2026-04-14 03:02:32 +03:00
Septicity 30ab99f1ba Restore original image viewer behavior by automatically refitting to container until manually moved 2026-04-13 16:10:49 -05:00
Septicity 2b20dcf8e6 Make zoom input editable by typing (moved View Original Size functionality to new button) 2026-04-13 14:03:37 -05:00
Septicity 1233421e0f Add reset button to image viewer zoom controls 2026-04-13 14:03:37 -05:00
Septicity 37f1105ca2 Make dragging images more responsive (Disable transition when dragging) 2026-04-13 14:03:37 -05:00
Septicity 76a59e389c Fix immediate zoom animation when opened image is larger than the viewer container container 2026-04-13 14:03:37 -05:00
Septicity 81358cba59 Change default Image Viewer rendering style to "pixelated" 2026-04-13 14:03:37 -05:00
Septicity 74ed06ea4a Initial rework of Image Viewer zoom 2026-04-13 14:03:37 -05:00
7w1 c96947b746 fix - statuses sticking, and badge rendering (#664)
<!-- 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. -->
Fix statuses sticking from optimization and badge showing the wrong pfp
in the DM list

(same 2 'people' in this chat, both dm chat, showing the right pfp with
their statuses fixed)
<img width="317" height="164" alt="image"
src="https://github.com/user-attachments/assets/5fd789bb-0aba-4a5b-bf28-70ba4bdd0d22"
/>

Fixes Issue mentioned in the space

#### 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
- [x] 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. -->
A sleep paralysis demon moved my body as to type the fix
2026-04-13 00:10:24 +00:00
hazre f616a00da5 build: use patched tauri-typegen 2026-04-12 20:59:03 +02:00
Shea Duma aafa651966 forgot the console log 2026-04-12 11:02:48 +03:00
Shea Duma b4fef40037 added md 2026-04-12 10:50:50 +03:00
Shea Duma 32a165a43e added setting for only showing one preview per legacy view 2026-04-12 10:47:09 +03:00
Shea Duma 9310e5c07c moved embed settings to their own section 2026-04-12 10:31:21 +03:00
Shea Duma 471e77e15f fix showing multiple previews 2026-04-12 10:18:52 +03:00
Shea Duma e16d96fab4 fix issue #588 2026-04-12 04:02:21 +03:00
Shea Duma 0b658e671b proper fix for more wide presence issues too! 2026-04-12 03:06:57 +03:00
hazre f9e6a72445 build: update tauri stack for dbus 2026-04-12 00:30:23 +02:00
hazre 1963bbdfc4 fix: add linux startup env workaround 2026-04-11 23:46:18 +02:00
hazre d54e671880 refactor: add tauri-aware fetch wrapper 2026-04-11 20:08:55 +02:00