stable

Clone or download

Read-only

feat: Frontend to invite in a project

In the invite modal, I have now a selectbox that lists the project I am admin of. The current project, if any, is preselected. If I select a project, then invitations are made for this project and users will be automatically part of the project once registered. If I am not project administrator, then there is no select but I can still invite buddies. Part of story #30021: Invite buddies to my Tuleap project Change-Id: Icf31132021deeafe5a905cbd216ead162fe826cb

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +16 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +12 −0 Go to diff View file
M src/common/InviteBuddy/InvitationSender.php +27 −3 Go to diff View file
M src/common/InviteBuddy/InviteBuddiesPresenter.php +31 −24 Go to diff View file
A src/common/InviteBuddy/MustBeProjectAdminToInvitePeopleInProjectException.php +27 −0 Go to diff View file
A src/common/InviteBuddy/ProjectToBeInvitedIntoPresenter.php +33 −0 Go to diff View file
M src/common/InviteBuddy/REST/v1/InvitationPOSTRepresentation.php +5 −0 Go to diff View file
M src/common/InviteBuddy/REST/v1/InvitationsResource.php +15 −1 Go to diff View file
A src/common/Project/CachedProjectPresentersBuilder.php +49 −0 Go to diff View file
A src/common/Project/ListOfProjectPresentersBuilder.php +33 −0 Go to diff View file
M src/common/Project/ProjectPresenter.php +1 −0 Go to diff View file
M src/common/Project/ProjectPresentersBuilder.php +5 −4 Go to diff View file
M src/common/User/SwitchToPresenterBuilder.php +3 −3 Go to diff View file
M src/scripts/main/src/invite-buddies/send-notifications.test.ts +41 −0 Go to diff View file
M src/scripts/main/src/invite-buddies/send-notifications.ts +5 −0 Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +5 −1 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenterBuilder.php +4 −1 Go to diff View file
M src/themes/BurningParrot/templates/invite-buddies-modal.mustache +20 −0 Go to diff View file
M src/themes/FlamingParrot/css/utils/_invite-buddies.scss +5 −0 Go to diff View file
M src/themes/FlamingParrot/templates/invite-buddies-modal.mustache +21 −0 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +9 −4 Go to diff View file
M tests/unit/common/InviteBuddy/InvitationSenderTest.php +189 −10 Go to diff View file
A tests/unit/common/Project/CachedProjectPresentersBuilderTest.php +80 −0 Go to diff View file
M tests/unit/common/User/SwitchToPresenterBuilderTest.php +8 −8 Go to diff View file