fix(tasks): Ensure new task IDs are sequential within the target tag

Modified the ID generation logic in 'add-task.js' to calculate the next task ID based on the highest ID within the specified tag, rather than globally across all tags.

This fixes a critical bug where creating a task in a new tag would result in a high, non-sequential ID, such as ID 105 for the first task in a tag.
This commit is contained in:
Eyal Toledano
2025-06-13 00:31:08 -04:00
parent b205e52d08
commit cac8c234d6
4 changed files with 45 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
{
"currentTag": "master",
"lastSwitched": "2025-06-12T05:28:34.147Z",
"currentTag": "gezo",
"lastSwitched": "2025-06-13T04:23:16.760Z",
"branchTagMapping": {},
"migrationNoticeShown": true
}