Skip to content

Open source CapCut alternative.

TypeScript

docs: note folders nest

David Le90d458753734
diff --git a/docs/guides/cut/README.md b/docs/guides/cut/README.md
index 10f11e37..3f40b1b3 100644
--- a/docs/guides/cut/README.md
+++ b/docs/guides/cut/README.md
@@ -100,7 +100,7 @@ Every client call goes through a backend seam (`site/src/cut/lib/backend/`): the
The library is the exception, because it is the user's one shelf across places: every residency keeps a library, and the Library lists them at once as one listing, newest first, with a badge saying which shelf each item is on. So a cloud project can pull a clip off this Mac, and a browser project can pull one out of the cloud. A shelf that lives in the page holds its media in the same origin-private storage its projects use, and a link imported onto it rides the cloud worker — a page can't fetch a video off a YouTube link — with the bytes coming back down and the staged cloud copy dropped after. The Mac's shelf takes that same route as a second try: sites refuse fetches on the strength of the tool making them, so a link the engine's own tools can't bring back is fetched by the worker and lands here anyway. Each shelf is remembered on its own, so the Library tab keeps listing the Mac's items with the app closed, read-only, and clicking one raises the same banner an unreachable local project does. The editor's library picker asks only for what it can reach, since an item it cannot copy into the project has no business in a picker. Each item's own shelf answers for it: previews, renames, and deletes go to the backend it came from, and folders belong to one shelf, so items file only into folders beside them. Adding to a project is the one crossing: on the project's own shelf the server copies the file without the bytes leaving it, and off it the browser carries them down and back up. Filing an item into a folder on another shelf crosses the same way — the bytes come down and go back up, a file with its cover and a template with its own media, and the copy left behind comes off.
-The phone feeds the cloud shelf. Clips recorded in the iOS app upload themselves to it, marked as camera footage; that marker gives the desktop its Camera Roll — a tab of phone clips kept out of the main Library grid, and a locked Camera Roll folder in the editor's library panel so the footage drops into any project. A recording arrives named after the clock it was shot on, which says nothing about which clip it is, so each one is titled from itself: the page reads the opening of the clip and one frame, a light model names it in a few words, and the shelf keeps that answer, so the work happens once and the card, the viewer and the assistant all read the same title. The tile shows the title with the date under it, and hands over the whole line when the tile is too narrow to hold it. The file's own name stays what a prompt's reference resolves against. Inspiration saved on the phone lands in an Inspiration folder on the same shelf, links riding the same worker import every shelf uses. What the phone put on the shelf it also mirrors: deleting a clip from the Camera Roll or the Library tombstones it, and the phone deletes its own copy on the next pass, so the roll on the phone and the roll at the desk stay one set. Notes are edited on both sides: the phone and the desktop's Notes tab work the same set, the newer edit winning, deletes carrying across. Notes file into folders of their own, on the shelf's folder table: the desktop files them by dragging onto the same folder tiles the Library uses, the phone by a folder list it opens like any other, and a folder made on either side is on the other by the next pass. Every request from the app carries a client marker, the server remembers accounts it has seen it from, and only those accounts get the phone tabs — a desktop-only account's sidebar never changes. The app's own guide covers the phone side: [The iOS App](../ios-app.md).
+The phone feeds the cloud shelf. Clips recorded in the iOS app upload themselves to it, marked as camera footage; that marker gives the desktop its Camera Roll — a tab of phone clips kept out of the main Library grid, and a locked Camera Roll folder in the editor's library panel so the footage drops into any project. A recording arrives named after the clock it was shot on, which says nothing about which clip it is, so each one is titled from itself: the page reads the opening of the clip and one frame, a light model names it in a few words, and the shelf keeps that answer, so the work happens once and the card, the viewer and the assistant all read the same title. The tile shows the title with the date under it, and hands over the whole line when the tile is too narrow to hold it. The file's own name stays what a prompt's reference resolves against. Inspiration saved on the phone lands in an Inspiration folder on the same shelf, links riding the same worker import every shelf uses. What the phone put on the shelf it also mirrors: deleting a clip from the Camera Roll or the Library tombstones it, and the phone deletes its own copy on the next pass, so the roll on the phone and the roll at the desk stay one set. Notes are edited on both sides: the phone and the desktop's Notes tab work the same set, the newer edit winning, deletes carrying across. Notes file into folders of their own, on the shelf's folder table, and folders file into folders: the desktop files them by dragging onto the same folder tiles the Library uses — a folder tile drags too, onto another tile or back out to a crumb — the phone by dragging a card or a row onto a folder row, and every level shows the same shelf, grid and New folder the top does, and nothing above it. A folder made on either side is on the other by the next pass, and deleting one brings what it held up a level. Every request from the app carries a client marker, the server remembers accounts it has seen it from, and only those accounts get the phone tabs — a desktop-only account's sidebar never changes. The app's own guide covers the phone side: [The iOS App](../ios-app.md).
Some of what the Library holds is lent. Most items are copied when they are used — a clip's bytes become the project's own — but a font is pointed at: every title set in it names it, and the file stays on the shelf where every project can reach it. Lent items follow three rules. They are identified by their bytes, so the same file on two shelves is one entry in the menu and one id in a document. A new one lands on the shelf every surface can read, whenever it is small and the account has room. And a project moving to the cloud takes what it points at with it, so a title keeps its typeface when it starts rendering there — since the id is the bytes, not a word of the document changes. Fonts are the first of these; a .ttf, .otf, .woff or .woff2 dropped on the Library is filed in folders, deleted, and counted against storage like anything else, and every project offers it for titles and captions. A font download arrives as a zip, so the zip is droppable: the faces come out of it and the licence text stays behind, and a family of eighteen weights becomes a single entry. The file is checked by installing it through the renderer's font seam before any bytes move, so what lands is what a preview and an export can draw with, and the family name comes off the font's own metadata. That same moment draws the specimen the shelf keeps as the file's cover, so a font card shows the alphabet in its own face whether or not the page looking at it has that face installed. A new account starts with an empty Fonts folder to say the shelf takes them; it is an ordinary folder and can be deleted. A render job reaches the cloud shelf alone, which is what those rules are for. A font filed into a folder belongs to that folder's shelf like anything else, and a full account keeps its font on the shelf it was working from: it draws in the tab, is marked in the font menu as living on this device, and falls back to the base face in a render job. A title set in a font that is later deleted falls back too, so nothing in a document has to be rewritten.
diff --git a/docs/guides/ios-app.md b/docs/guides/ios-app.md
index d16805d2..60886353 100644
--- a/docs/guides/ios-app.md
+++ b/docs/guides/ios-app.md
@@ -52,9 +52,11 @@ fails writes that reason on the item, so a card can never spin on a request
nothing is making any more. Notes merge both ways by last-writer-wins on the edit stamp,
with tombstones so a delete made offline on either side still lands on the
other. The folders notes file into travel with them, under ids whichever
-device made them chose; a folder carries no tombstone, so a folder the cloud
-listing no longer names was deleted elsewhere and its notes come back to the
-top level. Labels follow the same rule as folders: a note's labels ride its
+device made them chose. Folders file into folders the same way, and a folder
+goes up after the folder it sits in, so the cloud never meets a child before
+its parent. A folder carries no tombstone, so a folder the cloud listing no
+longer names was deleted elsewhere, and what it held — its notes and the
+folders inside it — comes up one level, on both sides. Labels follow the same rule as folders: a note's labels ride its
own write, and a label the listing no longer names comes off every note that
wore it. A note wears twenty labels at most, and both pickers stop offering
more at that count — the write past it is refused rather than trimmed, so a