feat(workspace,editor): creation dans le dossier courant + sync live du titre (sidebar/header)
FlowDeck CI / lint (push) Successful in 54s
FlowDeck CI / test (push) Successful in 5m50s
FlowDeck CI / docker (push) Successful in 47s

- creation fichier/dossier a la racine du dossier courant ou d'un dossier cible (context-menu, boutons de survol) via createPage/showCreateFolderModal(parentId)
- instances de modeles en tant qu'enfant d'un dossier (parent_id) ; nom vide -> 'Untitled'
- sidebar de la librairie rafraichi apres delete/move/duplicate/rename (_syncSidebar)
- editeur: le titre se synchronise en direct dans le sidebar, le breadcrumb et l'onglet (pages et fichiers) et persiste via PUT /board/api/pages/{id}
This commit is contained in:
2026-09-14 17:05:03 -04:00
parent 4038e9bdad
commit 41c1d315d3
8 changed files with 110 additions and 15 deletions
+10
View File
@@ -168,6 +168,16 @@ document.addEventListener('alpine:init', function () {
this.wsId = d.workspace_id || 0;
} catch (e) { this.crumbs = []; }
}
// Keep the breadcrumb in sync when the open page is renamed in the editor.
var self = this;
window.addEventListener('flowdeck:page-renamed', function (e) {
var d = e && e.detail;
if (!d || d.id == null) return;
var id = String(d.id);
self.crumbs = self.crumbs.map(function (c) {
return String(c.id) === id ? Object.assign({}, c, { label: d.title || 'Untitled' }) : c;
});
});
},
get display() {