Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@alanlong9278
Copy link
Contributor

@alanlong9278 alanlong9278 commented Feb 19, 2020

Description

Repaint ui for setProperties with new design in visual editor.

What does this pr do?

  • Extract listOverview component.
    Like the pics show, the list in setProperties and multiInput is the same ui except the itemRender.
    So, we can extract listOverview and through sending renderFunciton to render different item list.
    image
    image

  • Define the elements as styledComponents
    Depends on new design, there are 4 types styled compoments. The element components can change the color by props.

  1. Span
    image

  2. SingleLineDiv
    image

  3. MultiLineDiv
    image

  4. BorderedDiv
    image

  5. LinkBtn
    image

  • Build setProperties, ChoiceInput with elements.
  • Use LinkBtn(elements) in dialogRef node.

What's next?

  • Add templateElement into element libs.

  • Refactor formCard to support new design.(Ze is doing)

  • Combine with the layout pr written by ze.

  • Rewrite the node ui with new design.

Task Item

fixes #1701

Screenshots

@alanlong9278 alanlong9278 changed the title feat: refactor node framework in visual editor feat: refine node framework in visual editor Feb 21, 2020
@alanlong9278 alanlong9278 marked this pull request as ready for review February 21, 2020 15:13
@github-actions
Copy link

Coverage Status

Coverage increased (+0.08%) to 42.585% when pulling cd3a822 on julong/nodeDesign into 6ff0da3 on master.

@alanlong9278 alanlong9278 changed the title feat: refine node framework in visual editor feat: New design for setProperties in visual editor Feb 24, 2020
@alanlong9278 alanlong9278 changed the title feat: New design for setProperties in visual editor feat: repaint ui for setProperties in visual editor Feb 24, 2020
@yeze322
Copy link
Contributor

yeze322 commented Feb 24, 2020

The styled component lib could help us standardize the design langauge we used in Visual Editor. It's a really good change.

We will migrate to the styled lib in future PRs.

@yeze322 yeze322 self-requested a review February 26, 2020 06:51
Copy link
Contributor

@yeze322 yeze322 left a comment

Choose a reason for hiding this comment

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

Functionally this PR has conflict with master:
image
image

We need to show full text instead of truncating and adding ellipsis.

Copy link
Contributor

@yeze322 yeze322 left a comment

Choose a reason for hiding this comment

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

We still need to reduce changes, improve code quality.

@yeze322 yeze322 merged commit aed7c65 into master Mar 3, 2020
@yeze322 yeze322 deleted the julong/nodeDesign branch March 3, 2020 04:36
@cwhitten cwhitten mentioned this pull request Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants