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

Feat: add tip and preset model for plugin editor, improve e2e stability #2581

Merged
merged 253 commits into from
Sep 30, 2022

Conversation

FangSen9000
Copy link
Contributor

@FangSen9000 FangSen9000 commented Aug 10, 2022

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

What changes will this PR take into?

Reason:
We need to tell users clearly that which part of the data should be filled.

Modification:

  1. In addition to some plug-ins that do not need to be configured, or special plug-ins, plug-in configuration templates are added
  2. Added a code prompt card to prevent filling errors
  3. Move the transfer switch to the right side of the name to improve the space utilization and reduce the blank

effect:

  1. Users will clearly know which document they should fill in
  2. The model and code are stored in specific files, making the files easy to maintain

Potential effects:

  1. Specific code filling can be developed on this basis in the future
  2. Prepare for the new version, because many Monaco functions rely on the preset model added by this PR

image

After the change:

image

modelpreview2.webm

Note that the latest one has removed the prompt box and is slightly different from the video

Related issues

#1363 #2615

Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@FangSen9000 FangSen9000 requested a review from a user September 28, 2022 07:15
@FangSen9000
Copy link
Contributor Author

FangSen9000 commented Sep 30, 2022

@Baoyuantop @guoqqqi @bzp2010

All test cases of Dashboard have been repaired and passed, and the issue#2615 can be closed.

image
image

cc @butterfly1924 plugin-schema.cy.js has been fixed.


if (cases.length === i + 1) {
cy.reload(true);
}
Copy link
Contributor Author

@FangSen9000 FangSen9000 Sep 30, 2022

Choose a reason for hiding this comment

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

Frequent refreshing is the root cause of plugin-schema.cy.js' error. In fact, the logic of the test case is completely correct. which is the problem of umi.js itself

@SkyeYoung
Copy link
Member

cc @Baoyuantop @bzp2010

@FangSen9000
Copy link
Contributor Author

FangSen9000 commented Sep 30, 2022

I got rid of the prompts, maybe to make it a little more minimal @SkyeYoung
image
cc @Baoyuantop @guoqqqi

@guoqqqi guoqqqi merged commit 16c3e3e into apache:master Sep 30, 2022
hongbinhsu added a commit to fitphp/apix-dashboard that referenced this pull request Nov 7, 2022
* upstream/master:
  fix: change default CSP value (apache#2601)
  fix: ant-table unable to request (apache#2641)
  fix: plugin_config missing on service exist (apache#2657)
  feat: add etcd store auto re-initialize (apache#2650)
  feat: add login filter of OpenID-Connect (apache#2608)
  feat:Configure plug-ins to support this feature (apache#2647)
  feat: Adding a Loading state to buttons (apache#2630)
  feat: dashboard support windows (apache#2619)
  Feat: add tip and preset model for plugin editor, improve e2e stability (apache#2581)
  docs: add Slack invitation link badge (apache#2617)

# Conflicts:
#	.github/workflows/backend-cli-test.yml
#	Dockerfile
#	api/test/shell/cli_test.sh
#	web/src/components/Footer/index.tsx
#	web/src/components/RightContent/index.tsx
#	web/src/pages/ServerInfo/List.tsx
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.

6 participants