Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-28199] Dropdown Input Common Component #6543

Merged
merged 10 commits into from
Oct 1, 2020

Conversation

devinbinnie
Copy link
Member

Summary

Dropdown Input using react-select, needed for Cloud Billing.
Demo in System Console > Biling > Subscription

Ticket Link

https://mattermost.atlassian.net/browse/MM-28199

@devinbinnie devinbinnie added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester 1: UX Review Requires review by a UX Designer labels Sep 23, 2020
@devinbinnie devinbinnie changed the title @devinbinnie [MM-28199] Dropdown Input Common Component [MM-28199] Dropdown Input Common Component Sep 23, 2020
@stevemudie stevemudie added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Sep 23, 2020
Copy link
Contributor

@stevemudie stevemudie left a comment

Choose a reason for hiding this comment

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

LGTM

@stevemudie stevemudie added QA Review Done and removed 3: QA Review Requires review by a QA tester labels Sep 23, 2020
Copy link
Contributor

@matthewbirtch matthewbirtch left a comment

Choose a reason for hiding this comment

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

Hey @devinbinnie, this is looking good.

I believe we called this out before, but the focused state stroke is supposed to be on the inside of the input box, not the outside. I thought we resolved this with the text input components, but I'm seeing it again here (and on the inputs in the Getting Started screen.

It might be hard to see, but it does cause the border radius to look larger and does cause the actual size of the input box to be larger in the focus state.

Frame 6

2020-09-23 16 19 59

@ethervoid ethervoid requested review from alifarooq0 and removed request for ethervoid September 24, 2020 19:44
@ethervoid
Copy link
Contributor

Given my little expertise with React, I think @ali-farooq0 is better suited to give you a better review here

@matthewbirtch
Copy link
Contributor

matthewbirtch commented Sep 25, 2020

As mentioned in our chat @devinbinnie, I'm now seeing a shift in the other direction when I focus
2020-09-24 16 12 47

@devinbinnie
Copy link
Member Author

/update-branch

Copy link
Contributor

@matthewbirtch matthewbirtch left a comment

Choose a reason for hiding this comment

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

Thanks @devinbinnie! Looks great

@devinbinnie devinbinnie removed the 1: UX Review Requires review by a UX Designer label Sep 25, 2020
Copy link
Contributor

@alifarooq0 alifarooq0 left a comment

Choose a reason for hiding this comment

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

Nice work @devinbinnie!


.DropdownInput__option.focused > div {
background-color: rgba(var(--center-channel-color-rgb), 0.08);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: empty line

}
};

let inputClass = className ? `Input ${className}` : 'Input';
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to use pkg Classnames here? might help inline these as opposed to using the ternary operator.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this was pulled from CWS where I don't think we're using this. Should be a quick refactor.

@devinbinnie
Copy link
Member Author

/update-branch

@@ -142,8 +145,18 @@ const BillingSubscriptions: React.FC<Props> = () => {
className='BillingSubscriptions__topWrapper'
style={{marginTop: '20px'}}
>
<div style={{border: '1px solid #000', width: '568px'}}>
<div style={{border: '1px solid #000', width: '568px', padding: '8px', backgroundColor: '#fff'}}>
Copy link
Contributor

@deanwhillier deanwhillier Oct 1, 2020

Choose a reason for hiding this comment

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

Are you planning on moving inline styles (these and others) out to a css module or global styles at some point?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are temporary just so I can get an idea of the layout.
All of these in-line styles will be going away and replaced with actual components or divs with classes attached.

Copy link
Contributor

@deanwhillier deanwhillier left a comment

Choose a reason for hiding this comment

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

LGTM, again with the understanding that these components will be iterated on as part of the upcoming common components initiative.

@devinbinnie, I chatted briefly with @matthewbirtch and we were thinking that we should have the mouse cursor change to show the interaction hand when mousing over the input field and dropdown options.

@devinbinnie devinbinnie added the 4: Reviews Complete All reviewers have approved the pull request label Oct 1, 2020
@devinbinnie devinbinnie merged commit f8e7fc9 into mattermost:master Oct 1, 2020
@mattermod mattermod removed the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Oct 1, 2020
@mm-cloud-bot
Copy link

Test server destroyed

1 similar comment
@mm-cloud-bot
Copy link

Test server destroyed

@amyblais amyblais removed the 2: Dev Review Requires review by a core commiter label Oct 2, 2020
Tak-Iwamoto pushed a commit to Tak-Iwamoto/mattermost-webapp that referenced this pull request Oct 2, 2020
…o MM-20462

* 'master' of github.com:Tak-Iwamoto/mattermost-webapp: (23 commits)
  [MM-25553] favicon added for unread messages without mention (mattermost#6431)
  fix intermittent failing tests at common commands (mattermost#6606)
  [MM-28260] Automate backlogs - Integrations > Slash Commands (mattermost#6429)
  [MM-27207] e2e archived channels I (4) (mattermost#6511)
  MM-24813 Add e2e tests for archive post menu options (mattermost#6571)
  fix MM-T1467 (mattermost#6588)
  MM-23345 - MM-T187 Inline markdown images open preview window (mattermost#6455)
  [Mm-27817] e2e add user to gm (mattermost#6278)
  [MM-28199] Dropdown Input Common Component (mattermost#6543)
  [MM-28783] migrate string refs in edit post modal (mattermost#6560)
  MM-24811 Archive channels should not have options to manage users (mattermost#6570)
  MM-28263: Cypress/E2E: Automate backlogs - Messaging > Pinned Posts part 2 (mattermost#6519)
  Cypress/E2E: Fix MM-T1462 accessibility for incoming message (mattermost#6589)
  Added legal text to upgrade button, and showing again the Edition section in team edition (mattermost#6470)
  add uiClickPostDropdownMenu (mattermost#6581)
  Fix nested a tags in Marketplace labels (mattermost#6520)
  [MM-27277] Enable stream mode for file uploads (mattermost#6568)
  move cypress plugin api (mattermost#6496)
  [MM-28361] User limit reached and overage banners for Mattermost Cloud (mattermost#6548)
  MM-28409 Add e2e for testing archive channel header (mattermost#6522)
  ...
@marianunez
Copy link
Member

@devinbinnie just a reminder to cherry-pick this to cloud-ga

@marianunez
Copy link
Member

@devinbinnie Ignore my comment above, this is already in cloud-ga 🤦‍♀️

@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Oct 13, 2020
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
* WIP

* [MM-28199] Dropdown Input Common Component

* Remove commented code

* Inset focus borders

* More CSS fixes

* Refactor to use classnames

* Blank line

* Added cursor:pointer for the input and menu

Co-authored-by: Mattermod <[email protected]>
calebroseland pushed a commit that referenced this pull request Oct 27, 2020
* WIP

* [MM-28199] Dropdown Input Common Component

* Remove commented code

* Inset focus borders

* More CSS fixes

* Refactor to use classnames

* Blank line

* Added cursor:pointer for the input and menu

Co-authored-by: Mattermod <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation QA Review Done
Projects
None yet
10 participants