Packages
A Package is a folder for Panes. It groups the Panes that together make one capability a person can name, such as scenario planning, categorization, or reporting settings, so collaborators can find them, review them together, and move them as one module. A Package holds Panes and other Packages. It is not a route and it is never drawn. A Package may also be the data layer of its capability: give it a Perception, and it gets Policies of its own. Its Perception declares the type of the rows people save on it and its own data, and declares no Panes. Its Policies govern its Perception, its Policies and its data, as a Pane’s govern a Pane. A data layer may own Plots: its Perception declares the contract of each one, its Policies govern who reads them and which rows, and the Panes it holds read them by name, as they read their own. A data layer also holds rows of its Perception’s type, keyed by the Package. Every Pane it holds reads and saves them as packages.<handle>.preferences, reads the Package’s data as packages.<handle>.data, and proposes changes to that data with packages.<handle>.data.propose, as it proposes changes to its own. The Package’s Policies decide all three. SQL reads the rows as parables.<parable>.<package>. Put rows that several Panes share there. A Package’s rows are ordinary rows. A type with a Parable.Subject, an Identity.Signer or an Identity.Recipient field stays on a Pane, and so do rows across Workspaces, overrides and preload. A Policy reads a Page’s or a Pane’s row, never a Package’s. A data layer may also hold one code module, in tsx: shared code, such as a helper or a component several Panes draw. The Panes it holds import it as @parable/<parable>/<package>, and every Pane on a Page shares one copy of it, so state the module keeps is shared too. The module imports only the runtime libraries, the shared controls and Perception types, never a Pane. Put code that more than one Pane needs there, never in a Pane that draws nothing. A Package never owns a Palette. A Package without a Perception is only a folder: it has no value, owns no Plot and grants no access. Turning a folder into a data layer needs a seat that edits the Parable and create.pane on the Home Page; each later change to it is judged by its own Policies.
A Pane is something a person sees, so never make a Pane that only holds Plots, rows or code for other Panes: put them in the data layer that holds those Panes. To move an older holder Pane, one whose code draws nothing, into its data layer, make one edit_pieces save that first picks the Package for its Plots, because a Plot answers to its owner’s Policies: if the data layer is still a folder that owns no Plot, give it a Perception and the Policies of the holder Pane; if it owns Plots, or already has Policies that differ from the holder Pane’s, leave it as it is, because its Policies decide who reads its other Plots, saved rows and data, and put the Panes that read those Plots in a new data-layer Package inside it instead, with the Policies of the holder Pane. Move no Pane out of another data-layer Package: the filters that reach a Pane also cover the Plots of each Package that holds it. The same save then declares the contract of each of its Plots in the Package’s Perception, makes the Package the owner of each of those Plots, moves its shared code into the Package’s module and points each import there, and deletes the Pane. A folder that becomes a data layer gets the default Policies unless the save gives it others. A Plot keeps its key and handle when its owner changes, so SQL that reads it by name keeps working. The move needs delete on the Pane’s Plots and create on the Package’s. Rows that people saved on the Pane stay on it, so keep the Pane while it holds saved rows. Check a Pane notes each holder Pane that no Page shows.
Packages appear with Pages in the Pieces view. Root Packages sit beside Pages, and a Package can contain nested Packages. The tree shows Home first and then the root Packages, sorted by their own order. Home’s order does not count, so a first root Package can take order 0. Two root Packages cannot share an order. The Packages and Panes inside one Package share one order, so give each a different order. Each Pane keeps its own Perception, Plots, Palette, and Policies, and they travel with it wherever it moves. Pages stay in the Page hierarchy: a Package never contains a Page, and a Page uses a Pane by declaring it in its Perception, not by copying a Package. A new Package needs a name, an icon and a one-sentence description of the capability it groups, saved together. Every Package, like every Piece, has a handle, a camelCase name, and a permanent identifier underneath it, so a rename or a move keeps references intact. Pages, Packages, Panes, Plots and Reports share one handle namespace in a Parable, so a Package and a Page cannot both be deals.
A Package’s icon is a box, a folder or a piece: the things a Package is and holds. Give a Package one of these Font Awesome glyphs and no other, stored as fa:sharp:solid-duotone:<glyph>, for example fa:sharp:solid-duotone:box-open. The icon picker offers people the same list.
- Boxes: box, box-open, box-open-full, box-archive, box-taped, box-check, box-circle-check, box-heart, box-dollar, box-isometric, box-isometric-tape, box-magnifying-glass, box-arrow-down, box-arrow-up, box-arrow-down-arrow-up, box-arrow-down-magnifying-glass, boxes-stacked, boxes-packing, square-fragile, square-this-way-up, toolbox, treasure-chest, gift, gifts, crate-empty, crate-apple, container-storage, pallet-box, pallet-boxes, cart-flatbed-boxes, dolly, hand-holding-box, people-carry-box, person-carry-box, truck-ramp-box, parachute-box, conveyor-belt-boxes.
- Folders: folder, folder-open, folder-closed, folders, folder-tree, folder-grid, folder-gear, folder-bookmark, folder-heart, folder-image, folder-user, folder-music, folder-medical, folder-check, folder-plus, folder-minus, folder-xmark, folder-magnifying-glass, folder-arrow-down, folder-arrow-up, folder-arrow-left, folder-arrow-right, cabinet-filing.
- Pieces: puzzle, puzzle-piece, puzzle-piece-simple, shapes, cube, cubes, cubes-stacked, block, chess-pawn-piece, chess-knight-piece, chess-bishop-piece, chess-rook-piece, chess-queen-piece, chess-king-piece.
- Name the capability. Ask Ponder to group by what a person would call the capability, not by team, file, or storage location. Ponder chooses a clear name, an icon from that list and a one-sentence description.
- Keep the tree shallow. A Package earns its place when it makes discovery, reuse, review, or maintenance easier. Avoid a Package for a single Pane unless that grouping has a stable meaning for customers.
- Place the Panes. Ponder puts each Pane that belongs to the capability inside the Package, including the Panes that configure it, so maintainers find configuration next to what it configures.
- Before a move or removal, ask Ponder to list every Pane in the Package and every Page or Pane whose Perception declares one of them. Move with the same identities, and repair references before removing anything.
- Review the Patch, and publish it when the Parable uses Published Versions.