feat: sous-pages — parent_id, sidebar hiérarchique, bouton +New sub-page
FlowDeck CI / test (push) Failing after 3s
FlowDeck CI / docker (push) Has been skipped

- DB: parent_id dans table pages (ALTER TABLE migration auto)
- Sidebar: pages parent_id IS NULL affichées, sous-pages indentées en dessous
- API: create_page accepte parent_id (0 = racine)
- JS: newSubPage extrait page ID et passe parent_id
- page_editor: liste les sous-pages + bouton '+ New sub-page'
This commit is contained in:
2026-07-08 16:07:25 -04:00
parent b826cfc247
commit 4c49d43c66
5 changed files with 57 additions and 8 deletions
+2 -1
View File
@@ -436,7 +436,8 @@
},
newSubPage(parentId) {
const project = this.workspaceKey || '';
fetch(`/board/api/pages?title=New%20page&section=Private&project=${encodeURIComponent(project)}`, {
const pid = parentId.replace('page/', '');
fetch(`/board/api/pages?title=New%20sub-page&section=Private&project=${encodeURIComponent(project)}&parent_id=${pid}`, {
method: 'POST',
headers: { 'X-CSRF-Token': this.getCsrfToken() }
})