devmode extension brainstorm

CCalego3/9/2022
want to know what sort of benefits this has over the current 'just console log it'
Cccjmk3/9/2022
hmm i don't know if its the same but I did the chrome extension demo 🤓 ... just that hahah
CCalego3/9/2022
List all World Documents, kind of souped up version of "print to console" could be useful
CCalego3/9/2022
A flag editor/document editor which manually updates things?
Cccjmk3/9/2022
I mentioned hooks as a half joke but it would be nice. very level-0 shit, a toggle to log hooks or not
CCalego3/9/2022
yeah but devmode already does that
Cccjmk3/9/2022
yeah but it could replace it 😛
CCalego3/9/2022
agreed, it would have a place in this
Cccjmk3/9/2022
localization shit ? I don't know how accessible it might be
CCalego3/9/2022
debug tools has access to like the profiler and shit I think
CCalego3/9/2022
wonder how a 'custom foundry profiler' might look
CCalego3/9/2022
i know react devtools has stuff like that
Cccjmk3/9/2022
but been able to see maybe the tree of translations could be handy, for like when you are translating a module/system onto another module, so you could double check where each localized text is coming from
Cccjmk3/9/2022
oh yeah this uses a manifest too, it looks rather similar too, seems to be using service workers on a similar fashion but registering different parts of the API
Aarcanist3/11/2022
DF Flag Editor already exists btw
Cccjmk3/11/2022
sure, but I mean, it's totally a module/system dev tool, we could work on integrating it into this devmode or do something similar
Cccjmk3/11/2022
while im all in for smaller.. more.. emm.. modular? modules in general usage terms, as one game might not require what other does, or one system from another, or even users might prefer other module for doing this or that thingy, the fvtt development space does feel like the right spot to amalgamate these modules into more comprehensive tools.
CCalego3/11/2022
more interested from the perspective of "a chrome extension might work even if the foundry UI fails to initialize"
Cccjmk3/11/2022
didn't even consider that point, also love it
Aarcanist3/11/2022
How often will the UI fail to that degree, but still load module scripts?
Aarcanist3/11/2022
It's never happened to me that the UI is broken and scripts still load
Cccjmk3/11/2022
I think the goal is that this will not be a module, so it would not go through the same flow
CCalego3/11/2022
^
CCalego3/11/2022
as a chrome extension it wouldn't be a module at all yeah
Aarcanist3/11/2022
Ah 🤔
Cccjmk3/11/2022
@arcanist this would be implemented using something similar to the PWA thingy you did, uses a similar manifest and shit
Aarcanist3/11/2022
Oh, yeah. You realize that means that users must manually copy the service worker into their Data folder since modules can't download JavaScript there
Aarcanist3/11/2022
I originally tried putting the service worker in the module folder, but that doesn't work because it's scoped to sub-directories
Cccjmk3/11/2022
hmm
Aarcanist3/11/2022
Does it require a service worker?
Cccjmk3/11/2022
as far as I understand (with like a five minute investment of time two days ago) yes