Skip to content

Feat: REST ticket type management and event creation#53

Open
tarynblakemiller wants to merge 91 commits into
mainfrom
feat-crud-ticket-types
Open

Feat: REST ticket type management and event creation#53
tarynblakemiller wants to merge 91 commits into
mainfrom
feat-crud-ticket-types

Conversation

@tarynblakemiller

@tarynblakemiller tarynblakemiller commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator

This PR has admittedly expanded as I arrived at event creation!!

I should note that I pulled in Jack's DB models branch in order to finish this.

Description

  • RESTful ticket type management
  • Event creation and management
  • Image uploading

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changes Implemented

CRUD operations for ticket types

  • src/app/tickets.rs

GET /tickets - List all ticket types
GET /tickets/new - Creation form
POST /tickets/new - Create ticket
GET /tickets/{id} - View ticket (read-only)
GET /tickets/{id}/edit - Edit form
POST /tickets/{id}/edit - Update ticket
POST /tickets/{id}/delete - Delete ticket

Events can now be created with a ticket type and flyer image

  • src/app/events.rs

GET /events - List events with cover image thumbnails
GET /events/new - Creation form with ticket selection
POST /events/new - Create event with tickets and image
GET /events/{id} - View event (read-only with ticket details)
GET /events/{id}/edit - Edit form
POST /events/{id}/edit - Update event
POST /events/{id}/delete - Delete event

##Image Processing

**this was just a placeholder please feel free to critique and change!
I added an image processing module to the templates and a temporary storage path for images.

This added base64 and uuid dependencies.

Storage path: frontend/static/uploads/images/events/
Web path: /static/uploads/images/events/

  • the DB stores the web path for template rendering

Testing

  • make a directory for image uploads at frontend/static/uploads/images/events

Ticket Types

  • Visit /tickets to create a new ticket type
  • click on ticket name to view read-only details
  • Edit, modify, and save --> should redirect to view

Event Creation

  • create a ticket type first because as of now they're required for events
  • Visit /events/new to create an event with a cover image
  • Test with different formats - restricted to JPEG, PNG, GIF, WebP at the moment
  • Click on an event from the list -- should take you to the view page with details
  • Edit, modify and save the changes
  • Test event deletion

RileyChampion and others added 30 commits January 2, 2025 17:14
* Starter Event table, event CRUD commands

* Added create/update template + additional event CRUD commands

* Some fmt changes

* Address fmt changes

* Remove delete event for now

* Added delete route and accessible via event-update page

* Add chrono dependency, list of events and add a change to initialize tera priort to AppState to register filters for templating
* WIP: events fixes

* WIP: posts

* cleanup

* Don't run tests on every push
swlody and others added 21 commits April 21, 2025 22:06
* feat: Refactor posts/edit styles

* refactor: posts/edit resize classes

* feat: posts/list refactor

* wip: posts/send refactor

* feat: posts pages migration

* feat: login/register refactor

* feat: lists styles refactor

* feat: events styles refactor

* refactor: Remove styles blocks

* fix: Normalize datetime-local for NaiveDatetime

* style: Remove LSD header text colors

* feat: Use DM Sans, style bugs, initial deep brown color scheme

* feat: Add Poppins display font

* feat: lists/signup, display p/br tags correctly in posts/view

* feat: Colorscheme, style posts pages

* feat: Use HTMX to handle post deletion

* fix: Prettier format fonts.css

* style: Correct posts/edit link underline color

* feat: htmx -> hyperscript

* Post email preview page, css tweaks

---------

Co-authored-by: Jack Foltz <jack@foltz.io>
@foltik foltik force-pushed the main branch 3 times, most recently from c344fed to 43d6a88 Compare December 10, 2025 08:01
@foltik foltik force-pushed the main branch 3 times, most recently from 86f8824 to a847e0a Compare June 24, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants