Commit graph

2217 commits

Author SHA1 Message Date
Hazelnoot
dd95d4a2d6 merge: Avoid use of <template> as a child of <TransitionGroup> (resolves #1059) (!1049)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1049

Closes #1059

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-27 17:12:45 +00:00
Hazelnoot
93d51b8fc1 merge: Fix translate button (!1047)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1047

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-27 17:12:23 +00:00
Hazelnoot
eb760e63bc fix lint errors 2025-05-26 22:21:36 -04:00
Hazelnoot
1cc9afc555 avoid use of <template> as a child of <TransitionGroup> 2025-05-25 18:52:44 -04:00
Hazelnoot
f8e7e08809 fix clip / translate button styling in MkNoteSub / SkNoteSub 2025-05-25 18:49:22 -04:00
Hazelnoot
cc17e1b5ab fix Sub note toolbar not stopping click on mobile 2025-05-25 18:49:22 -04:00
Hazelnoot
5412ae27a6 add clip and translate buttons to MkNoteSub / SkNoteSub 2025-05-25 18:49:22 -04:00
Hazelnoot
b5357ac90d disable "translate" button after translating 2025-05-25 18:49:22 -04:00
Hazelnoot
2c8c650216 fix "translate" and "clip" buttons opening the note on mobile 2025-05-25 18:49:22 -04:00
dakkar
9c89c91ded handle "follow" notifs from deleted user
the backend should not send these, but still, let's not explode
2025-05-25 12:35:13 +01:00
Hazelnoot
b6a71d2362 merge: make DynamicNote less dynamic - helps with #1059 (!1041)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1041

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-24 21:08:38 +00:00
Marie
b05b4ec74d merge: Cleanup admin user UI (!1012)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1012

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-23 11:21:29 +00:00
dakkar
7c61b57939 make sure that the DynamicNote component is *not* computed
my current hypothesis to explain #1059:

- we have a timeline, with some notes
- a new note arrives on the websocket
- we replace the items in the pagination inside the timeline
- vue starts re-rendering the notes, using the `:key` values to know
  which ones to leave there and which ones to move / add / delete
- since DynamicNote is `computed`, every time vue needs to instantiate
  it, it does an `await`
- so if another note is waiting in the websocket buffer, it gets
  processed *while vue is rendering*
- processing the new note cause the `items` map (and the array
  computed from it) to be replaced
- at this point vue may well get a new iterator from the start of the
  new list of items, after it had already decided that the first few
  notes did not need to be changed
- which manifests as new notes appearing in the middle of the
  timeline!
- and after enough new notes have arrived, all the old notes are out
  of the items map, so their elements have all been deleted, and
  "normality" is restored

this makes sense in my head, let's see if this change actually fixes
the problem
2025-05-21 18:27:39 +01:00
Hazelnoot
28551c8103 use config.url instead of "https://${config.host}" 2025-05-21 08:27:23 -04:00
Hazelnoot
dc1adcc491 skip resolving preview when a link is known to be recursive 2025-05-20 21:37:25 -04:00
Hazelnoot
38d4a7fd56 don't recursively render note previews 2025-05-20 21:21:42 -04:00
Hazelnoot
6c77be64b6 merge: Fix "fetch linked note" button for AP previews (!1037)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1037

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-20 22:03:53 +00:00
Hazelnoot
e167ddd72d fix unknownUrl value 2025-05-19 18:50:13 -04:00
Hazelnoot
be1326372b add missing import file extension 2025-05-19 18:27:20 -04:00
Hazelnoot
f8c53466ef make sure that the "fetch linked note" button actually remembers that the note is fetched 2025-05-19 10:57:42 -04:00
Hazelnoot
c412f5d69a extract common translation UI into SkNoteTranslation.vue 2025-05-18 14:51:22 -04:00
Hazelnoot
cbb0f5a964 fix type errors in note translation source 2025-05-18 14:03:40 -04:00
Hazelnoot
10a2f32947 fix spurious "translation failed" errors in MkNoteSub 2025-05-18 14:01:47 -04:00
Marie
1801cbd278 merge: set transparent background for naked containers - fix 1063 (!1033)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1033

Closes #1063

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-17 19:53:48 +00:00
dakkar
d9f5c108b0 set transparent background for naked containers - fix 1063
`MkContainer` gained a background for its `.content` element, but that
needs to be overridden by the `naked` option (used for transparent
widgets)
2025-05-17 13:26:16 +01:00
Hazelnoot
2fdec0ce29 add option to put Translate button in the note toolbar 2025-05-16 20:00:48 -04:00
Hazelnoot
b9109e5bb3 fix prop type for MKRolePreview 2025-05-16 17:40:10 -04:00
Hazelnoot
2da1590e8a add "accent" styling to MkButton 2025-05-16 17:39:43 -04:00
Hazelnoot
fd339717c7 respect animation prefs in MkNumber 2025-05-16 17:39:43 -04:00
dakkar
323ad31605 await reverseConcat
before d7784ea4ff
`moreFetching.value=false` happened after the `nextTick` inside
`reverseConcat` had completed, but after that commit, it happens
immediately (as part of the try/finally)

this _probably_ doesn't matter, but let's avoid changes we didn't
intend
2025-05-15 15:11:18 +01:00
Hazelnoot
8348a36f24 cleanup, simplify, and merge duplicate word mute implementations 2025-05-13 22:58:24 -04:00
Hazelnoot
b52db71e18 factor out shared word mute logic 2025-05-12 23:28:55 -04:00
Hazelnoot
1a3c6f25a2 simplify access to showSoftWordMutedWord 2025-05-12 21:46:03 -04:00
Hazelnoot
5cb0129c49 show muted words in following feed 2025-05-12 21:46:03 -04:00
Hazelnoot
05e5be8218 show muted words in NoteDetailed / NoteSub components 2025-05-12 21:46:03 -04:00
Hazelnoot
cace4153e4 merge: Make muted post placeholders look clickable (resolves #502) (!1019)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1019

Closes #502

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:37:09 +00:00
Hazelnoot
835e76152e merge: Add pattern checker for word mutes (resolves #1003) (!1020)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1020

Closes #1003

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:33:25 +00:00
Hazelnoot
c6ef944fc6 rename SkWordMuteTest to SkPatternTest 2025-05-10 22:49:23 -04:00
Hazelnoot
32e2a07d66 extract SkWordMuteTest 2025-05-10 22:39:13 -04:00
Hazelnoot
f402fd3313 user appearNote in NoteSub mute placeholders 2025-05-10 21:53:05 -04:00
Hazelnoot
0e4b7c91f1 remove invisible user link from "muted note" placeholder 2025-05-10 21:52:40 -04:00
Hazelnoot
0a0f3c3387 add "clickable" styling for muted note placeholder 2025-05-10 21:50:18 -04:00
Hazelnoot
42d4fc9d97 refactor following feed to avoid circular dependency 2025-05-10 18:40:06 -04:00
Hazelnoot
2d48387f49 pass token in Authorization header instead of i property 2025-05-09 10:56:21 -04:00
Hazelnoot
2acf7fa46d merge: fix "click to open", "number of replies", "oneko" (!1000)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1000

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-05-09 12:37:37 +00:00
Hazelnoot
5101a5662b merge: Autofill reply mentions based on the replies property instead of MFM text (resolves #1045) (!981)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/981

Closes #1045

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-09 09:28:11 +00:00
dakkar
51a07fc6e4 fix "number of replies" 2025-05-09 09:30:45 +01:00
dakkar
9d5e477c9d fix "click to open" 2025-05-09 09:26:02 +01:00
Hazelnoot
d06e1e3080 don't insert mentions for the current user 2025-05-08 16:20:29 -04:00
Hazelnoot
df0d8045d5 fix duplicate mentions and spurious "user is not mentioned" warnings when replying to a DM thread including a user with a capitalized username 2025-05-08 16:20:29 -04:00