stable

Clone or download

Read-only

feat: Display mock information for group

Part of story #26799 associate a Tuleap project and a GitLab group How to test: After completing the wizard and linking a Tuleap project to a GitLab group, the "GitLab Group Link" tab in Git Administration will show a page listing the informations of a group. All informations are faked for now, getting them from the database will be done later. All buttons are disabled and do nothing. The javascript asset logs a message on the console to show it is loaded, but does nothing else. You can edit LinkedGroupPresenter to test some cases (for example whether the group has an avatar or not). The project background should be correctly displayed when the project is or is not linked to a GitLab group, in the wizard page and in the information page. Notes: DateHelper::timeAgoInWords() is used despite being deprecated for two reasons: - The mockup does not show a relative date/time component. - It is much more efficient to compute that in PHP. We are not including moment.js just for that. Change-Id: Icc036f40ecc7dd7b674289db591c3cb0e1ca55dc

Modified Files

Name
M plugins/gitlab/include/Admin/GitLabLinkGroupController.php +37 −23 Go to diff View file
M plugins/gitlab/include/Admin/GitLabLinkGroupPanePresenter.php +3 −9 Go to diff View file
A plugins/gitlab/include/Admin/LinkGroupWizardPresenter.php +40 −0 Go to diff View file
A plugins/gitlab/include/Admin/LinkedGroupPresenter.php +47 −0 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +4 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/package.json +1 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/components/GitlabGroupLinkAppComponent.vue +4 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/components/PaneGitlabGroup.vue +1 −0 Go to diff View file
A plugins/gitlab/scripts/lib/administration-theme/package.json +12 −0 Go to diff View file
A plugins/gitlab/scripts/lib/administration-theme/pnpm-lock.yaml +7 −0 Go to diff View file
A plugins/gitlab/scripts/lib/administration-theme/themes/main.scss +44 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/package.json +19 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/pnpm-lock.yaml +11 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/src/main.ts +25 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/themes/main.scss +51 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/tsconfig.json +4 −0 Go to diff View file
A plugins/gitlab/scripts/linked-group/vite.config.ts +34 −0 Go to diff View file
M plugins/gitlab/site-content/fr_FR/LC_MESSAGES/tuleap-gitlab.po +39 −4 Go to diff View file
M plugins/gitlab/site-content/pt_BR/LC_MESSAGES/tuleap-gitlab.po +36 −1 Go to diff View file
D plugins/gitlab/templates/admin/git-administration-gitlab-link-group.mustache +0 −40 Go to diff View file
A plugins/gitlab/templates/admin/git-administration-panes.mustache +16 −0 Go to diff View file
A plugins/gitlab/templates/admin/link-group-wizard.mustache +11 −0 Go to diff View file
A plugins/gitlab/templates/admin/linked-group-information.mustache +85 −0 Go to diff View file
M plugins/gitlab/tests/unit/Admin/GitLabLinkGroupControllerTest.php +69 −118 Go to diff View file
M tests/psalm/tuleap-baseline.xml +805 −1260 Go to diff View file