Sync item folders #44

Closed
opened 2026-10-14 22:32:54 +00:00 by Syndria98 · 21 comments
Owner

Make that item folders of foundry also sync with dragonroll items. If necessary, add the feature to dragonroll to add folders to items

Make that item folders of foundry also sync with dragonroll items. If necessary, add the feature to dragonroll to add folders to items
Syndria98 added the ai-ready label 2026-10-14 22:32:54 +00:00
Agent added the working label 2026-10-14 22:39:26 +00:00
Collaborator

I'll start by exploring the codebase to understand how Foundry sync and items work.

I'll start by exploring the codebase to understand how Foundry sync and items work.
Collaborator

Now let me look at the Foundry module side — how snapshots are built and sent:

Now let me look at the Foundry module side — how snapshots are built and sent:
Collaborator

Now let me look at the Note model, the note route (folder handling), and the existing tests:

Now let me look at the Note model, the note route (folder handling), and the existing tests:
Collaborator

Now let me examine the frontend to understand how items are displayed and where folders would fit:

Now let me examine the frontend to understand how items are displayed and where folders would fit:
Collaborator

Let me look at the remaining relevant frontend pieces and the git history for conventions:

Let me look at the remaining relevant frontend pieces and the git history for conventions:
Collaborator

Let me examine how folders are used in the frontend and check the remaining item-related components:

Let me examine how folders are used in the frontend and check the remaining item-related components:
Collaborator

Now I have a clear picture. Let me check MapPins.js for the existing folder-path convention and the icons available:

Now I have a clear picture. Let me check `MapPins.js` for the existing folder-path convention and the icons available:
Collaborator

I have everything I need. Let me start implementing — first the backend models:

I have everything I need. Let me start implementing — first the backend models:
Collaborator

Now the Foundry sync route — the folder tree mirroring and item filing:

Now the Foundry sync route — the folder tree mirroring and item filing:
Collaborator

Let me verify the Foundry Folder data model so the module filters world folders correctly:

Let me verify the Foundry Folder data model so the module filters world folders correctly:
Collaborator

Now the Foundry module — send the world's item folder tree and each world item's folder:

Now the Foundry module — send the world's item folder tree and each world item's folder:
Collaborator

Now let me wire Foundry folder events so folder changes reach Dragonroll even when no item changed:

Now let me wire Foundry folder events so folder changes reach Dragonroll even when no item changed:
Collaborator

Let me refine the backend sync: the module always sends the complete tree, so the world owns it:

Let me refine the backend sync: the module always sends the complete tree, so the world owns it:
Collaborator

Now the item routes — expose the folders alongside items:

Now the item routes — expose the folders alongside items:
Collaborator

Let me wire the Foundry folder hooks into the module's event loop:

Let me wire the Foundry folder hooks into the module's event loop:
Collaborator

Now the frontend: a small pure service that groups items under their synced folders:

Now the frontend: a small pure service that groups items under their synced folders:
Collaborator

Let me rewrite that service cleanly:

Let me rewrite that service cleanly:
Collaborator

Item folders must not leak into the note tree — filter the note/folder routes:

Item folders must not leak into the note tree — filter the note/folder routes:
Collaborator

Now let me write the tests for this feature:

Now let me write the tests for this feature:
Collaborator

Implementation is ready for review: #46

Implementation is ready for review: https://git.aranroig.com/Syndria98/dragonroll/pulls/46
Collaborator

The automated implementation stopped because of an internal error. Please check the worker logs for details.

The automated implementation stopped because of an internal error. Please check the worker logs for details.
Agent removed the working label 2026-10-14 23:39:27 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Syndria98/dragonroll#44