Skip to content

🦙🚨 Bug - TinaCMS Dependency - Images uploaded via TinaCMS editor are not synced to source control #2400

@KostaMadorsky

Description

@KostaMadorsky

Requested by: @KostaMadorsky via YakShaver.ai 🦬
cc: @KostaMadorsky, @KahaMason, @Marxoz, @PothieuG, @Freego1783, @jakebayliss, @JackDevAU, @brookjeynes-ssw , @wicksipedia

Hi Team!

  🟥  Watch the video (6 min 35 sec)

  Url from screen share: SSWConsulting/SSW.Rules.Content#1178

Pain

When editing Rules V3 (TinaCMS) content using the TinaCMS editor, images uploaded via the Media Manager (drag & drop or upload) are stored only in TinaCloud and are not committed to the Git repository. Although the editor warns that a pull request is required, the image still appears selectable and can be inserted and saved. After refresh or deployment, the rule references an image that does not exist in source control, causing images to be missing locally and in non-production environments. Uploading images through a GitHub pull request works correctly, highlighting an inconsistency and risk of content/image loss when using the UI-only workflow.

Acceptance Criteria

  1. Images uploaded via the TinaCMS editor are committed to the connected Git repository as part of a pull request
  2. The editor prevents saving or inserting images that are not synced to source control
  3. Media Manager only shows images that exist in source control or clearly indicates their sync status
  4. After refresh, deployment, or environment switch, images referenced in rules continue to render correctly
  5. Behavior is consistent between UI-only edits and pull-request-based workflows
  6. No images remain stored only in TinaCloud without a corresponding Git commit

Reproduce Steps

  1. Start editing a rule via Rules V3 (TinaCMS) editor and Save so it creates a pull request
  2. Edit an image and open the Media Manager
  3. Drag and drop or upload a new image via the editor UI
  4. Dismiss the warning indicating a pull request is required
  5. Insert the uploaded image into the rule and click Save
  6. Refresh the page or check the GitHub repository
  7. Observe that the rule references the image but the image file does not exist in the pull request

Screenshot

Screenshot
Figure: Image uploaded via editor exists only in TinaCloud and is missing from source control after refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions