Repository navigation
Conversation
remko48
added this pull request to stack #15
October 12, 2026 08:27
rjzondervan
reviewed
Oct 12, 2026
Two api/2 endpoints for grid views: one returns the widget types with the schemas of their configuration and content, the other creates a view without a table, owned by the user who creates it. Creating is rate limited like the other mutation endpoints. Co-authored-by: Ruben van der Linde <ruben@conduction.nl> Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Remko <remko@conduction.nl>
remko48
force-pushed
the
stack/g3-views-api-v2
branch
from
October 12, 2026 09:32
051a586 to
8feffe3
Compare
- the title and emoji of a new grid view are validated like on update, so an empty or too long title or an invalid emoji is a 400 instead of a 200 or a database error - the endpoint drops the technicalName and type parameters: a view without a table is named by its id and is always a grid view - widget property and widget types are typed as their known values - both routes are declared with #[ApiRoute] on the controller; the spec moves them, which reorders openapi.json Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Remko <remko@conduction.nl>
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two api/2 endpoints so a client can build grid views: one to fetch the widget types with their schemas (the frontend renders its forms from them), and one to create a grid view, a view without a table.
What changes
GET /api/2/views/widget-types: returns every widget type with its title, default size and two schemas:configuration(how the widget sits on the page) andproperties(what the widget shows, stored as itscontent).POST /api/2/views: creates a grid view without a table. The type is alwaysgrid. It takes atitleand optionally anemojiand adescription; an invalid title or emoji returns a 400. It takes no technical name, since a view without a table is named by its id. The view belongs to whoever creates it and is returned in the usual view shape.RequirePermissionis needed: there is no existing resource to check, and ownership is the creator's.🖼️ Screenshots
Backend only, no UI changes.
🏁 Checklist
/backport to stableX.X🤖 AI (if applicable)