Skip to content

B2 · Media #374

Done
Done

Description

@bubulux

Part of #371.

Scope

The upload pipeline with original, preview and thumbnail; EXIF and the angle of view; the Photo app; collections with their colour and marks; import in the Studio; image delivery in three sizes.

Done when

Photos uploaded in the Studio show in Media with their facts.

Specification

Rule for the build: the prototypes show the design, not the feature list. What today's app can do stays unless a workshop page says it goes. Take the inventory for this step from the current code, from docs/features/, and from the "Not prototyped" list of the UX page.

Into the design system

Carried over from the design track's step D4 (#341): pieces that are prototype code today and belong in packages/design.

  • The upload badge on a tile (waiting, preview sent, stuck)
  • The collection marks (bar below, bar left, dot, frame) and the stacked collection tile

Activity

  1. added
    enhancement
    on Nov 23, 2026
  2. bubulux commented on Nov 24, 2026

    @bubulux
    CollaboratorAuthor

    Carried over from B0 (#372, PR #385), to do in this step:

    • Register the photo and collection file types in packages/model; add the photos table as a new numbered migration.
    • purge in apps/worker/src/files.ts is the one place rows leave the table: remove a photo's stored objects there, and only when the last photo sharing them is purged.
    • Storage per workspace is zero since B0: bring back the per-workspace rows in storage-stats.ts, the numbers in the admin plane (apps/admin/src/index.ts, storage.ts) and the photo part of the metadata repair (objects.ts) for the new object layout.
    • GET /api/files is not paged; Media needs paging.
    • The auth provider's upload capability is unused since the old upload route went: ask it again on the new upload routes.
    • The demo seed script was removed with the old API: write a new one once there are photos to seed.
    • A photo uploaded into a folder or collection that is gone meanwhile must not be rejected (the capture rule): the upload route puts it at the top level, unlike the strict PUT /api/files/:id.
  3. bubulux commented on Nov 24, 2026

    @bubulux
    CollaboratorAuthor

    Correction to the note above (owner, 2026-11-24): the object metadata repair is removed for good and is not rebuilt in this step. Storage per workspace still comes back here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions