~jan0sch/smederee

Showing 11 changes starting from 23fe340430400907eb22a68178640afe7c7ee928.
2024-06-29 (Sat), 9:01 PM - Jens Grassel - 23fe340430400907eb22a68178640afe7c7ee928

CONTRIBUTING: Remove TODO and rephrase minimal about forks and branches.

Summary of changes
1 files modified with 1 lines added and 3 lines removed
  • CONTRIBUTING.md with 1 added and 3 removed lines
2024-06-29 (Sat), 8:47 PM - Jens Grassel - db2cda08da046c112ff56105fef77049fdf10da2

VCS: Change title for patch details page.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
2024-06-29 (Sat), 8:47 PM - Jens Grassel - 3ad8603a59f6b9e8f9404f6f470e84f49451e027

VCS: Change title for changes browser.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
2024-06-29 (Sat), 8:46 PM - Jens Grassel - 9d8640c687949cc0b7c4124ef2e17ee398c016af

VCS: Change page title for file browser.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
2024-06-29 (Sat), 8:39 PM - Jens Grassel - 97f120d7248b09e49c1bfbe1ddcdb17935219e42

Tickets: Adjust page title

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 1 added and 1 removed lines
2024-06-29 (Sat), 6:50 PM - Jens Grassel - 35746e077c48490d618b5037e81873a1781a30c2

Switch to bouncy castle provider for JDK 1.8 and later

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • build.sbt with 1 added and 1 removed lines
2024-06-29 (Sat), 1:12 PM - Jens Grassel - 9c753d0270a7b42c6d3e87d0773e3b47b220d9b3

Add `HttpBaseRoute` for cleaner implementation of HTTP enpoints via http4s.

- add `HttpBaseRoute`
- extending requires overriding of `protectedRoutes` and `publicRoutes`
- add helper function `genPageTitleBase` for more consistent page titles
Summary of changes
2 files added
  • modules/hub/src/main/scala/de/smederee/hub/HttpBaseRoute.scala
  • modules/hub/src/test/scala/de/smederee/hub/HttpBaseRouteTest.scala
10 files modified with 93 lines added and 51 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/LandingPageRoutes.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/OrganisationRoutes.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala with 1 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 2 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 17 added and 13 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/LabelRoutes.scala with 18 added and 8 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneRoutes.scala with 24 added and 9 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 26 added and 9 removed lines
2024-06-28 (Fri), 11:30 AM - Jens Grassel - 1c916e6552ae43e32e499f06257df4c72b31e893

tickets: Change page title and include possible ticket search status.

Summary of changes
1 files modified with 7 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 7 added and 1 removed lines
2024-06-21 (Fri), 4:02 PM - Jens Grassel - 95e047719d2bad7f1ca9fd5305c813735de5723b

hub: Allow organisation administrators to edit the organisation

- basic functionality all there
- add links to edit and manage admins for orgs to overview page

Fixes: https://smeder.ee/~jan0sch/smederee/tickets/11
Summary of changes
2 files modified with 11 lines added and 9 lines removed
  • modules/hub/src/main/resources/messages.properties with 2 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositories.scala.html with 9 added and 8 removed lines
2024-06-21 (Fri), 3:50 PM - Jens Grassel - d163ec70ec3fe12884f1bc06b4accda873fedf48

hub: Fix issue with "edit organisation settings" link always shown.

- create list of organisation administrators correctly

Fixes: https://smeder.ee/~jan0sch/smederee/tickets/12
Summary of changes
1 files modified with 4 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 4 added and 1 removed lines
2024-06-21 (Fri), 9:15 AM - Jens Grassel - 3843e368454c33eb0d675400fa626fe73449d105

hub: Organisation administrators and refactoring of hub form types

The refactoring part was too closely tied to the changes already made,
therefore it is part of this patch.

- add managing administrators to the organisation settings
- enable changing the owner of an organisation to another admin
- refactor views and forms in hub to use `Map[String, Chain[String]]` as form
  data type like in tickets as it is default in http4s `UrlForm`
- add type class `UrlFormHelpers` to filter out empty string values from forms
- clean up template parameter code and adjust CODINGSTYLE accordingly

Fixes: https://smeder.ee/~jan0sch/smederee/tickets/10
Summary of changes
5 files added
  • modules/hub/src/main/scala/de/smederee/hub/OrganisationAdminsForm.scala
  • modules/hub/src/main/scala/de/smederee/hub/UrlFormHelpers.scala
  • modules/hub/src/main/twirl/de/smederee/hub/views/editOrganisationAdmins.scala.html
  • modules/hub/src/main/twirl/de/smederee/hub/views/forms/renderBooleanCheckbox.scala.html
  • modules/hub/src/test/scala/de/smederee/hub/UrlFormHelpersTest.scala
82 files modified with 990 lines added and 451 lines removed
  • CODINGSTYLE.md with 21 added and 1 removed lines
  • modules/hub/src/main/resources/messages.properties with 5 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AccountManagementRoutes.scala with 6 added and 14 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AddPublicSshKeyForm.scala with 5 added and 4 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/AuthenticationRoutes.scala with 5 added and 13 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/ChangePasswordForm.scala with 13 added and 7 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/DoobieOrganisationRepository.scala with 16 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/EditVcsRepositoryForm.scala with 19 added and 13 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/LoginForm.scala with 7 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/NewVcsRepositoryForm.scala with 13 added and 7 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/OrganisationForm.scala with 30 added and 21 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/OrganisationRepository.scala with 10 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/OrganisationRoutes.scala with 137 added and 36 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/ResetPasswordForm.scala with 5 added and 3 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/ResetPasswordRoutes.scala with 7 added and 23 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupForm.scala with 11 added and 6 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/SignupRoutes.scala with 5 added and 13 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 11 added and 25 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/forms/FormValidator.scala with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settings.scala.html with 16 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/settingsOrganisations.scala.html with 12 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/account/sshSettings.scala.html with 22 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/changePassword.scala.html with 18 added and 6 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/contact.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/createOrganisation.scala.html with 12 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/createRepository.scala.html with 22 added and 13 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/deleteRepository.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/editOrganisation.scala.html with 15 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/editRepository.scala.html with 15 added and 14 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/emails/reset.scala.txt with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/emails/validate.scala.txt with 6 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/csrfFailed.scala.html with 8 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/internalServerError.scala.html with 10 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/unvalidatedAccount.scala.html with 11 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/errors/userOrOrganisationNotFound.scala.html with 10 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/format/formatDate.scala.html with 8 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/forms/organisationFormFields.scala.html with 15 added and 9 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/forms/renderFormErrors.scala.html with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/icon.scala.html with 6 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/imprint.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/index.scala.html with 9 added and 6 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/login.scala.html with 16 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/main.scala.html with 9 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/navbar.scala.html with 10 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/privacyPolicy.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/publicAlpha.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/repositoryPatchMetadata.scala.html with 9 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/reset.scala.html with 16 added and 6 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/resetSent.scala.html with 11 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showAllRepositories.scala.html with 13 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositories.scala.html with 16 added and 2 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryBranches.scala.html with 8 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html with 6 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryHistory.scala.html with 8 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html with 9 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html with 6 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryPatch.scala.html with 8 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 16 added and 6 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/termsOfUse.scala.html with 6 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/hub/views/welcome.scala.html with 9 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html with 10 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabel.scala.html with 10 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabels.scala.html with 10 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestone.scala.html with 10 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestones.scala.html with 11 added and 8 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editTicket.scala.html with 10 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/errors/internalServerError.scala.html with 10 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/errors/unvalidatedAccount.scala.html with 11 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatDate.scala.html with 8 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatDateTime.scala.html with 8 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatTicketStatus.scala.html with 5 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatTicketSubmitter.scala.html with 7 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/forms/renderFormErrors.scala.html with 1 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/icon.scala.html with 6 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/main.scala.html with 9 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/navbar.scala.html with 8 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showMilestone.scala.html with 9 added and 7 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showProjectMenu.scala.html with 7 added and 3 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showTicket.scala.html with 7 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showTickets.scala.html with 5 added and 3 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/AuthenticationRoutesTest.scala with 4 added and 3 removed lines
  • modules/hub/src/test/scala/de/smederee/hub/DoobieOrganisationRepositoryTest.scala with 74 added and 0 removed lines