Conversation
Expose fine-grained ticket permissions for panels so ticket openers can be granted specific capabilities. Backend: add TicketPermissions to panelBody and map its fields to panel TicketPerms* properties in CreatePanel and UpdatePanel. Frontend: initialize/normalize legacy tp_* fields into data.ticket_permissions, add defaults, and add a "Ticket Permissions" collapsible UI with checkboxes in PanelCreationForm; also add corresponding checkboxes in SettingsCard. Misc: enable local replace for the database module in go.mod and bump the locale submodule commit.
This was referenced Mar 7, 2026
Remove the block that constructed data.ticket_permissions from tp_* flags in PanelCreationForm.svelte. This cleans up unused or redundant initialization logic; remaining code (e.g. tempColour assignment) is unchanged.
Deploying tickets-v2-dashboard with
|
| Latest commit: |
e627fb7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://384fb7a9.tickets-v2-dashboard.pages.dev |
| Branch Preview URL: | https://rm-44.tickets-v2-dashboard.pages.dev |
Replace the previous flex/row layout with a responsive CSS grid for ticket permission checkboxes in PanelCreationForm.svelte and SettingsCard.svelte. Checkboxes are now wrapped in a .permissions-grid (grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) with column/row gaps) to improve alignment and responsiveness across screen sizes.
Align the order of ticket permission fields between backend and frontend. Update CreatePanel/UpdatePanel to assign EmbedLinks/AttachFiles/SendVoiceMessages in the new order, and adjust PanelCreationForm and SettingsCard to reflect the same checkbox ordering and default mapping. This is a refactor to keep API and UI consistent; no permission semantics were changed.
Move panel ticket permission handling to a dedicated storage layer. Create and Update endpoints now save TicketPermissions via dbclient.Client.PanelTicketPermissions.Set instead of assigning individual panel fields. List endpoint includes TicketPermissions in the response by fetching them with PanelTicketPermissions.Get. Frontend PanelCreationForm initialization simplified to a default ticket_permissions object (all false) and no longer maps legacy flattened tp_* fields. This centralizes permission data and removes per-field assignments in the handlers.
Member
|
db merged, pls bump |
Contributor
Author
|
Database bumped! |
BenHall-1
approved these changes
Mar 8, 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.
Needs: TicketsBot-cloud/database#35
Link: TicketsBot-cloud/worker#122