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

Swagger ui redesign/custom dropdown #5381

Merged

Conversation

taraokelly
Copy link

@taraokelly taraokelly commented May 31, 2019

Custom select/dropdown

Description

Created custom Dropdown with new design. Updated Schemes to use this.

(The other selects and the icon will be updated in subsequent PRs)

[EDIT] the icon has been updated to use the new Icon component.

Motivation and Context

Facelift

How Has This Been Tested?

Manually

Screenshots (if appropriate):

Screen Shot 2019-06-04 at 23 43 25

Screen Shot 2019-06-04 at 23 42 51

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

geraldglynn and others added 30 commits May 1, 2019 18:46
* bump minimum `bundlesize` version

* bump `node-sass`

* bump webpack + webpack-dev-server; update lockfile
…sign/standardize-default-buttons

# Conflicts:
#	src/style/_buttons.scss
#	src/style/_variables.scss
@taraokelly taraokelly changed the base branch from master to facelift June 1, 2019 08:19
Copy link
Contributor

@shockey shockey left a comment

Choose a reason for hiding this comment

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

Question: did you change anything in layout-utils besides restructuring each component into its own file?

I didn't go over each component with a fine-toothed comb, but if there are source changes within any components, let me know and I'll take a closer look with manual diffing.

Also: that there's a merge conflict on this branch with layout-utils.jsx, take care to apply those changes to the relevant components.

@@ -843,3 +843,7 @@ export function paramToValue(param, paramValues) {

return values[0]
}

export function xclass(...args) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change request: use classnames instead of keeping xclass around. At a glance, looks like we can switch out the invocations without changing anything else.

(I know this PR didn't introduce the function, but since we're cleaning up layout-utils, might as well fix this.)

Copy link
Author

Choose a reason for hiding this comment

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

No problem, removed 👍

Copy link
Author

@taraokelly taraokelly Jun 5, 2019

Choose a reason for hiding this comment

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

And nope, I didn't make any changes beside moving things around. I didn't want to go outside of the scope of this ticket. So the main files that need attention are src/core/components/layout-utils/drop-down.jsx, src/core/components/schemes.jsx and src/style/_dropdown.scss.

src/core/components/model.jsx Outdated Show resolved Hide resolved
@shockey shockey merged commit 1135e7c into swagger-api:facelift Jun 6, 2019
@shockey
Copy link
Contributor

shockey commented Jun 6, 2019

thanks @taraokelly!

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.

4 participants