event.key === 'Escape' && onclose()} />

Cartesium

My graphs

{#if status}

{status}

{/if} {#if tab === 'drafts'}

Drafts in this browser

Private, device-local copies. They are not synced to your AT Protocol account.

{#if filteredDocuments.length === 0}

{activeFilter === 'all' ? 'No saved drafts yet' : `No saved ${activeFilter.toUpperCase()} drafts yet`}

Use Save or Save as in the expression panel to keep a graph in this browser.

{:else}
{#each filteredDocuments as document (document.id)}

{document.document.snapshot.name || 'Untitled graph'}

{document.document.kind.toUpperCase()} Updated {formatDate(document.updatedAt)} {#if document.id === activeDocumentId}Open now{/if}

{#if spacesEnabled && publisherDid} {/if}
{/each}
{/if} {:else if tab === 'private'}

Private Space documents

Mutable documents synced to your AT Protocol account. Space access is not end-to-end encryption.

{#if privateWarning}

{privateWarning}

{/if} {#if privateLoading && privateDocuments.length === 0}

Loading private documents…

{:else if privateError && privateDocuments.length === 0}

Could not load private documents

{privateError}

{:else if filteredPrivateDocuments.length === 0}

{activeFilter === 'all' ? 'No private documents yet' : `No private ${activeFilter.toUpperCase()} documents yet`}

Save a new document while signed in to create one in your personal Space.

{:else}
{#each filteredPrivateDocuments as document (document.uri)}

{document.title}

{document.kind.toUpperCase()} Updated {formatDate(document.updatedAt)} {#if document.rkey === activePrivateDocumentRkey}Open now{/if}

{/each}
{#if privateError}

{privateError}

{/if} {#if privateCursor} {/if} {/if} {:else}

Publications

Immutable public records stored in your PDS. Editing one opens a new local copy.

{#if publisherDid} {/if}
{#if !publisherDid}

Sign in to see your publications

Your public graphs are read directly from your AT Protocol repository.

{:else if publishedLoading && publishedGraphs.length === 0}

Loading publications…

{:else if publishedError && publishedGraphs.length === 0}

Could not load publications

{publishedError}

{:else if publishedGraphs.length === 0}

No published graphs

Publish from the calculator to create an immutable public record in your PDS.

{:else}
{#each publishedGraphs as graph (graph.uri)}

{graph.title}

{graph.kind.toUpperCase()} {graph.version.toUpperCase()}

{graph.createdAt ? `Published ${formatDate(graph.createdAt)}` : 'Published document'} {graph.discoverability}

Open public page
{/each}
{#if publishedError}

{publishedError}

{/if} {#if publishedCursor} {/if} {/if} {/if}