Commit Graph

160 Commits

Author SHA1 Message Date
decentral1se 00a1452cfc
Migrate to ssbc urls (#336)
* fix: ssbc urls

Closes https://github.com/ssbc/go-ssb-room/issues/332

* fix: go-ssb-refs API changes

* test: go-ssb-refs API changes

Co-authored-by: decentral1se <cellarspoon@riseup.net>
Co-authored-by: André Staltz <andre@staltz.com>
2022-11-07 11:18:13 +02:00
decentral1se 18062a2305 feat: member can also invite by SSB-ID
Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/283
2022-08-22 12:07:25 +03:00
decentral1se 6aaea32407
fix: support password entry for /join-manually (#306)
Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/234.

Co-authored-by: decentral1se <cellarspoon@riseup.net>
2022-08-22 11:52:35 +03:00
decentral1se de4321dcb2 fix: user facing "username"/"public key" -> SSB-ID
See https://github.com/ssb-ngi-pointer/go-ssb-room/issues/275.
2022-04-06 14:33:47 +03:00
boreq 5687fd5fa1 Fix alias not being displayed on the invites page
Reading the template of the invites page it was the intention of the
author to display the aliases instead of user refs if they are
available. The code loading the invites wasn't properly loading the
aliases of the useres who created them though always leading to this
data not being populated. This fix populates the aliases when listing
invites.

Additionally turned the invite author field into a link. This requires
some extra styling.

Fixes #245.
2021-11-23 09:22:14 -03:00
Henry a249fd8bee fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
Tim Nordenfur 18320f9ed7 expand member entry when aliases overflow (#250) 2021-06-10 00:44:48 +02:00
Henry d147d0642a
fix rendering non-members on the dashboard (#238)
* fix rendering non-members on the dashboard

fixes #236

* remove alias or feedref code from template

doing this in the template was hard to read and inefficient.

also: rename OnlineMembers to OnlineUsers since it is a misnomer.
There are other connected peers in a room in certain privacy modes.
2021-06-01 14:23:42 +02:00
Henry 81c05a663d Support open invites (fixes #102) 2021-05-17 10:16:26 +02:00
Henry 385b98a3a1 add privacy mode and role tests (fixes #185)
* denied/remove
* denied/add
* invites/revoke
* members/remove
* notices/edit
* notices/add

also:
* add members.CheckAction helper
* fix muxrpc abort bug and update to v2.0.5
* strictly use SeeOther not 307 (fixes #149)
2021-05-14 14:27:01 +02:00
Henry aa50cb4aeb tweak css a bit 2021-05-14 08:06:45 +02:00
Henry be35f154b7 add tests for new password features
* reset link creation
* own password change
* setPasswordWithToken
* also: move member handler funcs to own file
2021-05-13 07:39:19 +02:00
Henry 4558b208ee implement password update flow with reset tokens (fixes #98)
also update AuthFallback database

* re-write fallback auth to use alias or ssbid
* replace Create() with SetPassword() which does an upsert
* Add reset tokens to sqlite
* add test for SetPassword with reset token
2021-05-13 07:39:14 +02:00
Henry 5bfb5316f8 minor fixes
remove unsed about page and fix some typos
2021-05-11 10:17:02 +02:00
Henry 653d0926f7 add password change form 2021-05-11 10:16:35 +02:00
Henry 3d9c567cf6 add link to own member details on the top right 2021-05-11 08:29:55 +02:00
Henry eaaed06fba add label to own entry in members list
Shows a green "this is you" label on the members list. Green because
that's also the color of the tag on the top right.

Also changes the color of the  moderator label from green to blue to be
less confusing.
2021-05-11 08:18:35 +02:00
Andre Staltz 2f0afe8f33 improve sign-in with ssb JS for Firefox 2021-04-23 08:55:26 +02:00
Andre Staltz 3beb656b9c change join-room to claim-http-invite 2021-04-23 08:54:29 +02:00
cblgh cec5f93fb6 tests for restricted UI behavior
* add tests for privacy mode settings
* test privacy mode settings for member role
* test default language settings
* test denied keys interface for each role
* test adding new member interface depending on role
* test member details depending on role
* test invite button is disabled pending on user role
2021-04-23 08:34:27 +02:00
cblgh 2c9fdcb98e update HTML UI to reflect role access restrictions
* disable ui if user is unelevated
* disable revoke button if unelevated and not own invite
* improve styling of disabled elements
* remove revoke if alias not made my current user
2021-04-23 08:33:20 +02:00
cblgh c6077337d1 use more robust identifier for test 2021-04-20 10:36:40 +02:00
cblgh 0574c9a235 test language picking 2021-04-20 09:22:53 +02:00
cblgh c97b7d44c3 add default language admin ui functionality 2021-04-20 09:22:49 +02:00
cblgh ee185e5f43 don't render language picker if we have less than 2 translations 2021-04-20 09:12:15 +02:00
cblgh 9863c6b166 add template func for listing languages 2021-04-20 09:11:41 +02:00
cblgh cb3feb2a2e add language picker element mock 2021-04-20 09:09:57 +02:00
Henry 52ec94e878 fix link generation for alias registration
fixes #160
2021-04-19 15:00:35 +02:00
Andre Staltz bb25283b4c
style the alias page and add JS redirect 2021-04-19 10:07:26 +03:00
André Staltz 0e5b2f3843
Merge pull request #163 from ssb-ngi-pointer/ssb-uri-tmpl
refactor templates that have ssb uri links
2021-04-19 10:03:37 +03:00
Andre Staltz 7bbe33adab
refactor templates that have ssb uri links 2021-04-16 18:31:32 +03:00
Andre Staltz fb8c20fffe
update TestMembers to check for roles 2021-04-16 14:43:35 +03:00
Andre Staltz 8a7ffee4b5
member-list.tmpl uses string comparison, not magic enum numbers 2021-04-16 14:25:32 +03:00
Andre Staltz f6a24921eb
show admin and moderator tags on members list 2021-04-16 13:09:59 +03:00
Andre Staltz 6b082c45f7
more content and member links on the dashboard 2021-04-15 16:24:57 +03:00
Andre Staltz ed5a7f603e
fix invite QR code 2021-04-14 16:10:25 +03:00
André Staltz 919fe51922
Merge pull request #144 from ssb-ngi-pointer/withssb-remotelogin
change withssb login QR code to be a login URL
2021-04-14 13:55:32 +03:00
Andre Staltz 87f7a716e8
change withssb login QR code to be a login URL 2021-04-13 19:04:25 +03:00
Henry 8ff4adf160 various fixes
* fix test compilation
* fix aliases on member page
* add tests for aliases on member.GetByID and ByFeed
* fix admin tests
* use webassert helper for flash messages
* fix flashes
2021-04-12 14:10:42 +02:00
Henry 60010a7787 use flashes for notice edits 2021-04-12 14:09:09 +02:00
Henry bf46a564c1 make back button somewhat functional 2021-04-12 14:09:09 +02:00
Henry dbf0fe5801 show login error above form 2021-04-12 14:09:09 +02:00
Henry cec7bc0e44 add flash message helper 2021-04-12 14:09:09 +02:00
cblgh 22a2348187 create /settings, move privacy modes ui into it 2021-04-12 13:42:31 +02:00
Alexander Cobleigh ff028699d2
Apply suggestions from code review
Co-authored-by: André Staltz <andre@staltz.com>
2021-04-09 14:35:06 +02:00
cblgh ac1ede43be clean up privacy mode logic 2021-04-09 13:50:15 +02:00
cblgh 092ce82ab1 wip logic for setting privacy modes 2021-04-09 13:25:40 +02:00
cblgh 99f168e81e add english translations 2021-04-08 15:42:22 +02:00
cblgh b79d46d36e remake grid using tailwind 2021-04-08 15:42:22 +02:00
cblgh 3c75fcc6b0 start styling privacy modes ui 2021-04-08 15:42:22 +02:00