Skip to content

4.5.0

Choose a tag to compare

@nmaillat nmaillat released this 01 Oct 09:39
· 16 commits to master since this release
207082e

Version Summary

Version 4.5.0 introduces comprehensive workspace access control with Terms & Conditions and multi-asset sharing capabilities, complemented by server-side rendering of public share pages for improved performance and SEO. The release significantly enhances attribute management with built-in attributes for collection filtering and direct access, refactors workspace logo and terms PDF storage as File entities with multi-part S3 upload support, adds caching optimizations for asset renditions and attributes, and implements removal of definitions in suggestions alongside new locale support for entity suggestions.

Workspace Terms & Conditions and Multi-Asset Sharing

  • Share now holds multiple assets (share_asset join table, same-workspace enforced); public page lists all assets with per-asset rendition URLs.
  • Workspace Terms & Conditions: versioned content (text rendered with dompdf, or directly provided PDF stored in object storage), signatures recorded per version, re-signature required when terms change.
  • Sign endpoint (POST /workspaces/{id}/terms/sign) and terms.pdf download.
  • Exports: include asset attachments and the workspace terms PDF (opt-in per workspace); export dialog gates on unsigned terms.
  • Per-workspace logo (URL or data URI) with fallback to the service logo.
  • Shared page displays workspace logo, terms and attached files (public attachment download route gated by the share token).
  • WorkspaceVoter::READ now also requires the current Terms & Conditions version to be signed (workspace owner and anonymous access exempt); READ_NO_TERMS keeps the workspace and its terms fetchable so they can be presented and signed.
  • Terms are presented on arrival in Databox: WorkspaceTermsGate lists unsigned workspaces (termsUnsigned flag on the list output) and asks to accept each one before its content becomes accessible.
  • Terms text is translatable (TranslationsTrait on TermsVersion, termsTranslations input, locale-resolved text output, TranslatedField in the workspace form); translation changes create a new version.

Server-Side Rendering of the Public Share Page

  • Node SSR server (server.mjs): Vite middleware mode in dev, built artifacts in production; SSR errors fall back to the SPA shell.
  • entry-server prefetches the share (react-query), renders the standalone ShareApp tree, inlines critical CSS (@emotion/server) and injects title/OpenGraph tags; index.tsx hydrates share URLs, SPA elsewhere.
  • SSR-safe module graph: browser guards in @alchemy/i18n and initSentry, leaflet and FileAnalysisChip behind React.lazy, Layout enum split out of the AssetList barrel, moment CJS locales, ssr.noExternal for CJS interop packages.
  • Comprehensive SSR documentation in doc/tech/Databox/ssr.md.

Terms PDF and Workspace Logo as File Entities

  • POST /workspaces/{id}/terms (multipart upload) sets the provided terms PDF, DELETE removes it; replaces the base64 data URI on workspace PUT.
  • POST /workspaces/{id}/logo uploads a logo image stored in object storage (png/jpeg/gif/webp/svg, signed URL output), DELETE removes it.
  • Uploaded terms PDF and logo become File entities attached to the workspace (FileManager::createFileFromMultipartUpload): TermsVersion now references pdfFile, Workspace gets a logoFile relation.
  • S3 multipart upload flow ({multipart: {uploadId, parts}}) instead of HTTP multipart/form-data; completion is idempotent so retries and tests do not re-hit S3.
  • TermsManager validates/checksums the stored object by streaming and drops duplicate uploads; LogoManager references the uploaded path.
  • Client uses databoxMultipartUpload (chunked, direct-to-S3) before posting the multipart payload.
  • Replaced or duplicate uploads are cleaned up (stored object + entity).
  • LogoManager resolves the displayed logo (uploaded file first, then URL) and embeds the uploaded file as data URI in the generated PDF.

AQL operators change

  • CONTAINS and STARTS WITH now ignore case by default (ES case_insensitive
    on wildcard/prefix queries).
  • Append CASE SENSITIVE to the condition to
    require an exact case match, e.g. title CONTAINS "Foo" CASE SENSITIVE.

Built-in Attributes and Collection Filtering

  • Add built-in attributes for collection filtering and direct collection access.
  • Add sorting by creation date to basket search and update schema.
  • AttributeFilterRule replaces TagFilterRule (AQL conditions with multiple user/group targets).
  • AQL adding CASE SENSITIVE for CONTAINS, NOT CONTAINt, s an

Attribute Caching and Optimization

  • Implement caching for asset renditions and attributes to optimize performance.
  • Refactor file analysis handling and move detailed analysis to a separate table.
  • Add file analysis state management and presentation logic.
  • Remove attribute index handling and implement suggestions field for asset index.

Entity Suggestions Enhancement

  • Add locale support for entity suggestions and enhance suggestion handling.
  • Implement removal of definitions in suggestions and add corresponding tests.
  • Remove unused buildTagFilterQuery method and clean up reference documentation.

Other Improvements

  • Update project configuration and dependencies, improve cache handling.
  • Update dependencies and improve project scripts for better compatibility.
  • Update collection cache key format and bump doctrine bundle version to 2.19.1.
  • ShareTermsDialog component for terms acceptance and manage storage.
  • Model cleanup: TermsVersion.pdfFile/pdfChecksum renamed to file/checksum; the external-URL logo setting is removed, the logo is only a File attached to the workspace.

What's Changed

New Contributors

Full Changelog: 4.4.2...4.5.0