Skip to content

Highlight with badges new and recently updated documentation pages #1176

Done

Description

@WD-Wyse

Hello tanstack staff

I want to add a small request that i believe it will be for the benefit of everyone.

I saw in tanstack ai documentation form tanstack website, that the titles of guide sections have a badge "new" attached to them in sidebar nav which is awesome! It helps me understand whats going on more easly and keep myself updated with the doc.

The problem is that this pattern isnt followed for other libraires.

For instance ts query prefetch topic was updated, but bcs it doesnt have the badge "new/update" I didnt even know about it. Luckly i found because I checked github.

So it would be awesome if you add this when you do documentation changes! Thank you very much.

Activity

  1. added
    source-audit
    on Aug 24, 2026
  2. tannerlinsley commented on Aug 24, 2026

    @tannerlinsley
    Member

    Source audit evidence:

    • TanStack.com already supports this for every library through optional addedAt and updatedAt values in the upstream docs/config.json, and shows the badge for seven days.
    • TanStack Query currently has 554 docs entries and no date metadata.
    • TanStack AI has addedAt metadata for all 278 entries and updatedAt metadata for 117 entries.
    • Open tanstack.com PRs that touch the docs layout do not change this contract or fill the upstream metadata gap.

    Expected impact: broader coverage would make meaningful docs changes easier to discover, but maintaining dates across hundreds of entries and many repositories needs an explicit ownership policy.

    Proposed direction: keep the site renderer generic and adopt the existing date fields in each library repo. The main tradeoff is manual dates in docs PRs versus automation that updates or validates the config. Manual dates are simple but easy to miss; automation is more consistent but needs a clear definition of what counts as a meaningful update.

    @tannerlinsley, exact decision needed: should all TanStack library repos adopt this metadata, and if so, should maintainers enter dates manually or should tooling generate and validate them?

  3. Yash-Tamboli commented on Dec 3, 2026

    @Yash-Tamboli

    Hi! I'd love to contribute to this improvement. I read the proposed direction regarding addedAt and updatedAt metadata. Would you be open to a contribution implementing a small initial version once the metadata approach is agreed upon?

  4. tannerlinsley commented on Dec 3, 2026

    @tannerlinsley
    Member

    Thanks for offering to help! The site already renders these badges from addedAt and updatedAt in each library’s docs/config.json, so there isn’t a new badge component to build here. The open question is who maintains those dates and whether updates should be manual or automated.

    Once Tanner settles that, a small contribution in one library’s docs config would be a useful starting point. Please hold off on implementation until that scope is agreed so you don’t spend time on something that needs to change.

  5. Yash-Tamboli commented on Dec 3, 2026

    @Yash-Tamboli

    Thanks for the clarification! Really appreciate your response. I'd love to contribute to this repository. Are there any other issues or improvements where you could use some help? I'd be happy to work on them and learn along the way!

  6. tannerlinsley commented on Dec 3, 2026

    @tannerlinsley
    Member

    A useful starting point would be checking one of the accessibility reports in #775 against the current site. That report is older, so please start by identifying one control that still has a missing accessible name or label, with the page URL and steps to find it. The logo menu has had recent accessibility work in #1395, so avoid duplicating that.

    Post what you find on #775 before making a change. A small fix for one confirmed issue would be easier to review than a broad accessibility rewrite.

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

    source-audit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions