diff --git a/app/routers/dashboard.py b/app/routers/dashboard.py
index 283f9ce..db3508b 100644
--- a/app/routers/dashboard.py
+++ b/app/routers/dashboard.py
@@ -528,9 +528,11 @@ async def local_workspace_tree(request: Request):
for r in roots:
with get_conn() as conn:
children = conn.execute(
- "SELECT id, title FROM pages WHERE parent_id=? ORDER BY created_at", (r["id"],)
+ "SELECT id, title, parent_section FROM pages WHERE parent_id=? ORDER BY created_at", (r["id"],)
).fetchall()
- item = {"id": r["id"], "name": r["title"] or "Untitled", "type": "page",
+ is_folder = r.get("parent_section") == "Workspace"
+ rtype = "folder" if is_folder else "page"
+ item = {"id": r["id"], "name": r["title"] or "Untitled", "type": rtype,
"children": [{"id": c["id"], "name": c["title"] or "Untitled", "type": "page"} for c in children]}
tree.append(item)
return {"tree": tree}
diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html
index b1a6f6e..0f5d86a 100644
--- a/app/templates/local_workspace.html
+++ b/app/templates/local_workspace.html
@@ -1,15 +1,16 @@
{% extends "base.html" %}
-{% block page_title %}My Workspace{% endblock %}
+{% block page_title %}{{ workspace_name }}{% endblock %}
{% block page_icon %}📁{% endblock %}
{% block topbar %}
{{ items | length }} item(s)
+{{ items | length }} item(s)
Create a new file or folder to get started
-Create a new file to start writing, or a folder to organize your content
+