Skip to content
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

open file at a specific line using copied link/URL #308

Merged
merged 13 commits into from
Nov 26, 2022

Conversation

AdarshdeepCheema
Copy link
Contributor

@AdarshdeepCheema AdarshdeepCheema commented Oct 28, 2022

Signed-off-by: Adarshdeep Cheema [email protected]

Proposed changes

This PR addresses Issue: [Link to Github issue within https://github.com/zowe/zlux/issues if any]

This PR depends upon the following PRs:

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Change in a documentation
  • Refactor the code
  • Chore, repository cleanup, updates the dependencies.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

PR Checklist

Please delete options that are not relevant.

  • If the changes in this PR are meant for the next release / mainline, this PR targets the "staging" branch.
  • My code follows the style guidelines of this project (see: Contributing guideline)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • video or image is included if visual changes are made
  • Relevant update to CHANGELOG.md
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works, or describe a test method below

Testing

Further comments

Screen Shot 2022-11-01 at 9 23 34 AM

@pull-request-size pull-request-size bot added size/L and removed size/M labels Oct 31, 2022
Signed-off-by: Adarshdeep Cheema <[email protected]>
@AdarshdeepCheema AdarshdeepCheema changed the title initial work to open file at a specific line using URL open file at a specific line using copied link/URL Nov 1, 2022
Signed-off-by: AdarshdeepCheema <[email protected]>
Copy link
Member

@DivergentEuropeans DivergentEuropeans left a comment

Choose a reason for hiding this comment

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

I'm not able to remove the highlight from the page once it's on there. I can remove it, if the line is empty but if I delete the line, and type over it, the highlight comes back. The highlight can also be shifted around using linebreaks (see screenshot). I think you're opening a can of worms here to bug test this UX, I would recommend just sticking to highlighting the line number instead of the line itself. The rest of the PR I love, the UX just feels buggy

image

@DivergentEuropeans
Copy link
Member

@AdarshdeepCheema
Copy link
Contributor Author

AdarshdeepCheema commented Nov 17, 2022

I'm not able to remove the highlight from the page once it's on there. I can remove it, if the line is empty but if I delete the line, and type over it, the highlight comes back. The highlight can also be shifted around using linebreaks (see screenshot). I think you're opening a can of worms here to bug test this UX, I would recommend just sticking to highlighting the line number instead of the line itself. The rest of the PR I love, the UX just feels buggy

image

Changed the decoration to the line number instead of line content and now we will remove the decoration if the user tries to edit the file

Screen.Recording.2022-11-17.at.11.17.39.AM.mov

@AdarshdeepCheema
Copy link
Contributor Author

I think you resolved this but forgot to remove the 2nd snackbar: https://github.com/zowe/zlux-editor/pull/308/files#diff-f1f6be017c15d827097c4d23b9480ce78315847ff3006f848c770c1cbed1eeebR278

Fixed/Removed

Copy link
Member

@DivergentEuropeans DivergentEuropeans left a comment

Choose a reason for hiding this comment

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

Changes addressed, this looks great. We just need to document this now @AdarshdeepCheema

@DivergentEuropeans DivergentEuropeans merged commit 2261a04 into v2.x/staging Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants