Skip to content
Source
Sign inSign up
TanStack/query

feat(devtools): Add move devtools select menu #4100

Mergedsalamaashoush(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/4100/headmerged by TkDodo View on GitHub

closes https://github.com/TanStack/query/issues/2994

Added the option to move dev tools to one of these sides left, right, top, and bottom and refactored the code to accommodate the new capability

@TkDodo sorry the previous PR got closed somehow when I updated my fork, I fixed your comments from the previous PR

image
    1. This pull request is automatically built and testable in CodeSandbox.

      To see build info of the built libraries, click here or the icon next to each commit SHA.

      Latest deployment of this branch, based on commit e7803f1b0fc872af76de635ed6e5303d4db20c30:

      SandboxSource
      @tanstack/query-example-react-basicConfiguration
      @tanstack/query-example-react-basic-typescriptConfiguration
      @tanstack/query-example-solid-basic-typescriptConfiguration
      @tanstack/query-example-vue-basicConfiguration
    2. can you please fix the merge conflicts? thanks

    3. TkDodo reviewed

      OutdatedResolvedby TkDodo
    4. any updates here @salamaashoush ? This feature would be really cool to have :)

    5. @TkDodo I rebased the branch, and removed the isomorphic effect part

    6. TkDodo reviewed

      OutdatedResolvedby TkDodo
    7. TkDodo approved these changes

    8. Codecov Report

      Attention: Patch coverage is 75.49020% with 25 lines in your changes missing coverage. Please review.

      Project coverage is 96.58%. Comparing base (eab6e2c) to head (e7803f1). Report is 1947 commits behind head on main.

      Files with missing linesPatch %Lines
      packages/react-query-devtools/src/devtools.tsx60.00%21 Missing and 1 partial :warning:
      packages/react-query-devtools/src/utils.ts93.61%3 Missing :warning:
      Additional details and impacted files
      @@            Coverage Diff             @@
      ##             main    #4100      +/-   ##
      ==========================================
      + Coverage   96.36%   96.58%   +0.22%     
      ==========================================
        Files          45       86      +41     
        Lines        2281     3335    +1054     
        Branches      640      909     +269     
      ==========================================
      + Hits         2198     3221    +1023     
      - Misses         80      112      +32     
      + Partials        3        2       -1     

      :umbrella: View full report in Codecov by Sentry. :loudspeaker: Have feedback on the report? Share it here.

    9. TkDodo merged thise6eaca6

    10. TkDodo closed this

    11. This feature is really cool, thank you 🙏

      One thing I was wondering: Do you think there is a way to make the devtools integrate with the app, so that it actually makes the viewport of the page smaller?

      The floating is fine when being on the bottom, but as soon as I move it to a different position, it likely masks some of the content of my app 🤔

    12. wait a second, this actually works in codesandbox 😅 . Might be related to how we do layouting in our app then ...

Sign in to join this conversation.