292 Commits

Author SHA1 Message Date
Roardom 4d263a50b9 fix: fetch chatbox messages when switching from channel -> pm -> channel
`state.chat.room` is not changed when moving to a pm, so when returning back to a channel, it remains unchanged. When the room id doesn't change, it doesn't trigger `fetchMessages` so the messages remain on the pm instead of the channel.
2025-12-03 06:42:19 +00:00
Roardom e5ff7d52a9 fix: prevent chatbox from loading messages twice
Anything that directly changed chatrooms via changeRoom() would cause messages to be fetched twice. Change code so that they change the `state.chat.room` target instead, which triggers the function without causing duplicate requests.
2025-11-18 05:40:28 +00:00
Roardom d13f471a5d fix: switching chatrooms with dropdown
fixes #5068
2025-10-19 00:22:04 +00:00
Roardom ec9b19ffbf refactor: use boolean for user audible
Instead of int.
2025-09-30 06:58:59 +00:00
Roardom dd7fa0ebd3 refactor: remove unused save variable from chatbox 2025-09-03 03:32:13 +00:00
HDVinnie 0d48303afd Merge pull request #4885 from Roardom/improve-bbcode-code-blocks 2025-08-04 12:34:53 -04:00
Roardom b19f938fdb update: bbcode code styles
Add clipboard copy button, allow horizontal scrolling for long code lines, make monospace fonts consistent
2025-08-04 06:12:33 +00:00
Roardom cb467c2db8 fix: closing chatbox tab triggers chat status update
For some reason, alpinejs triggers this even though the property doesn't change. Probably some bug. I looked into alpinejs, which itself uses vue's reactivity package, but I couldn't figure it out.
2025-07-31 06:24:27 +00:00
HDVinnie 85241a2b7f Merge pull request #4859 from Roardom/chatbox-status-refactor
(Refactor) Chatbox user chat status
2025-07-20 23:49:38 -04:00
HDVinnie b35b255540 Merge pull request #4857 from Roardom/chatbox-messages-map
(Refactor) Use map for chatbox messages
2025-07-20 23:47:21 -04:00
Roardom 820946c2b6 refactor: chatbox user chat status
Only save the user's chat status in one place, and sync it with the server when it's updated.
2025-07-20 10:18:17 +00:00
Roardom 1e93231edb refactor: use map for chatbox messages 2025-07-20 06:50:54 +00:00
Roardom ff65aee92c remove: unused chatbox boot
It's fine to just have an empty list if fetching echoes errors.
2025-07-19 03:40:20 +00:00
Roardom 64c46061ce update: use maps for chatbox users 2025-07-18 12:42:07 +00:00
HDVinnie 2d08973a2a Merge pull request #4844 from Roardom/remove-chatbox-bots 2025-07-18 08:38:47 -04:00
HDVinnie cde2352fdc Merge pull request #4843 from Roardom/remove-legacy-user-tab 2025-07-18 08:38:13 -04:00
HDVinnie 9abb2aa599 Merge pull request #4841 from Roardom/remove-chatbox-connecting 2025-07-18 08:37:38 -04:00
HDVinnie 3e44ae8513 Merge pull request #4840 from Roardom/remove-deprecated-chatbox-field 2025-07-18 08:37:14 -04:00
HDVinnie 803e8c3278 Merge pull request #4839 from Roardom/remove-chatbox-active-message-limit 2025-07-18 08:36:53 -04:00
Roardom 8cdfff5a9a remove: unused chatbox bots
These values are only written, never read.
2025-07-18 09:08:40 +00:00
Roardom 08e464918c remove: legacy chatbox user tab remnants
This is no longer a tab, but can be shown whenever, so we no longer need logic to check if it's the current user tab and to hide buttons if the user tab is currently displayed.
2025-07-18 08:54:57 +00:00
Roardom fdfeac0e78 remove: chatbox connecting status
It causes a flash of content disappearing and reappearing. It looks far better for the old messages to remain on the screen for an extra half second then to hide the messages when switching chatbox tabs. It also looks better when first loading the home page to have no messages at first and have a blank chatbox window for half a second instead of the chatbox window disappearing. When this happens, the featured torrents flash in to fill up the empty space which looks glitchy.
2025-07-18 07:36:38 +00:00
Roardom 7ccabca554 remove: chatbox frozen attribute
This attribute was used to prevent chatbox scrolling while hovering over it and new messages are received back when JS was used to prevent this. In 7487869, it was changed from JS to a combination of HTML and CSS, so it's no longer needed.
2025-07-18 07:19:17 +00:00
Roardom 74706cbbc8 remove: chatbox active message limit
This functionality never worked in the vue.js chatbox and personally would rather chatbox not function like this. This functionality truncates the chatbox to the latest 100 messages every time you send a message.
2025-07-18 07:08:40 +00:00
Roardom e9046381fc remove: redundant chatbox bbcode size validation
We already clamp the font size when converting the bbcode to html. Also, we don't validate this anywhere else such as forum posts or torrent descriptions.
2025-07-18 06:44:36 +00:00
HDVinnie dbc2484315 Merge pull request #4832 from AnabolicsAnonymous/chatbox-autoscroll
(Remove) Chatbox autoscroll
2025-07-15 20:31:17 -04:00
AnabolicsAnonymous b2a187ecb0 remove: scrollToTbottom function from chat 2025-07-15 18:24:26 -05:00
unit3d-bot 586b61f515 automation: prettier blade ci 2025-07-15 05:43:54 +00:00
AnabolicsAnonymous ca6dd79e2a chore: clarify variable names 2025-07-15 00:42:56 -05:00
AnabolicsAnonymous 79523a3ad9 fix: remove event assignment to typing username 2025-07-14 23:28:18 -05:00
AnabolicsAnonymous aa04a97212 chore: clarify variable names 2025-07-14 22:34:25 -05:00
AnabolicsAnonymous c1403c61da refactor: use set instead of array for activePeer 2025-07-12 13:34:40 -05:00
AnabolicsAnonymous 4be8dd99af update: move activePeer to array and group typing chatters 2025-07-11 20:21:58 -05:00
HDVinnie 903f3a46e9 Merge pull request #4820 from AnabolicsAnonymous/message-timestamp
(Fix) Restore Chat Message Timestamps & Channel Swapping
2025-07-11 11:56:47 -04:00
AnabolicsAnonymous 506450ba51 update: fix channel message merging 2025-07-08 20:02:58 -05:00
AnabolicsAnonymous 4861dc9094 update: restore message timestamp tick 2025-07-08 19:50:06 -05:00
unit3d-bot 8f0ca936a2 automation: prettier blade ci 2025-07-09 00:11:23 +00:00
AnabolicsAnonymous 9d106e9eef fix: allow messages to be sent with user list toggled 2025-07-08 19:10:02 -05:00
Roardom 2216253f93 fix: add missing leaveTarget function from chatbox alpinejs refactor 2025-06-24 06:10:31 +00:00
HDVinnie 0d20c9898d chore: prettier/larastan ci 2025-06-18 15:22:03 -04:00
HDVinnie d55488b74c refactor: chatbox to alpinejs
- This removes Vue completely from unit3d.
2025-06-18 15:08:53 -04:00
HDVinnie 6057a0b303 Merge pull request #4638 from Roardom/fix-chat-bbcode-styles 2025-04-08 11:01:47 -04:00
Roardom 8ffe03e2d9 fix: bot message bbcode styles 2025-04-07 17:48:12 +00:00
Roardom 0222c14d39 add: buttons to horizontally scroll poster row 2025-04-07 17:26:08 +00:00
Roardom 5c416d75d4 refactor: add alpine tabs component 2025-04-07 17:24:15 +00:00
Roardom 2d9125dbb7 fix: bbcode styles in chatbox messages 2025-04-07 17:18:13 +00:00
Roardom b3a9f48853 chore: format files
Not sure why this wasn't done previously.
2025-03-16 22:55:24 +00:00
Roardom 32cf8da4db refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
2025-03-16 22:55:24 +00:00
HDVinnie 642a8d5808 Blade Style Change (Prettier Blade CI) 2025-03-05 13:19:05 +00:00
Roardom eb476eee3c fix: remaining /files/img hardcoded urls
Regression from #4497
2025-03-05 13:17:50 +00:00