-
Notifications
You must be signed in to change notification settings - Fork 65
Move layer visibility toggle to the left of the layer title and icon #487
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
Move layer visibility toggle to the left of the layer title and icon #487
Conversation
|
Integration tests report: appsharing.space |
|
Boo to that linting rule 😆 whitespace can be an incredibly valuable tool for readability. Anyone feel strongly about changing it? |
|
please update snapshots |
|
The snapshots didn't update, don't know why - I'd just ask the bot to please update snapshots again |
|
Oh it fails again - https://github.com/geojupyter/jupytergis/actions/runs/13523809762/job/37789149195?pr=487#step:11:3347 I haven't looked in too deep yet |
|
@arjxn-py do we still need to port jupytercad/JupyterCAD#694 ? |
Ahh could be, let's try. |
|
ping @martinRenou |
|
Do you have the logs to the failing run of the bot? |
Yes, here |
|
From the logs of the visual regression tests run https://github.com/geojupyter/jupytergis/actions/runs/13475445612/job/37654119187?pr=487, it looks to me the tests need updating, not the snapshots |
|
Thanks for y'all's help figuring that out! ❤️ I'll try and figure out what I broke in the UI tests :) Wish me luck! ☘️ |
|
Welcome to the hell of ui-testing :D It seems at least one test is failing here jupytergis/ui-tests/tests/left-panel.spec.ts Line 122 in a6d7ef5
It looks like the test expects the first icon is the layer icon, and it gets your visibility icon now instead. |
f3fc4ef to
00ee3d1
Compare
|
Any tips for running UI tests locally? I added some instructions 00ee3d1 (EDIT: ReadTheDocs appears to be having a hiccup, I'm getting 500 errors trying to access the web UI) as I was trying to figure it out, but after overcoming those hurdles, each test is failing after 60 seconds. Am I missing something? Along the way, it required me to install a system dependency |
Convert code_quality.rst -> MyST
If the usr is following instructions, the error message will prompt them to run `yarn playwright install`, not `npx playwright install`.
078b26f to
546a610
Compare
martinRenou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! And thanks for adding some docs
|
|
||
| - Eslint lints (sometimes autofixes) JS/TS code. | ||
|
|
||
| - UI tests using [Galata](https://github.com/jupyterlab/galata), defined in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put a big warning here. Running the tests locally isn't reliable and I'd not recommend it, things like font rendering and WebGL depend a lot on the browser and GPU you're using.
So I'd recommend not taking the local runs for granted, and not updating the snapshots from a local run.
I always wondered if tools like act made things better locally, though I never tried really, and I guess all GPU related things are still dependent on the running machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
things like font rendering and WebGL depend a lot on the browser and GPU you're using
The GPU, too!? Wow. I thought browser consistency was handled by playwright downloading the same version of Chromium for every test run. Oof. Local runs without snapshot tests should be OK, though, right? Maybe there's a way we can exclude them and document that for local running. Having the Playwright Inspector running locally really helped with debugging the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5c97cd0 How's that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh neat! I did not know you could tell playwright to ignore snapshots!
|
The linter was being a jerk on the previous commit. It was "autofixing" by escaping the asterisks I was using to define bold text. I was only able to fix it by getting the opening and closing asterisks on the same line. |
martinRenou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
Resolves #244
Before:

After:

Keeping the button on the right raises questions about how to handle when the button overlaps with the text. After playing with it for a bit, I felt that having the button on the left is ideal. Especially as we move towards implementing #486, I feel having the button on the right misses an opportunity to convey information about grouping through indentation of the button. With the button on the right, the eye has to do more scanning from left-to-right.
Checklist
Resolves #XXX.Failing lint checks can be resolved with:
pre-commit run --all-filesjlpm run lint📚 Documentation preview: https://jupytergis--487.org.readthedocs.build/en/487/
💡 JupyterLite preview: https://jupytergis--487.org.readthedocs.build/en/487/lite