16 Commits

Author SHA1 Message Date
Max
ce1844e521
feat(webapp): several group and personal invitation links (#8504)
* invite codes refactor

typo

* lint fixes

* remove duplicate initeCodes on User

* fix typo

* clean permissionMiddleware

* dummy permissions

* separate validateInviteCode call

* permissions group & user

* test validateInviteCode + adjustments

* more validateInviteCode fixes

* missing test

* generatePersonalInviteCode

* generateGroupInviteCode

* old tests

* lint fixes

* more lint fixes

* fix validateInviteCode

* fix redeemInviteCode, fix signup

* fix all tests

* fix lint

* uniform types in config

* test & fix invalidateInviteCode

* cleanup test

* fix & test redeemInviteCode

* permissions

* fix Group->inviteCodes

* more cleanup

* improve tests

* fix code generation

* cleanup

* order inviteCodes result on User and Group

* lint

* test max invite codes + fix

* better description of collision

* tests: properly define group ids

* reused old group query

* reuse old Groupmembers query

* remove duplicate skip

* update comment

* fix uniqueInviteCode

* fix test

* fix lint

* Get invite codes

* Show invitation data in registration

* Add invitation list to menu (WIP)

* Add mutations, add CreateInvitation, some fixes

* Improve style, fix long comments

* Lock scrolling when popover is open, but prevent layout change

* small fixes

* instant updates

* Introduce config for link limit; add texts, layout changes

* Validate comment length

* Improve layout

* Add message to copied link

* Add invite link section to group settings

* Handle hidden groups

* Add menu entry for group invite links

* Fix locale

* hotfix invite codes

* Add copy messages

* More styling (WIP)

* Design update

* Don't forget user state

* Localize placeholder

* Add locale

* Instant updates for group invites

* fix registration with invite code

* Fix text overflow

* Fix instant updates

* Overhaul styles, add locales, add heading

* Add test and snapshot for CreateInvitation

* Improve accessability; add invitation test

* Add tests for InvitationList

* Fix locales

* Round plus button

* Fix tests

* Fix tests

* fix locales

* fix linting

* Don't show name of hidden group in invite message

* Add more tests

* Update webapp/locales/de.json

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

* Update webapp/locales/de.json

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-10 08:25:03 +00:00
Wolfgang Huß
48c7bd0033
refactor(webapp): make login, registration, password-reset layout brandable (#8440)
* Make login, registration, password-reset layout brandable

- Rename some variables related to this

* Remove experimental code

* add lodash types

* fix build

fix type

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-04-28 16:58:35 +00:00
ogerly
93add91e77 fix lint 2022-10-27 15:23:19 +02:00
ogerly
76ad2ec063 change <space-xx-small /> to <ds-space margin=xxx-small /> 2022-10-27 15:22:22 +02:00
ogerly
655f1a26c8 add space in register box 2022-10-27 09:18:47 +02:00
Wolfgang Huß
e82d35c824 Fix linting 2022-08-25 23:17:50 +02:00
Wolfgang Huß
5abbf22b43 Implement 'inviteCode' and 'nonce' lengths via 'registration.js' in backend and webapp 2022-06-23 17:44:59 +02:00
Wolfgang Huß
4ddc6fb07a
Implement toaster for wrong invite code and wrong nonce 2021-03-30 04:51:45 +02:00
Wolfgang Huß
3856e10fbb Refactor locales for registration slider
- Activate validation hints for invite code and e-mail nonce again.
2021-03-22 13:34:06 +01:00
Wolfgang Huß
3504bbb123 Refactor and reduce create account checkboxes after Ulf's suggestions 2021-03-22 10:15:04 +01:00
Wolfgang Huß
f3aa5afa81 Fix double DB request in 'RegistrationSlideInvite' 2021-03-16 16:26:45 +01:00
Wolfgang Huß
0161949166 Melt some 'setSliderValuesCallback' together 2021-03-09 11:19:40 +01:00
Wolfgang Huß
266ed76639 Implement 'inviteCode' in webapp calling Mutations 'Signup', 'SignupVerify'
- Replace in calls of 'setSliderValuesCallback' 'this.sliderData.sliders[this.sliderIndex].validated' by 'null', because validation does not change.
2021-03-09 11:09:32 +01:00
Wolfgang Huß
7e3c812ac5 Implement 'enter-nonce' db query 2021-03-02 19:06:52 +01:00
Wolfgang Huß
393a05c358 Implement 'no-public-registration' slider 2021-03-02 12:33:47 +01:00
Wolfgang Huß
e057bbe80e Rename registration sliders 2021-03-02 10:19:38 +01:00