PhoenixKitDocumentCreator. Web. ProjectDocumentsLive
(PhoenixKitDocumentCreator v0.5.2)
Copy Markdown
View Source
The Documents tab for the phoenix_kit_projects hub — this
module's phoenix_kit_project_extensions/0 contribution.
Unlike the config-linked tabs (CRM/entities/publishing), linkage here
is PER-DOCUMENT: V1 of this module's own migration chain added
project_uuid to documents, so a project can hold many documents and
a document belongs to at most one project. The tab lists the linked
documents, attaches unlinked ones, detaches, and links out to the
Google editor / the Document Creator admin.
Hub session contract (see PhoenixKitHelloWorld.Web.ProjectHelloTabLive):
off-router mount, no handle_params/3; "can_write" (HOST-resolved
authorization) gates attach/detach. Every read rescues to an empty
state — a provider hiccup must never crash the host project page.