devtools icon indicating copy to clipboard operation
devtools copied to clipboard

TODOs in the codebase

Open luoling8192 opened this issue 1 year ago • 3 comments

TODO:

  • [ ] show more info with selected node https://github.com/vitejs/devtools/blob/e0838a0e0e68ad9ec817437a06f8e2e234a75b5d/packages/devtools/src/app/components/flowmap/ModuleFlow.vue#L400

  • [ ] should we add filters for node_modules? https://github.com/vitejs/devtools/blob/43fc5c576fea84614f63521bb0533e804b5b4b4e/packages/devtools/src/app/pages/session/%5Bsession%5D/graph/index.vue#L192

  • [ ] install @types/splitpanes once updated https://github.com/vitejs/devtools/blob/0c5bdaaa3b38973dc7df8184278baff680f115db/packages/devtools/src/app/splitpanes.d.ts#L1

https://github.com/vitejs/devtools/blob/7dea7f5070648a472b0c4219efa733545b19e2de/packages/devtools/src/app/components/data/ChunkDetails.vue#L27

luoling8192 avatar Jul 12 '25 10:07 luoling8192

@luoling8192 Thanks for the help. I've updated the todo (removed the WIP and hold-off todo).

I think it would be better for us to merge it into #9 for management. @antfu WDYT? (The TODO mentioned here needs your confirmation on whether to keep it or provide more information.)

webfansplz avatar Jul 12 '25 18:07 webfansplz

The reason I put TODOs in the code instead of #9 is to avoid having the same thing duplicated in two places, which would be difficult to manage and track. I'd say that if people want to take on a task, they should leave a comment in #9 with a permanent link to the code to reference.

antfu avatar Jul 14 '25 06:07 antfu

Here more todos to add and one that has been updated (ModuleFlow.vue#400 to ModuleFlowDetails.vue#90)

Also maybe add link for "todos" search at the top ? https://github.com/search?q=repo%3Avitejs%2Fdevtools%20todo&type=code

Hope it helps 🙌

TODOS

Update the first one

Update from /ModuleFlow.vue to: https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/app/components/flowmap/ModuleFlowDetails.vue#L90

New todos

  • [ ] get metadata from api endpoint

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-webext/src/window.ts#L6


  • [ ] redesign how the manager is passed

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/node/cli.ts#L40

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/node/cli.ts#L99

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/modules/rpc/runtime/server/metadata.ts#L14


  • [ ] detect vite env

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-webext/src/devtools-background.ts#L16


  • [ ] graph view

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/app/pages/session/%5Bsession%5D/chunks.vue#L25


  • [ ] static server

https://github.com/vitejs/devtools/blob/4542bdbc4c58168df218ef1dd086c74163d52f33/packages/devtools-vite/src/modules/rpc/runtime/plugin.ts#L39

GeoffreyParrier avatar Sep 12 '25 08:09 GeoffreyParrier