Skip to content
New issue

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

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

Already on GitHub? # to your account

refactor: Adjust "Add to Workspace" labels and fetch resources for external URLs #3288

Merged
merged 11 commits into from
Nov 6, 2024

Conversation

traeok
Copy link
Member

@traeok traeok commented Oct 31, 2024

Proposed changes

Refactors a couple things from work recently merged in (#3282 and #3271)

  • Adjust labels to be consistent regardless of item added to workspace
  • Do a remote lookup of resource before opening it

Release Notes

Milestone: 3.1.0

Changelog:

No changelog since feature hasn't been released yet.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds or improves functionality)
  • Breaking change (a change that would cause existing functionality to not work as expected)
  • Documentation (Markdown, README updates)
  • Other (please specify above in "Proposed changes" section)

Checklist

General

  • I have read the CONTRIBUTOR GUIDANCE wiki
  • All PR dependencies have been merged and published (if applicable)
  • A GIF or screenshot is included in the PR for visual changes
  • The pre-publish command has been executed:
    • v2 and below: yarn workspace vscode-extension-for-zowe vscode:prepublish
    • v3: pnpm --filter vscode-extension-for-zowe vscode:prepublish

Code coverage

  • There is coverage for the code that I have added
  • I have added new test cases and they are passing
  • I have manually tested the changes

Deployment

  • I have added developer documentation (if applicable)
  • Documentation should be added to Zowe Docs
    • If you're an outside contributor, please post in the #zowe-doc Slack channel to coordinate documentation.
    • Otherwise, please check with the rest of the squad about any needed documentation before merging.
  • These changes may need ported to the appropriate branches (list here):

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok changed the title Refactor/workspace updates refactor: Adjust "Add to Workspace" labels and fetch resources for external URLs Oct 31, 2024
@traeok traeok added the no-changelog Add to PR's that don't require a CHANGELOG update label Oct 31, 2024
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.09%. Comparing base (b1de4d1) to head (b0aaf8e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3288      +/-   ##
==========================================
+ Coverage   93.08%   93.09%   +0.01%     
==========================================
  Files         114      114              
  Lines       11825    11834       +9     
  Branches     2570     2568       -2     
==========================================
+ Hits        11007    11017      +10     
+ Misses        816      815       -1     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok marked this pull request as ready for review October 31, 2024 14:10
Copy link

📅 Suggested merge-by date: 11/14/2024

zFernand0
zFernand0 previously approved these changes Oct 31, 2024
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

LGTM! 😋

I love the consistency
image


Side note:

Sorry to be picky, but should we make the "missing-path" message consistent (or at least more clear for adding things to as favorites?
image

@traeok
Copy link
Member Author

traeok commented Oct 31, 2024

Sorry to be picky, but should we make the "missing-path" message consistent (or at least more clear for adding things to as favorites? image

Honestly, I'm not sure why we even have this string in place. I looked at filterPrompt and it seems we don't validate input, rather that we show this message if an empty path was entered. This doesn't seem very conducive to a good UX - if we had input validation in place, then users would have to provide a non-empty path to continue, and then this scenario wouldn't be encountered.

I refactored this logic so that it looks for a valid path before the input box can be submitted:
image

If the dialog is dismissed, the input box exits as expected and the operation is cancelled. It's not really related to this work, but the current UX is a bit annoying, so I figured I might as well fix it.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@JillieBeanSim JillieBeanSim added this to the v3.1.0 milestone Oct 31, 2024
t1m0thyj
t1m0thyj previously approved these changes Nov 5, 2024
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @traeok!

Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com>
Copy link
Contributor

@JillieBeanSim JillieBeanSim left a comment

Choose a reason for hiding this comment

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

Thanks @traeok LGTM

@pull-request-size pull-request-size bot added size/M and removed size/L labels Nov 6, 2024
@traeok traeok merged commit 085e71d into main Nov 6, 2024
30 of 31 checks passed
@traeok traeok deleted the refactor/workspace-updates branch November 6, 2024 15:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
no-changelog Add to PR's that don't require a CHANGELOG update size/M
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

4 participants