~jan0sch/smederee

Showing 11 changes starting from 4c059165804333f969b2fe5b632444f120f612e7.
2023-05-19 (Fri), 3:38 PM - Jens Grassel - 4c059165804333f969b2fe5b632444f120f612e7

Code Cleanup: Fix discard non unit value warning.

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
2023-05-17 (Wed), 3:28 PM - Jens Grassel - 333ff13b69c781391ed2be7791ea82c96fdd9368

Tickets: Editing of tickets.

- add edit page and logic for tickets
- add saving of selected labels and milestone
- add information to show ticket page
- small css fixes
- add updating of updated_at field upon updating a ticket in the database
Summary of changes
1 files added
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editTicket.scala.html
7 files modified with 222 lines added and 37 lines removed
  • modules/hub/src/main/resources/assets/css/main.css with 10 added and 1 removed lines
  • modules/hub/src/main/resources/messages.properties with 5 added and 1 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketForm.scala with 18 added and 16 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 160 added and 5 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html with 2 added and 6 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showTicket.scala.html with 25 added and 7 removed lines
  • modules/tickets/src/main/scala/de/smederee/tickets/DoobieTicketRepository.scala with 2 added and 1 removed lines
2023-05-17 (Wed), 1:09 PM - Jens Grassel - 89f674adfd5560574f60f4a02db2a7ebf5f46233

Tickets: Fix textarea form value in create ticket form.

- set content directly and not via `value` attribute
- increase number of rows
Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html with 1 added and 1 removed lines
2023-05-17 (Wed), 11:56 AM - Jens Grassel - 7ea213dbe8aeedb64df800d762682a3fa9ec4d02

VCS: Only view file in file browser if it is a text file.

Summary of changes
1 files modified with 23 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 23 added and 1 removed lines
2023-05-16 (Tue), 5:57 PM - Jens Grassel - 3ed1ceea17734d3ac7ac029cdcbd918f91878bf3

Tickets: Refactor FormValidator

- use Map[String, Chain[String]] to be more conistent with http4s
- adjust code accordingly
- add default cats imports to twirl templates
Summary of changes
2 files added
  • modules/hub/src/main/twirl/de/smederee/tickets/views/errors/internalServerError.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/errors/unvalidatedAccount.scala.html
15 files modified with 506 lines added and 404 lines removed
  • build.sbt with 2 added and 0 removed lines
  • modules/hub/src/main/resources/messages.properties with 2 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/HubServer.scala with 8 added and 2 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/LabelForm.scala with 27 added and 21 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/LabelRoutes.scala with 194 added and 178 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneForm.scala with 31 added and 27 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/MilestoneRoutes.scala with 7 added and 24 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketForm.scala with 66 added and 32 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 128 added and 93 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/createTicket.scala.html with 24 added and 10 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabel.scala.html with 4 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editLabels.scala.html with 4 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestone.scala.html with 4 added and 4 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/editMilestones.scala.html with 4 added and 4 removed lines
  • modules/tickets/src/main/scala/de/smederee/tickets/forms/FormValidator.scala with 1 added and 1 removed lines
2023-05-16 (Tue), 1:23 PM - Jens Grassel - 398bce8aff0eee9b73e93d612a3d01eb8bf7d6c0

Tickets: Add route to show a ticket for guests.

Summary of changes
1 files modified with 12 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 12 added and 2 removed lines
2023-05-16 (Tue), 1:18 PM - Jens Grassel - 30142ca6315275e443b45bbee2579f64bfdeca61

VCS: Link to patch details from repository overview page.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryOverview.scala.html with 1 added and 1 removed lines
2023-05-16 (Tue), 1:11 PM - Jens Grassel - bc961e8622946f8c0370cc0a41e7286a62398870

Tickets: Add route for showing single tickets.

- add route for authenticated users to show a ticket
- add translations for ticket status and resolution
- add template format helpers for ticket status and submitter
- add rendering function for ticket content to markdown renderer
Summary of changes
3 files added
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatTicketStatus.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatTicketSubmitter.scala.html
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showTicket.scala.html
5 files modified with 105 lines added and 2 lines removed
  • modules/hub/src/main/resources/messages.properties with 13 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala with 20 added and 0 removed lines
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 65 added and 1 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/format/formatDateTime.scala.html with 1 added and 1 removed lines
  • modules/tickets/src/main/scala/de/smederee/tickets/Ticket.scala with 6 added and 0 removed lines
2023-05-16 (Tue), 8:03 AM - Jens Grassel - 941f08d70b902da07884a7e4f83db49c70bf999d

Tickets: Improve ticket listing.

- tidy up html template
- link to submitter
- link from title to ticket detail page
- separate colours for ticket number and title of resolved tickets
- strike through ticket number of resolved tickets
Summary of changes
2 files modified with 18 lines added and 5 lines removed
  • modules/hub/src/main/resources/assets/css/main.css with 9 added and 0 removed lines
  • modules/hub/src/main/twirl/de/smederee/tickets/views/showTickets.scala.html with 9 added and 5 removed lines
2023-05-16 (Tue), 8:01 AM - Jens Grassel - 865de377ce2b8ab1db66aa2f0a30de3dcd5a4cec

Tickets: Save current user as submitter.

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
2023-05-16 (Tue), 8:00 AM - Jens Grassel - b59071a9874e9a7f5cc965db5b8de75d9c98cad6

CSS: Change colour of links to default.

Summary of changes
1 files modified with 0 lines added and 4 lines removed
  • modules/hub/src/main/resources/assets/css/main.css with 0 added and 4 removed lines