Skip to content

chore(site): Add XState Inspector #869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

presleyp
Copy link
Contributor

@presleyp presleyp commented Apr 4, 2022

This installs the library for using the official inspector and attempts to set it up to open in a new tab only when you are both in development mode and have set the INSPECT_XSTATE env var. Without the second condition, it works, but something is broken about accessing the second env var from within the app.

@presleyp presleyp self-assigned this Apr 4, 2022
@@ -14,6 +14,6 @@ cd "${PROJECT_ROOT}"
(
trap 'kill 0' SIGINT
create_initial_user &
CODERV2_HOST=http://127.0.0.1:3000 yarn --cwd=./site dev &
CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev &
Copy link
Contributor

Choose a reason for hiding this comment

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

@presleyp I think we should move this to the package.json since it seems like something we'd always want to be true when running development. I think CODERDV2_HOST is defined here since we might want to point to our own backend and be able to invoke it separately from yarn dev

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was trying to avoid annoying backend people with the tab opening when they don't want it.

@presleyp
Copy link
Contributor Author

presleyp commented Apr 4, 2022

Ugh, something went wrong when I tried to merge master, I might just close this PR and redo it

@greyscaled
Copy link
Contributor

greyscaled commented Apr 4, 2022

Ugh, something went wrong when I tried to merge master, I might just close this PR and redo it

Just needs conflict resolution, I think a flag was removed something like create_initial && ...

Looks like yours should cleanly apply from the GitHub UI editor:

resolve-conflicts

conflict

@presleyp
Copy link
Contributor Author

presleyp commented Apr 4, 2022

Ugh, something went wrong when I tried to merge master, I might just close this PR and redo it

Just needs conflict resolution, I think a flag was removed something like create_initial && ...

Looks like yours should cleanly apply from the GitHub UI editor:

The issue is that I already fixed the conflict, but something must have gotten messed up as I merged because the usual merge commit message wasn't there, and then I see that it thinks the conflicts are still there and thinks I changed 117 files. Let me know what you think about when the inspector should open (I thought requiring an extra flag that is always used by the develop script was the best compromise) and I'll deal with it.

@greyscaled
Copy link
Contributor

Ugh, something went wrong when I tried to merge master, I might just close this PR and redo it

Just needs conflict resolution, I think a flag was removed something like create_initial && ...
Looks like yours should cleanly apply from the GitHub UI editor:

The issue is that I already fixed the conflict, but something must have gotten messed up as I merged because the usual merge commit message wasn't there, and then I see that it thinks the conflicts are still there and thinks I changed 117 files. Let me know what you think about when the inspector should open (I thought requiring an extra flag that is always used by the develop script was the best compromise) and I'll deal with it.

I think just go locally and

git fetch origin
git rebase -i origin/main

and squash down to 1 commit then git push -f. You'll need to re-resolve, but at least you'll have everything back to a sensible nature.

I think what happened was that your merge ran into a conflict, and you committed without resolution. At least that's my best guess...not entirely sure.

@presleyp presleyp closed this Apr 4, 2022
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
@ammario ammario deleted the presleyp/inspector branch August 3, 2022 00:50
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.

3 participants