-
Notifications
You must be signed in to change notification settings - Fork 9
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
Updating icons for disabled and closed statuses resources #207
base: main
Are you sure you want to change the base?
Updating icons for disabled and closed statuses resources #207
Conversation
Hey @almightyrush - please rebase on main and resolve the conflict with extension.ts 👍 |
9b5091a
to
166518f
Compare
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 like the icons and the code looks good.
The test coverage less so...
A couple of things I've been thinking:
- Every icon ends .dark.svg or .light.svg so I'm wondering if we pass the 'root' of the icon name in and push that part down lower ... would that make things better? I think it might.
- An option for unit testing is we split into a method that generates the filename which we can easily verify with text comparison, and then we could check the file exists on disk. But maybe it's just as easy to have it return a file and verify it matches the file instance we were expecting.
What do you think, @almightyrush ? A bunch of this is refactor but we have added some new function so....
Hi @davenice, |
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.
This looks good!
Thoughts for future PRs in this area...
- A test that goes through each option and verifies that the right files exist on disk
- I think we can simplify the logic a little bit now for local file in particular where we append
-disabled
or-closed
rather than having all the nested ternary ifs we could just say "filename is local-file ... if we're disabled append -disabled, if we're closed append -closed". That's not a must-do for this PR in my eyes - just an idea that we could work on that logic in future.
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.
On testing, I'm seeing the light image being used in the dark theme and vice versa - would be good to work out why. Sorry...!
Thanks for finding it out @davenice 👌🏽
Here the
|
Signed-off-by: Rajat Sahrawat <[email protected]>
Signed-off-by: Rajat Sahrawat <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rajat Sahrawat <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
cca2450
to
c6bf729
Compare
packages/vsce/src/trees/CICSCombinedTrees/CICSCombinedProgramTree.ts
Outdated
Show resolved
Hide resolved
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.
Couple of notes / questions left of the PR, and I will manually test with all status possibilities with all resource types too 👍🏼
My concerns are addressed - i'll just cancel my approval until those couple of small bits Andrew mentioned are decided on one way or the other. |
In fact I'll leave my review and we'll just wait for Andrew to add his. None of those bits are absolute dealbreakers, just improvements! |
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.
Looks great, works great, nice improvements 😎
Signed-off-by: Rushabh Sojitra <[email protected]>
@zFernand0 - would be good to have a nod from you or someone on the ZE side! |
…ams-folder-and-local-transactions-1
What It Does
Adds visual decoration for closed and disabled statuses for local files, local transactions and programs. Also updated visual consistency for icons for task states- running, suspended and dispatched.
How to Test
change status for the mentioned resources to see the updated icons
Review Checklist
I certify that I have: