Add a space
Spaces live in the ontology’sspaces/ folder, such as ontologies/crm/spaces/, a workspace package that depends on @trytilde/spaces. Each folder is one space, and its name is the space’s id. A page default-exports a React component, and exports a title. Spaces in the project guide builds a complete one.
@trytilde/spaceshas the hooks, and layout, metric, chart, and data grid components with a Tailwind preset for light and dark themes. List it inpackage.json.tilde deploybuilds the spaces with it.@tilde/contractexports one typed reference per read, action, and realtime view. The build generates it from the ontology, so don’t list it. Importing a handler that does not exist is a build error.
ontologies/crm/spaces/pipeline/index.tsx
limit, the window’s size, beside query, the view’s own input:
Who can open a space
Opening a space is a Cedar decision, like any other:Open spaces in Live
1
Serve the environment in Live
Switch on Serve its spaces in Live when you create the environment.
2
Grant access
Give people
view on the project, and an openSpace policy for each space.3
Open Live
People select Live, then the space. Tilde opens it for their own identity, so every call is decided as
user:<id>.