Commit Graph

1474 Commits

Author SHA1 Message Date
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ı
e31f5c42ee test: fix 2023-07-08 00:37:04 -04:00
Barış Soner Uşaklı
2791eb8aac fix: group membership methods for guests/spiders
add tests to cover different combinations
2023-06-28 20:55:01 -04:00
Julian Lam
a8399aa23a test: make email requirement flag changes more explicit in tests, so cases do not rely on variable values from other cases 2023-06-21 11:09:10 -04:00
Barış Soner Uşaklı
c638186b33 test: fix another test 2023-06-20 19:24:21 -04:00
Barış Soner Uşaklı
64718d0ce0 test: fix email tests @julianlam 2023-06-20 19:02:46 -04:00
Barış Soner Uşaklı
ad1da0218a Merge branch 'master' into develop 2023-06-20 18:52:36 -04:00
Barış Soner Uşaklı
f2fe7c0686 fix: #11735, crash when making guest reply
to /api/compose route
2023-06-20 18:51:46 -04:00
Barış Soner Uşaklı
86faed6fd3 feat: add vote privs to topic (#11734)
* feat: add vote privs to topic

* add missing awaits
2023-06-20 14:16:17 -04:00
Barış Soner Uşaklı
8ca65b0c78 fix: dont send 200 status on admin upload errors (#11707)
* fix: dont send 200 status on admin upload errors

* test: update test

* bring back both checks for error

* test: add statusCode tests
2023-06-13 12:32:48 -04:00
Barış Soner Uşaklı
db3bff094e fix: #11679, fix username change
only effected usernames with special characters & quotes
2023-06-05 17:11:49 -04:00
Barış Soner Uşaklı
04998908ba Fixes for "validate email" & "send validation email" in ACP (#11677)
* confirmObj changes

dont expire confirm:<code>, add a expires field instead
dont expire confirm:byUid:<uid>

on admin manage users display the users email status
	1. verified
	2. verify email sent (pending)
	3. verify email sent (expired)
	4. no email entered

fix validate email in acp to use
	email in user:<uid> if they have one
	if not check if its in confirm:<code>
	if its not in above cant validate throw error

fix send validate email to use
	email in user:<uid> if they have one
	if not check if its in confirm:<code>
	if its not in above too cant validate throw error

* add back socket.io tests

* test: fix confirm tests

no longer using pexpire
return correct time left on token

* chore: update openapi

* fix: delete call

* test: mget test fixes

* test: fix tests
2023-06-05 12:12:48 -04:00
Barış Soner Uşaklı
d3c5a79d44 fix: #11664, dont create backlinks for quotes 2023-06-01 13:48:12 -04:00
Barış Soner Uşaklı
c3afe44686 Acp redesign (#11639)
* acp sidebar

* gap in nav

* remove shadow

* label fixes

* color fixes

* feat: settings page wip

* feat: scroll spy 👓

move social into general, store social in meta.config like other settings
write upgrade script

* remove social

* rermove openapi routes

* cleanup, highlight selected nav item

* more cleanup

* advanced margin top

* derp

* match design

* bring back version alert

fix homepage js, since it moved to general settings

* remove unused tpls

these moved to general settings

* remove more  css

* offcanvas for mobile

fix search

* add timeout

* add new props

* manage categories

* small fixes

* category-edit

* feat category page fixes

* add title to settings pages

add user settings page

* small fixes

* some more settings pages

* fix: plugin page titles

* more settings pages

* more padding

* more pages, add acp paginator.tpl

so it doesn't change when active theme changes

* remove placeholder

* dashboard table

* fix: openapi

* fix: controller tests

* use fonts from core

* some small fixes

* fix rep page

* refactor: fix name of upgrade script

* create category modal

group edit

* group/groups pages

* admins mods

* privs

* uploads

* missing margin

* more acp pages

* more pages

* plugins/rewards/widgets

* wrap rewards

* fix widgets

* fix widget clone button

* fix group acp edit link

* update search dropdown

* remove display block from tbody

* use less css

* remove some derp links

* remove striped tables

* remove p tags from lang files

* update email settings

* Update api.tpl

* move tag-whitelist
2023-05-31 11:54:48 -04:00
Barış Soner Uşaklı
1ab0faa4a9 test: remove is touch test 2023-05-27 13:33:18 -04:00
Barış Soner Uşaklı
24ebb1536b test: remove socket.io test 2023-05-23 16:48:00 -04:00
Barış Soner Uşaklı
366b18e02f test: remove socket.io test 2023-05-23 16:41:26 -04:00
Barış Soner Uşaklı
3cb4edf19e test: log socket.io error
dont call callback twice
2023-05-22 10:20:56 -04:00
Barış Soner Uşaklı
12e75ff418 test: fix another test 2023-05-21 17:44:27 -04:00
Barış Soner Uşaklı
c201bf4507 test: fix test 2023-05-21 17:02:59 -04:00
Barış Soner Uşaklı
51096ad234 poc: use csrf_token in ws handshake (#11573) 2023-05-15 11:15:53 -04:00
Barış Soner Uşaklı
63b859f053 poc: use csrf_token in ws handshake (#11573) 2023-05-15 11:12:46 -04:00
Barış Soner Uşaklı
031ffe491e test: add back missing tests 2023-05-12 10:22:13 -04:00
Barış Soner Uşaklı
bd80d36e0d Merge branch 'master' into develop 2023-05-12 09:48:25 -04:00
Barış Soner Uşaklı
a75fd636ad test: add missing tests 2023-05-11 20:21:57 -04:00
Barış Soner Uşaklı
aff6d20f9f test: fix digest test 2023-05-11 19:01:28 -04:00
Barış Soner Uşaklı
4bfebc8123 test: add email 2023-05-11 18:45:44 -04:00
Barış Soner Uşaklı
1f03d41471 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-05-11 18:44:27 -04:00
Barış Soner Uşaklı
61563b01df test: digest 2023-05-11 18:44:22 -04:00
Julian Lam
3251bca24b fix: failing test case 2023-05-11 15:25:45 -04:00
Julian Lam
6765d053ce test: additional tests for .roll() 2023-05-11 15:22:50 -04:00
Julian Lam
f42b636adc test: fix authentication tests to use new token saving utility functions 2023-05-11 15:22:50 -04:00
Julian Lam
4f524e9f94 feat: token rolling API for admins
+ tests
2023-05-11 15:22:50 -04:00
Julian Lam
e4888dea17 feat: api token migration, new ACP tokens list, token creation 2023-05-11 15:22:50 -04:00
Julian Lam
7b8bffd763 feat: internal utility functions for token management (creation, deletion, etc)
Including tests
2023-05-11 15:22:50 -04:00
Julian Lam
e94c58becd Merge remote-tracking branch 'origin/master' into develop 2023-05-10 12:12:19 -04:00
Barış Soner Uşaklı
f083cd559d feat: add getSortedSetMembersWithScores (#11579)
* feat: add getSortedSetMembersWithScores

* lint: fix

* test: fix redis

* fix: mongo/psql
2023-05-07 22:32:05 -04:00
Julian Lam
393a891379 test: added test cases for #11562 2023-05-05 14:38:01 -04:00
Barış Soner Uşaklı
e0db9a8978 test: fix assert.reject calls
fix tests
2023-05-04 09:47:58 -04:00
Barış Soner Uşaklı
0c20d7cdee test: fix brackets 2023-05-03 15:48:15 -04:00
Barış Soner Uşaklı
9800d65a29 test: remove log 2023-05-02 10:11:03 -04:00
Barış Soner Uşaklı
8a359d6338 test: increase delay after export 2023-05-02 10:10:36 -04:00
Julian Lam
36895421ba refactor: topic mark read/unread routes 2023-05-01 12:02:34 -04:00
Julian Lam
82b4984b9d test: replace calls to getReplies socket call to api method 2023-05-01 12:02:34 -04:00
Julian Lam
ee9f53f1ff refactor: deprecate socket method posts.getPidIndex 2023-05-01 12:02:34 -04:00
Julian Lam
f2082d7de8 refactor: started work on porting socket methods to write API [breaking]
The following socket calls have been removed:

* `posts.getRawPost`
* `posts.getPostSummaryByPid`

Two new Write API routes have been added:

- `GET /api/v3/posts/:pid/raw`
- `GET /api/v3/posts/:pid/summary`
2023-05-01 12:02:34 -04:00
Julian Lam
b3787bd50c fix: update openapi spec to specify optional expiry argument available to be passed in via request body.
Also updated test runner to ignore any request bodies in spec that are explicitly not required.
2023-05-01 11:55:00 -04:00
Barış Soner Uşaklı
e3551d80d7 feat: allow tag editing from topic tools
closes #7536
closes #7465
closes #11538
2023-04-30 21:17:25 -04:00
Barış Soner Uşaklı
b891c5accd test: fix group tests
no idea how these passed on gh runner
2023-04-28 16:43:49 -04:00
Barış Soner Uşaklı
3c6f225a78 test: Blob doesnt exist in node 16 2023-04-25 17:07:04 -04:00