Commit Graph

6114 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
9349cb63cb feat: #11881, limit room names 2023-08-06 17:32:36 -04:00
Barış Soner Uşaklı
ec0747fd0d fix parent updates 2023-08-06 10:36:57 -04:00
Barış Soner Uşaklı
9ba6dda8bf handle delete/restore/edit messages 2023-08-06 10:13:33 -04:00
Barış Soner Uşaklı
0316f324e7 feat: add toMid to chat messages 2023-08-06 02:33:28 -04:00
Barış Soner Uşaklı
e2a198c59a fix 0 timeouts 2023-08-04 13:35:34 -04:00
Barış Soner Uşaklı
acef5e3343 feat: add category selector to analytics page
closes #11878
2023-08-04 13:22:48 -04:00
Barış Soner Uşaklı
2d883cbb6f fix reconnect toast taking space when no visible 2023-08-04 11:42:46 -04:00
Barış Soner Uşaklı
7a29c2eb2e fix reconnect alert fade and move it to core 2023-08-04 09:57:31 -04:00
Barış Soner Uşaklı
881a28eb79 fix: #11875, simplify alerts and show progress
add alerts.info and alerts.warning
2023-08-03 16:09:53 -04:00
Julian Lam
007d735f92 fix: bug where api module would throw if response contained no content-type header 2023-08-03 12:16:03 -04:00
Barış Soner Uşaklı
856754a5aa dark theme acp 2023-08-02 17:08:14 -04:00
Barış Soner Uşaklı
f4e2e6176e fix: chat mark read regression 2023-08-01 21:19:19 -04:00
Barış Soner Uşaklı
82562bec44 fix: fix escaped characters in tooltips, fix priv checks in tooltips
closes #11862, closes #11857
2023-08-01 11:25:37 -04:00
Opliko
b709ed9e63 feat: move to npm fontawesome dependency and support fa pro (#11820)
* feat: move to npm fontawesome dependency

* feat: move shims to a separate file

* fix: thin style prefix

* feat: proper style and FA pro handling in icon selector

* docs: add fontawesome properties to openAPI

* fix: default for styles

* feat: select all styles by default

Turns out browsers lazy-load fonts.
So since the actual CSS for each style is small, there is no perf reason for defaulting to free styles for FA pro users.
This means they'll have to only change one setting.

Still, the option to select styles remains for those who want it.

* fix: remove console.log
2023-07-31 11:22:09 -04:00
Barış Soner Uşaklı
97127092b5 hide search 2023-07-28 13:51:57 -04:00
Barış Soner Uşaklı
11bfeaf130 feat: #11850, chat msg search 2023-07-28 10:56:25 -04:00
Barış Soner Uşaklı
5a8b4125c7 fix: #11847, typo in markNotification 2023-07-27 10:53:15 -04:00
Barış Soner Uşaklı
f359a76702 feat: #11814, dont check content len for admins 2023-07-26 09:58:16 -04:00
Barış Soner Uşaklı
907c5fa687 feat: closes #11843, refresh search after changing filters 2023-07-26 09:42:10 -04:00
Barış Soner Uşaklı
ac027387ec feat: #11842, ability to change reputation of users 2023-07-25 14:32:26 -04:00
Barış Soner Uşaklı
e2fa8cf367 fix: #11837, use userslug for check 2023-07-25 12:59:11 -04:00
Barış Soner Uşaklı
61f036ce1d Chat notifs (#11832)
* first part of chat notifs

* moved default notif to manage page

* spec

* notifs

* delete settings on room delete
2023-07-21 15:31:34 -04:00
Barış Soner Uşaklı
f7ae8963ce https://github.com/NodeBB/NodeBB/issues/11818 2023-07-19 19:50:41 -04:00
Barış Soner Uşaklı
3fcbc138ac add deprecation message 2023-07-19 08:05:34 -04:00
Barış Soner Uşaklı
0dce4c46b5 https://github.com/NodeBB/NodeBB/issues/11818 2023-07-19 04:31:19 -04:00
Barış Soner Uşaklı
86dd04d5fd get rid of tooltips before refreshing list 2023-07-18 09:46:51 -04:00
Barış Soner Uşaklı
91642cb324 feat: allow multiple room owners, closes #6503 2023-07-17 22:42:00 -04:00
Barış Soner Uşaklı
165b0f8565 fix: closes #11806, fix code blocks 2023-07-15 21:19:07 -04:00
Barış Soner Uşaklı
4c311502a2 fix: allow escape to close chat modals 2023-07-15 20:04:15 -04:00
Barış Soner Uşaklı
539a4d437c Merge branch 'master' into develop 2023-07-15 15:52:49 -04:00
Barış Soner Uşaklı
562e4d6e43 fix: #11802, fix anchor ids in acp settings 2023-07-15 15:07:09 -04:00
Barış Soner Uşaklı
f0775651b9 only update user list if its open 2023-07-14 13:01:41 -04:00
Barış Soner Uşaklı
911ef0581c feat: show online users at the top of userlist and update
when they enter/leave
2023-07-14 11:19:57 -04:00
Barış Soner Uşaklı
adb3a5e64e fix: client side js crash 2023-07-13 21:40:33 -04:00
Barış Soner Uşaklı
5f43605e4d move imports to top 2023-07-13 19:53:26 -04:00
Barış Soner Uşaklı
840792ae35 fix: #11797, update title on chat switch 2023-07-13 19:35:23 -04:00
Barış Soner Uşaklı
265d8846c2 only sort rooms inside room list 2023-07-13 12:37:28 -04:00
Barış Soner Uşaklı
4782764aee fix mobile mobile bar
fix user count if user just joined
2023-07-12 19:36:30 -04:00
Barış Soner Uşaklı
9149a9a2cb fix: mobile back button 2023-07-12 17:13:07 -04:00
Barış Soner Uşaklı
547bde8939 cache fixes
on newRoom and deleteRooms clear cache
add some checks for empty groups list
2023-07-12 16:35:46 -04:00
Barış Soner Uşaklı
9b901783fa Chat refactor (#11779)
* first part of chat refactor

remove per user chat zsets & store all mids in chat:room:<roomId>:mids
reverse uids in getUidsInRoom

* feat: create room button

public groups wip

* feat: public rooms

create chats:room zset
chat room deletion

* join socket.io room

* get rid of some calls that load all users in room

* dont load all users when loadRoom is called

* mange room users infinitescroll

dont load all members in api call

* IS for user list

ability to change groups field for public rooms
update groups field if group is renamed

* test: test fixes

* wip

* keep 150 messages

* fix extra awaits

fix dupe code in chat toggleReadState

* unread state for public rooms

* feat: faster push unread

* test: spec

* change base to harmony

* test: lint fixes

* fix language of chat with message

* add 2 methods for perf

messaging.getTeasers and getUsers(roomIds)
instead of loading one by one

* refactor: cleaner conditional

* test fix upgrade script fix

save timestamp of room creation in room object

* set progress.total

* don't check for guests/spiders

* public room unread fix

* add public unread counts

* mark read on send

* ignore instead of throwing

* doggy.gif

* fix: restore delete

* prevent entering chat rooms with

meta.enter

* fix self message causing mark unread

* ability to sort public rooms

* dont init sortable on mobile

* move chat-loaded class to core

* test: fix spec

* add missing keys

* use ajaxify

* refactor: store some refs

* fix: when user is deleted remove from public rooms as well

* feat: change how unread count is calculated

* get rid of cleaned content

get rid of mid

* add help text

* test: fix tests, add back mid

to prevent breaking change

* ability to search members of chat rooms

* remove

* derp

* perf: switch with  partial data

fix tests

* more fixes

if user leaves a group leave public rooms is he is no longer part of any of the groups that have access

fix the cache key used to get all public room ids

dont allow joining chat socket.io room if user is no longer part of group

* fix: lint

* fix: js error when trying to delete room after switching

* add isRoomPublic
2023-07-12 13:03:54 -04:00
Barış Soner Uşaklı
edd8ca997f Merge branch 'master' into develop 2023-07-12 10:59:39 -04:00
Barış Soner Uşaklı
f2152953cd add displayname to parent posts 2023-07-12 10:40:25 -04:00
Barış Soner Uşaklı
e8b40b5884 fix persona defaults
fix missing theme:id
2023-07-12 10:20:20 -04:00
Barış Soner Uşaklı
0a0de353f1 Merge branch 'master' into develop 2023-07-11 11:27:10 -04:00
Barış Soner Uşaklı
509faa5ecc chore: remove log 2023-07-11 11:04:51 -04:00
Julian Lam
2d016af82f feat: simplified api module handler logic, content-type detection/parsing 2023-07-11 11:03:00 -04:00
Julian Lam
7415b16d2a refactor: use fetch() throughout, instead of jQuery .ajax() 2023-07-10 16:45:05 -04:00
Julian Lam
8a53182657 fix: fetch handler not passing back errors or success payloads 2023-07-10 16:45:05 -04:00
Julian Lam
ed99ea20cb feat: allow FormData object to be passed in to the API module
Currently, only objects can be passed in, and it is automatically serialized into json and sent via jQuery .ajax().

This PR extends the module so a FormData object can be passed in, and updates the module so it uses Fetch API instead of jQuery.

At this time regular requests continue to use jQuery for backwards compatibility.

Use case: file uploads via API.
2023-07-10 16:45:05 -04:00