Skip to content

feat(core,ui): trigger image support#134

Merged
AlemTuzlak merged 4 commits intoTanStack:mainfrom
jakiestfu:feat/trigger-image
Sep 18, 2025
Merged

feat(core,ui): trigger image support#134
AlemTuzlak merged 4 commits intoTanStack:mainfrom
jakiestfu:feat/trigger-image

Conversation

@jakiestfu
Copy link
Contributor

@jakiestfu jakiestfu commented Sep 17, 2025

Howdy! I apologize for not reviewing the contributing guidelines more carefully and built this feature without first soliciting feedback from the team on the desire to implement this. I hope this request is received well.

This PR adds support for specifying a trigger image via the config object or via the UI. We are interested in using the devtools package for more than just the tanstack ecosystem, and would like to consider replacing it with our engineering/dev logo (even though we're using tanstack for all the things!) If no logo is provided, it will default to the tanstack logo in the package.

image

Via UI
image

Via Configuragion

<TanStackDevtools
  config={{
    triggerImage: "https://avatars.githubusercontent.com/u/1041792?v=4",
  }}
/>

Copy link
Collaborator

@AlemTuzlak AlemTuzlak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually planned to implement this, would this also work for relative paths in the project?

@jakiestfu
Copy link
Contributor Author

jakiestfu commented Sep 17, 2025

@AlemTuzlak You can import images, use relative paths, etc.

import TanStackLogo from './logo.png' just ends up resolving to a data URI which is perfectly fine to use in the src, as well as a remote URL or a relative url, etc.

import Logo from "./assets/CompanyLogo.png"

export const CompanyDevTools = () => (
  <TanStackDevtools
    config={{
      triggerImage: Logo,
    }}
  />
)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 18, 2025

More templates

@tanstack/devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools@134

@tanstack/devtools-ui

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-ui@134

@tanstack/devtools-vite

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-vite@134

@tanstack/devtools-event-bus

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-bus@134

@tanstack/devtools-event-client

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/devtools-event-client@134

@tanstack/react-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/react-devtools@134

@tanstack/solid-devtools

npm i https://pkg.pr.new/TanStack/devtools/@tanstack/solid-devtools@134

commit: f6c2ab5

@AlemTuzlak AlemTuzlak merged commit 591b52f into TanStack:main Sep 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants