Add places / things-to-do list with admin management
Deploy with Docker Compose / deploy (push) Successful in 16m21s
Deploy with Docker Compose / deploy (push) Successful in 16m21s
Backend: new Place GORM model (title, location, notes, image, category, cost, priority, done) with auto-migration, a place.graphql schema, and resolvers for the places query plus admin-only create/update/delete. Regenerate gqlgen output against gqlgen v0.17.95, which requires Go 1.26 — bump go.mod and the builder image to match. Frontend: a places Pinia store, a CreatePlace admin form, and a PlacesTable rendered as a new tab in the Collage cell, with inline done-toggle and delete for admins. Rework the Admin page into a sidebar-navigated panel layout (picking up the previously unreachable CreateBookmark form) and give Login proper field labels, submit state, and error feedback. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KcFtkisHcKJuTZAnv3fVzA
This commit is contained in:
@@ -47,6 +47,17 @@ type CreateJobApplicationInput struct {
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
}
|
||||
|
||||
type CreatePlaceInput struct {
|
||||
Title string `json:"title"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
ImageURL *string `json:"imageUrl,omitempty"`
|
||||
Category *string `json:"category,omitempty"`
|
||||
Cost *string `json:"cost,omitempty"`
|
||||
Priority *int `json:"priority,omitempty"`
|
||||
Done *bool `json:"done,omitempty"`
|
||||
}
|
||||
|
||||
type CreatePostInput struct {
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
@@ -136,6 +147,17 @@ type UpdateJobApplicationInput struct {
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
}
|
||||
|
||||
type UpdatePlaceInput struct {
|
||||
Title *string `json:"title,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
ImageURL *string `json:"imageUrl,omitempty"`
|
||||
Category *string `json:"category,omitempty"`
|
||||
Cost *string `json:"cost,omitempty"`
|
||||
Priority *int `json:"priority,omitempty"`
|
||||
Done *bool `json:"done,omitempty"`
|
||||
}
|
||||
|
||||
type UpdatePostInput struct {
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
|
||||
Reference in New Issue
Block a user