feat(patch-dialog): add EditPatchDialog component for editing patches

- Introduced the EditPatchDialog component to facilitate patch editing within the dashboard.
- Integrated the dialog into the ShowPatches component, allowing users to edit patches directly from the list view.
- Enhanced user experience with loading indicators and success/error notifications during patch updates.
- Updated the UI to ensure consistent styling and behavior across patch management features.
This commit is contained in:
Mauricio Siu
2026-02-17 01:47:27 -06:00
parent 46ac272f3f
commit 1c25ab4303
3 changed files with 131 additions and 22 deletions
-2
View File
@@ -29,11 +29,9 @@ import {
} from "@/server/db/schema";
export const patchRouter = createTRPCRouter({
// CRUD Operations
create: protectedProcedure
.input(apiCreatePatch)
.mutation(async ({ input, ctx }) => {
// Verify access
if (input.applicationId) {
const app = await findApplicationById(input.applicationId);
if (