Skip to content

Conversation

@randall-krauskopf
Copy link
Contributor

@randall-krauskopf randall-krauskopf commented Oct 30, 2024

Closes https://github.com/github/primer/issues/4299

Changelog

Changed

  • Update the base primer exports and other internal references to use the Select component used in src/Select/Select.tsx instead of the duplicate one located at src/Select.tsx which was causing some confusion.
  • Convert select component to css module behind feature flag.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2024

🦋 Changeset detected

Latest commit: e9b9710

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 30, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5194 October 30, 2024 20:31 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.54 KB (+0.16% 🔺)
packages/react/dist/browser.umd.js 97.87 KB (+0.12% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-5194 October 30, 2024 20:38 Inactive
@randall-krauskopf randall-krauskopf changed the title Feature(Select): Migrate Select component to CSS Modules behind feature flag feat(Select): Convert Select component to CSS Modules behind feature flag Oct 30, 2024
@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/349335

import Checkbox from '../Checkbox'
import Radio from '../Radio'
import Select from '../Select'
import Select from '../Select/Select'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use the newest Select component

import React from 'react'
import {Select, FormControl, Box, Heading} from '..'
import {FormControl, Box, Heading} from '..'
import Select from '.'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Get Select from the correct location

@@ -1,5 +1,5 @@
import React from 'react'
import {Select} from '../../src'
import Select from '.'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Get Select from the correct location

export {default as Select} from './Select'
export type {SelectProps} from './Select'
// Curently there is a duplicate Select component at the root of the dir, so need to be explicit about exporting from the src/Select dir
export {default as Select} from './Select/Select'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@joshblack Should I explore deleting the src/Select.tsx file in a follow up PR?

Copy link
Member

Choose a reason for hiding this comment

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

That would be very much so appreciated if you have the time! 🙏

@primer-integration
Copy link

🟢 golden-jobs completed with status success.

@randall-krauskopf randall-krauskopf added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 719def7 Oct 31, 2024
43 checks passed
@randall-krauskopf randall-krauskopf deleted the select-css-modules branch October 31, 2024 18:05
@primer primer bot mentioned this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants