Skip to content

[Bug]: 82 broken image references in the ADS component docs — dead Notion-hosted screenshots and missing docs/ images across 20 folders #42298

Open

Description

@auroraxo
  • I have searched the existing issues

Description

The component documentation (app/client/packages/design-system/ads/src/**/**.mdx) references 82 images that cannot load:

1. 9 external images are dead (HTTP 403).
DatePicker.mdx (2), SearchInput.mdx (2) and Tab.mdx (5) embed screenshots hosted on private Notion storage (https://s3-us-west-2.amazonaws.com/secure.notion-static.com/...). That bucket requires signed access, so these URLs return 403 Forbidden for everyone and render as broken images. Example from DatePicker.mdx (lines 40, 49):

![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/664c7a08-a953-49f9-89e4-f84396f06101/Untitled.png)
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bca765c3-3250-4735-980a-571139297389/Untitled.png)

2. 73 relative image paths point at files that do not exist in the repository.
Every component's .mdx references ./docs/*.png assets (anatomy, spacing, usage screenshots), but the docs/ directories are missing. Button.mdx alone references three of them:

![Button anatomy](./docs/button-anatomy.png)     <!-- app/client/packages/design-system/ads/src/Button/docs/button-anatomy.png -->
![Button spacing](./docs/button-spacing.png)     <!-- .../Button/docs/button-spacing.png -->
![iconbutton-usage-on-appsmith](./docs/iconbutton-usage-on-appsmith.png)

The GitHub contents API returns 404 Not Found for app/client/packages/design-system/ads/src/Button/docs on release, and a history query for button-anatomy.png returns zero commits — these paths were never in the tree. Distribution of the 73 missing paths:

directory under ads/src/ missing images
Documentation/docs 28
List/docs 8
Button, Callout, Checkbox, Collapsible, Input, Link, Menu, Popover, Radio, SegmentedControl, Select, Spinner, Switch, Tab, Tag, Toast, ToggleButton (2 each) 34
Documentation/CategoryTokens/docs, Modal 3

Total affected: 20 component/documentation folders, 82 broken references (9 external + 73 in-repo).

Steps To Reproduce

# 1. dead external (403):
curl -sI https://s3-us-west-2.amazonaws.com/secure.notion-static.com/664c7a08-a953-49f9-89e4-f84396f06101/Untitled.png | head -1

# 2. missing in-repo path (404):
curl -s -o /dev/null -w "%{http_code}\n" https://api.github.com/repos/appsmithorg/appsmith/contents/app/client/packages/design-system/ads/src/Button/docs/button-anatomy.png

# 3. or render any of these .mdx files on the release branch and watch the broken images

Environment

Release

Severity

Low (Cosmetic UI issues)

Additional context

Found by docrot, a documentation-rot scan that resolves every image reference in the markdown of the 100 most-used OSS repositories (appsmith is currently the largest single case in that corpus; raw results: auroraxo/docrot). For the Notion-hosted screenshots the likely fix is to move the images into the repo next to the .mdx files (or drop them if outdated); the docs/ image trees either need the screenshots committed or the references cleaned up. Happy to send a PR for either approach if maintainers say which way they want it.

Activity

  1. linear-code commented on Sep 27, 2026

    @linear-code
  2. Ingole712521 commented on Sep 29, 2026

    @Ingole712521

    Can i work on this

  3. auroraxo commented on Sep 29, 2026

    @auroraxo
    Author

    Hi @Ingole712521 — thanks for offering! Two things worth knowing before you invest time:

    1. The scope is two self-contained clusters (details and repro curls in the issue above):

    • 9 dead Notion-hosted screenshots in DatePicker.mdx / SearchInput.mdx / Tab.mdx — the S3 bucket returns 403 for everyone; fix is re-hosting them in the repo next to the .mdx files (or dropping them if the UI they show is outdated).
    • 73 ./docs/*.png references whose files were never committed (20 component folders) — either the screenshots get committed or the references get cleaned up.

    Each cluster is a useful PR on its own; you don't have to take all 82 at once.

    2. This issue is in the team's internal tracker (APP-16043) — maintainers are aware, and assignment is their call (I'm the reporter, not a maintainer here). Best to get an explicit go-ahead from an appsmith maintainer before doing the work, so it doesn't collide with whatever direction they picked internally.

    Verification when you're done: the two curl checks in "Steps To Reproduce" should return the image bytes / a 200, or a re-scan with docrot should show zero broken refs for these folders. Happy to re-run that scan from my side and report the result here either way. 🛠️

  4. auroraxo commented on Oct 8, 2026

    @auroraxo
    Author

    Hey @Ingole712521 — since you offered to work on this, here is the free pilot scan we promised in the issue: the complete per-file list, freshly re-run and line-verified, so you don't have to reconstruct it by hand.

    Free pilot scan — appsmithorg/appsmith @ 4b4d52cbe621 (branch release), scanned 2026-10-08T08:12:15Z

    Coverage: 130/130 markdown files, 443 image references (441 distinct), 0 fetch errors, tree not truncated. Re-verified line-by-line immediately after the scan: all 73 in-repo paths return 404 on raw.githubusercontent.com at that exact commit, all 9 external URLs return 403 to a normal browser User-Agent, while positive controls at the same host/commit return 200 (README.md, Button.mdx).

    Result: 82 broken references — unchanged since this issue was opened (2026-09-27).

    1. 9 external images, HTTP 403 (Notion S3 bucket denies everyone)

    # URL Referenced from
    1 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/664c7a08-a953-49f9-89e4-f84396f06101/Untitled.png app/client/packages/design-system/ads/src/DatePicker/DatePicker.mdx
    2 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bca765c3-3250-4735-980a-571139297389/Untitled.png app/client/packages/design-system/ads/src/DatePicker/DatePicker.mdx
    3 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f342ca47-bd9f-421e-91c6-9d11133cd10c/Screenshot_2023-07-10_at_10.52.35_AM.png app/client/packages/design-system/ads/src/SearchInput/SearchInput.mdx
    4 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3c351d97-6db9-4c1d-a05d-54489ead0cf4/Screenshot_2023-07-10_at_10.55.19_AM.png app/client/packages/design-system/ads/src/SearchInput/SearchInput.mdx
    5 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0fc14372-e43e-46a7-b07e-9bf63cef1bdb/Untitled.png app/client/packages/design-system/ads/src/Tab/Tab.mdx
    6 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2033b3f7-f7ae-456b-8d6a-de6cf617d0b9/Untitled.png app/client/packages/design-system/ads/src/Tab/Tab.mdx
    7 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/564dc7c6-83f3-41bb-b075-d2ca8d3fe19a/Untitled.png app/client/packages/design-system/ads/src/Tab/Tab.mdx
    8 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4e4bead4-7587-4406-b549-fa8994ad1bd6/Untitled.png app/client/packages/design-system/ads/src/Tab/Tab.mdx
    9 https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6130e245-6201-4e34-b9b3-1ca8f3ef103a/Untitled.png app/client/packages/design-system/ads/src/Tab/Tab.mdx

    2. 73 in-repo paths missing from the tree (24 files affected)

    Referenced from missing target(s)
    app/client/packages/design-system/ads/src/Button/Button.mdx ./docs/button-anatomy.png, ./docs/button-spacing.png, ./docs/iconbutton-usage-on-appsmith.png
    app/client/packages/design-system/ads/src/Callout/Callout.mdx ./docs/callout-anatomy.png, ./docs/callout-spacing.png
    app/client/packages/design-system/ads/src/Checkbox/Checkbox.mdx ./docs/checkbox-anatomy.png, ./docs/checkbox-spacing.png
    app/client/packages/design-system/ads/src/Collapsible/Collapsible.mdx ./docs/collapsible-anatomy.png, ./docs/collapsible-spacing.png
    app/client/packages/design-system/ads/src/Documentation/CategoryTokens/Introduction.mdx ./docs/categoryTokenStructure.png
    app/client/packages/design-system/ads/src/Documentation/DesignTokens.mdx ./docs/categorize-elements-in-ui.png, ./docs/labelled-input.png, ./docs/modal-remove-ambiguity, ./docs/parts-of-a-modal.png, ./docs/parts-of-a-switch.png, ./docs/styling-label-active-state.png, ./docs/styling-switch-checked-state.png, ./docs/styling-switch-default-state.png
    app/client/packages/design-system/ads/src/Documentation/Introduction.mdx ./docs/ads-banner.png, ./docs/how-to-access-ads-for-designers.mp4, ./docs/libraries-in-figma.png
    app/client/packages/design-system/ads/src/Documentation/Space.mdx ./docs/containers-in-ui.png, ./docs/external-spacing-12.png, ./docs/external-spacing-16.png, ./docs/internal-spacing-4.png, ./docs/internal-spacing-8.png, ./docs/layout-spacing.png, ./docs/padding-in-container-2.png, ./docs/padding-in-container-3.png, ./docs/padding-in-container.png, ./docs/space-grouping.png
    app/client/packages/design-system/ads/src/Documentation/Typography.mdx ./docs/correct-action-names.png, ./docs/correct-title-case-1.png, ./docs/correct-title-case-2.png, ./docs/incorrect-action-names.png, ./docs/incorrect-title-case-1.png, ./docs/incorrect-title-case-2.png, ./docs/text-component-figma.png
    app/client/packages/design-system/ads/src/Input/Input.mdx ./docs/input-anatomy.png, ./docs/input-spacing.png
    app/client/packages/design-system/ads/src/Link/Link.mdx ./docs/link-anatomy.png, ./docs/link-spacing.png
    app/client/packages/design-system/ads/src/List/List.mdx ./docs/list-item-anatomy.png, ./docs/list-item-description-right.png, ./docs/list-item-example.png, ./docs/list-item-interaction.png, ./docs/list-item-large.png, ./docs/list-item-medium.png, ./docs/list-item-spacing.png, ./docs/list-item-state.png
    app/client/packages/design-system/ads/src/Menu/Menu.mdx ./docs/menu-anatomy.png, ./docs/menu-spacing.png
    app/client/packages/design-system/ads/src/Modal/Modal.mdx ./docs/modal-anatomy.png
    app/client/packages/design-system/ads/src/Popover/Popover.mdx ./docs/popover-anatomy.png, ./docs/popover-spacing.png
    app/client/packages/design-system/ads/src/Radio/Radio.mdx ./docs/radio-anatomy.png, ./docs/radio-spacing.png
    app/client/packages/design-system/ads/src/SegmentedControl/SegmentedControl.mdx ./docs/segmented-control-anatomy.png, ./docs/segmented-control-spacing.png
    app/client/packages/design-system/ads/src/Select/Select.mdx ./docs/select-anatomy.png, ./docs/select-spacing.png
    app/client/packages/design-system/ads/src/Spinner/Spinner.mdx ./docs/spinner-anatomy.png, ./docs/spinner-spacing.png
    app/client/packages/design-system/ads/src/Switch/Switch.mdx ./docs/switch-anatomy.png, ./docs/switch-spacing.png
    app/client/packages/design-system/ads/src/Tab/Tab.mdx ./docs/tab-anatomy.png, ./docs/tab-spacing.png
    app/client/packages/design-system/ads/src/Tag/Tag.mdx ./docs/tag-anatomy.png, ./docs/tag-spacing.png
    app/client/packages/design-system/ads/src/Toast/Toast.mdx ./docs/toast-anatomy.png, ./docs/toast-spacing.png
    app/client/packages/design-system/ads/src/ToggleButton/ToggleButton.mdx ./docs/toggle-button-anatomy.png, ./docs/toggle-button-spacing.png

    Method / honesty notes

    • Scanner: our documentation-rot scanner (docrot v8), run 2026-10-08 08:12 UTC over all 130 markdown files at commit 4b4d52cbe621.
    • Every one of the 73 in-repo paths above was re-fetched on raw.githubusercontent.com at that exact commit immediately after the scan: 404, while control files at the same host/commit return 200 → genuinely missing, not rate limiting.
    • The 9 Notion-hosted screenshots return 403 to an ordinary browser User-Agent as well, i.e. the bucket denies everyone — re-hosting or deleting them is the fix.
    • Count is unchanged (82) since 2026-09-27, so nothing rotted further and nothing got fixed meanwhile.

    If it helps, use the list above as the checklist; each row maps 1:1 to a file to fix. Disclosure: we run this scan as a paid service (US$1 per full-repo scan, result before payment — https://codebyaurora.com/#pricing); this pilot run of your repo is free and the issue above remains a plain bug report either way. — Aurora, codebyaurora.com

  5. facundofarias commented on Oct 27, 2026

    @facundofarias

    The issue seems to contain two separate jobs: recovering the missing originals and making the recovered screenshots accessible. Hosting alone won't restore the missing files. Disclosure: I build PixelVault (https://pixelvault.dev). If maintainers prefer external hosting for the recovered public screenshots, I'd be happy to help evaluate a small upload-and-embed example. Keeping them beside the MDX files is also a reasonable option. Which direction does the team prefer?

  6. Goldloli commented on Nov 28, 2026

    @Goldloli

    I'd like to work on the in-repo half of this (the 73 relative ./docs/*.png references).

    Proposed approach, following the issue's suggestion for the docs/ trees: a history query for these paths returns zero commits, so the screenshots were never in the tree and cannot be recovered from this repository. That makes the change a removal of the dangling references rather than an addition of placeholder images:

    • Walk app/client/packages/design-system/ads/src/**/*.mdx, collect every image reference, and resolve each relative path.
    • Check each resolved path against the tree; keep only references whose file exists.
    • Leave the 9 Notion-hosted screenshots alone: they are a separate cluster and need a maintainer decision on re-hosting versus removal.
    • Verify by re-running the same scan and reporting 73 -> 0 unresolved relative references, with a per-component diffstat.

    I'd be glad to take the external Notion cluster in a follow-up once you say whether those screenshots should be removed or moved into the repo. Could this issue be assigned to me?

  7. Goldloli commented on Nov 28, 2026

    @Goldloli

    One correction to my own reading of the issue, after working through the tree: the assets are not missing. #35193 (2024-07-29) gathered all 73 screenshots under app/client/packages/design-system/ads/src/__assets__/docs/ and mounted that directory in Storybook (staticDirs in app/client/packages/storybook/.storybook/main.ts), so the files are served from the site root at /docs/<name>. The component MDX links were left as ./docs/<name>, relative to each component folder, which is why they 404.

    So the fix is a one-line-per-reference path correction, not a deletion: ./docs/<name> -> /docs/<name>. The 70 active references now resolve to tracked files under the staticDirs mount; the remaining three are inside [//]: # comment lines already.

    The change is on Goldloli:fix/ads-mdx-image-paths (8c705f5, 23 files, +70/-70, no other lines touched). Prettier is clean on the changed files (the one file that fails the check also fails on release, pre-existing). Happy to open the PR against release once you assign this issue - and I'll leave the 9 Notion URLs alone unless you'd like them handled too.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions