Skip to content

Conversation

@jakubbortlik
Copy link
Collaborator

This PR attempts to improve user experience with popups in gitlab.nvim in several ways:

  1. It makes it possible again to configure popup size (for comment popups this was disable by adding the draft field)
  2. It limits the popups whose height is calculated from the content (help and pipeline) to the height of the window
  3. It makes popups automatically resizable when the editor is resized (terminal zoomed in, tmux splits, moving to a smaller monitor)
  4. It adds the autocommand for re-focusing last active window to all popups (it was only part of comment popups)
  5. It improves visibility of the help popup
  6. It makes the position of the popups customizable, which enables e.g. a setup where the comment popup doesn't obscure the reviewer

image

@jakubbortlik
Copy link
Collaborator Author

Hi @harrisoncramer, I realize that there're many changes in this PR so I will really appreciate if you find the time to review and merge it. I probably should have split it into separate PRs, and I can still do this if you'd prefer. But at the same time, I've really taken care to make individual commits meaningful which should simplify review.

@harrisoncramer
Copy link
Owner

This is a big improvement, thanks for making these changes. I've left some comments.

@harrisoncramer harrisoncramer self-assigned this Dec 4, 2024
@jakubbortlik
Copy link
Collaborator Author

This is a big improvement, thanks for making these changes. I've left some comments.

Thanks for the review. I'll implement your suggestions and mark the PR for another review.

Pipeline and help popups are only customizable through the general `settings.popup` field.
The `description_popup` state is created with `u.create_popup_state` instead of
`u.create_box_popup_state` because otherwise the resizing doesn't work for some reason.
The `description_popup` state is created with `u.create_popup_state` instead of
`u.create_box_popup_state` because otherwise the resizing doesn't work for some reason.
This makes sure it's shown on top of the pipeline popup.
This makes it possible to place the popup in the bottom right corner where it doesn't obscure the
content of the reviewer.
@jakubbortlik jakubbortlik force-pushed the fix-re-enable-popup-configuration branch from a40b7ed to 82f509d Compare December 6, 2024 14:02
@harrisoncramer harrisoncramer merged commit 08d289c into harrisoncramer:develop Dec 6, 2024
6 checks passed
@jakubbortlik jakubbortlik deleted the fix-re-enable-popup-configuration branch December 6, 2024 22:58
harrisoncramer added a commit that referenced this pull request Dec 11, 2024
* Feat: Enable sorting discussions by original comment (#422)
* Feat: Improve popup UX (#426)
* Feat: Automatically update MR summary details (#427)
* Feat: Show update progress in winbar (#432)
* Feat: Abbreviate winbar (#439)
* Fix: Note Creation Bug (#441)
* Fix: Checking whether comment can be created (#434)
* Fix: Syntax in discussion tree (#433)
* fix: improve indication of resolved threads and drafts (#442)
* Docs: Various minor improvements (#445)

---------

Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me>
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.

2 participants