Skip to content

Replace sales materials with new versions and limit assistants to approved ones #53

Open

Description

@imshashank

Approving and archiving materials works: set_material_status (packages/core/materials.ts) with UI in src/components/materials.tsx and tests in tests/material-library.test.ts. What is left:

  • Versions. There is no way to replace a material with a new file while keeping earlier versions downloadable; uploadAsset always inserts a new row. Note that assets.version is the optimistic-concurrency counter, not a content version, so this needs its own field or table.
  • Assistant restriction. read_material and list_materials return drafts and archived materials too. An organization should be able to limit assistants to approved materials.

Done when

  • A replace-version business operation keeps earlier versions downloadable and records the change.
  • Assistants can be restricted to approved materials, enforced in the operation layer.
  • Tests cover permissions, the restriction, and that replacing a version does not change what an already-approved draft referenced.

Activity

  1. added
    help wanted
    area: ui
    area: storage
    on Oct 6, 2026
  2. changed the title [-]Approve, archive and replace versions of sales materials[/-] [+]Replace sales materials with new versions and limit assistants to approved ones[/+] on Oct 6, 2026
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

    area: storagearea: uihelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions