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

In-editor overlay optimization #1190

Merged
merged 2 commits into from
Jan 3, 2025
Merged

In-editor overlay optimization #1190

merged 2 commits into from
Jan 3, 2025

Conversation

nighca
Copy link
Collaborator

@nighca nighca commented Jan 2, 2025

Close #1167.

  • Replace monaco content-widget with UIDropdown for in-editor layers, except for ContextMenu trigger.
  • Optimize interaction details for Hover.

Copy link

qiniu-prow bot commented Jan 2, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 6 out of 21 changed files in this pull request and generated 1 comment.

Files not reviewed (15)
  • spx-gui/src/components/editor/code-editor/ui/resource-reference/selector/ResourceSelector.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/resource-reference/ResourceReferenceUI.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenuUI.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/completion/CompletionCard.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/completion/CompletionUI.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/CodeEditorCard.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenu.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/hover/HoverCard.vue: Evaluated as low risk
  • spx-gui/src/components/ui/menu/UIMenuItem.vue: Evaluated as low risk
  • spx-gui/src/components/ui/UIDropdown.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenuTrigger.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/hover/HoverUI.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/CodeEditorUI.vue: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/context-menu/index.ts: Evaluated as low risk
  • spx-gui/src/components/editor/code-editor/ui/completion/index.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)

spx-gui/src/components/editor/code-editor/ui/hover/index.ts:69

  • The new behavior introduced in the hideHoverWithDelay function is not covered by tests.
private hideHoverWithDelay() {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

基本是原来的 UIDropdown.vue 的逻辑,除了这几个变更:

  1. 改为 render function 的写法,以便准确地控制传给 NPopover 的 slots
  2. Prop pos 支持指定 size(width & height),此时 dropdown 的定位会考虑 size(就像对待 trigger 节点那样)
  3. 原本通过 <style> 设置的样式现在通过指定 NPopoverstyle 实现

@qiniu-ci
Copy link

qiniu-ci commented Jan 3, 2025

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@aofei aofei merged commit 1e422a0 into goplus:dev Jan 3, 2025
5 checks passed
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.

In-editor overlay optimization
3 participants