From 010c9c8fac683ae3852931a2a2f6f87375dbcd4c Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 15 May 2026 22:21:20 +0000 Subject: [PATCH] feat(history): editable project name, related files downloads, fix step2 navigation Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/api/graph.js | 14 ++ frontend/src/components/HistoryDatabase.vue | 226 +++++++++++++++++++- locales/ca.json | 12 +- locales/en.json | 12 +- locales/es.json | 12 +- locales/zh.json | 12 +- 6 files changed, 273 insertions(+), 15 deletions(-) diff --git a/frontend/src/api/graph.js b/frontend/src/api/graph.js index 2f69efe4..238b704d 100644 --- a/frontend/src/api/graph.js +++ b/frontend/src/api/graph.js @@ -110,3 +110,17 @@ export function listProjects(limit = 50) { method: 'get' }) } + +/** + * Actualitza el nom d'un projecte + * @param {String} projectId + * @param {String} name + * @returns {Promise} + */ +export function updateProjectName(projectId, name) { + return service({ + url: `/api/graph/project/${projectId}`, + method: 'patch', + data: { name } + }) +} diff --git a/frontend/src/components/HistoryDatabase.vue b/frontend/src/components/HistoryDatabase.vue index 1e022baa..b58c4819 100644 --- a/frontend/src/components/HistoryDatabase.vue +++ b/frontend/src/components/HistoryDatabase.vue @@ -95,6 +95,9 @@ + + +
@@ -114,7 +117,20 @@