Skip to content

✨ Image Naming - Standardize image filenames to kebab-case across Rules V3 (TinaCMS) #2680

Description

@tiagov8

Requested by: @tiagov8 via YakShaver.ai 🦬
cc: @tiagov8, @Marxoz, @PothieuG, @Freego1783 @Aibono1225 @hveraus

Hi Team!

  🟥  Watch the video (1 min 33 sec)

  Url from screen share: https://github.com/SSWConsulting/SSW.Rules.Content/blob/main/public/uploads/rules/book-developers-for-a-project/rule.mdx?plain=1

Pain

Create an automated task for Rules V3 (TinaCMS) to detect and rename image files that do not follow the SSW file naming convention. The task should standardize image filenames to kebab-case using lowercase letters and dashes instead of spaces or capital letters. It should also update all affected image references throughout the rules content to prevent broken links. Examples of issues identified include filenames with spaces, capital letters, non-descriptive date-based names, and inconsistent casing.

Acceptance Criteria

  1. An automated process exists to scan image filenames used in Rules V3 (TinaCMS).
  2. Image filenames containing spaces are renamed to use dashes.
  3. Image filenames containing uppercase letters are converted to lowercase.
  4. Non-descriptive image filenames are flagged or renamed to a descriptive kebab-case format where possible.
  5. All updated image filenames have their references automatically updated across the project.
  6. No broken image references exist after the renaming process is completed.
  7. The updated filenames comply with the SSW naming convention for documents and files.
  8. The automation can be rerun safely without creating duplicate or conflicting filenames.

Screenshot

Screenshot
Figure: Inconsistent image filenames with spaces, capitals, and non-descriptive names

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions