fix(projects): carry tags, due date and priority in the list payload (#2536)

The edit dialog is shared between the projects list and the project detail
page and seeds itself from whichever project object it is handed. The list
payload never carried tags, due_date or priority, so editing from the list
showed a blank tags field -- and, unreported, submitted the dialog's default
priority over a stored high/urgent one. The component read those fields
through a cast, so the compiler never flagged that they were always absent.

Put them on ProjectListResponse and ProjectListItem, drop the casts, and let
an explicit null clear tags and due date the way it already clears budget and
url -- an emptied field was previously sent as undefined and silently reverted.
The template list was missing target_parts_count, which the same dialog edits.
This commit is contained in:
maziggy
2026-07-13 08:59:36 +02:00
parent 5bbfeefa65
commit c640ddc1f7
9 changed files with 218 additions and 14 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -26,7 +26,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-PHP-xpqR.js"></script>
<script type="module" crossorigin src="/assets/index-xvC2pmGi.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DASc8Ke0.css">
</head>
<body>