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

chore: Deprecate Dropdown, Input, Select; Remove Popover #680

Merged
merged 7 commits into from
Aug 15, 2022

Conversation

frankieyan
Copy link
Member

@frankieyan frankieyan commented Aug 11, 2022

Short description

As titled, this removes a couple components that have been deprecated for a while as we no longer use them in Todoist or Twist, and deprecates a few more components that will be removed in the future.

This allows us to reduce the scope of #676 so we have fewer legacy tests to maintain.

Deprecations

  • Dropdown: still used in Twist and its export has been renamed to DeprecatedDropdown
  • Input: still used in Twist and its export has been renamed to DeprecatedInput. TextField should be used instead
  • Select: one instance in Twist and one in Todoist. SelectField should be used instead, renamed and will be removed in the next release

Removals

  • Popover: this was undocumented and wasn't used in our codebases

image

Twist discussion around replacements for Dropdown: https://twist.com/a/1585/ch/190200/t/3685978/

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)
  • Executed npm run validate and made sure no errors / warnings were shown
  • Described changes in CHANGELOG.md
  • Bumped version in package.json and package-lock.json (npm --no-git-tag-version version <major|minor|patch>) ref
  • Updated all static build artifacts (npm run build-all)

Versioning

Major

@frankieyan frankieyan requested review from a team and nats12 and removed request for a team August 11, 2022 09:31
@frankieyan frankieyan changed the title chore: Dreprecate Dropdown, Input, Checkbox, Select; Remove Popover, Modal chore: Deprecate Dropdown, Input, Checkbox, Select; Remove Popover, Modal, Loading Aug 11, 2022
@frankieyan
Copy link
Member Author

frankieyan commented Aug 11, 2022

On hold as this overlaps some of the work from #672

@frankieyan frankieyan marked this pull request as draft August 11, 2022 12:05
@frankieyan frankieyan removed the request for review from nats12 August 11, 2022 12:05
@frankieyan frankieyan changed the title chore: Deprecate Dropdown, Input, Checkbox, Select; Remove Popover, Modal, Loading chore: Deprecate Dropdown, Input, Select; Remove Popover Aug 12, 2022
@frankieyan frankieyan changed the base branch from main to ernesto/remove-deprecated-components August 12, 2022 16:28
@frankieyan frankieyan requested review from a team, pedroalves0 and gnapse and removed request for a team and pedroalves0 August 12, 2022 16:28
@frankieyan frankieyan marked this pull request as ready for review August 12, 2022 16:29
@frankieyan frankieyan mentioned this pull request Aug 12, 2022
@frankieyan frankieyan force-pushed the ernesto/remove-deprecated-components branch from 92639c4 to 1b9f12b Compare August 15, 2022 14:25
Base automatically changed from ernesto/remove-deprecated-components to main August 15, 2022 14:36
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -41,8 +41,8 @@ type Props = {

function ColorPicker({ color = 0, small, onChange, colorList = COLORS }: Props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should deprecate this one, given that:

  • It is relying on a deprecated component (technically not a reason for deprecating it, as it should be re-implemented internally to use something else)
  • More importantly: I think we should create a new one eventually that will probably have a different interface), and I'd also rename the new one to be a "select" and not a "picker".

Anyway, maybe not do anything about it now. I'm just dumping my thoughts.

Copy link
Member Author

Choose a reason for hiding this comment

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

Logged under #682 👍

@frankieyan frankieyan merged commit 4138c75 into main Aug 15, 2022
@frankieyan frankieyan deleted the frankie/deprecate-components branch August 15, 2022 16:16
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.

2 participants