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

Conversation

sirgalleto
Copy link
Contributor

@sirgalleto sirgalleto commented Sep 20, 2023

WHY are these changes introduced?

Closes https://github.com/Shopify/temp-project-mover-Archetypically-20250409144733/issues/71

We believe giving users more visibility to the move column actions will enhance their experience.

WHAT is this pull request doing?

  1. Create an EditColumnsButton that handles the markup for the edit column action.
  2. Add a new property to <IndexFilters/> called showEditColumns, that when is true, renders the <EditColumnsButton/>
  3. Add storybook and test implementations.
Screen.Recording.2023-09-19.at.18.28.18.mov

Updated order or buttons:

Screenshot 2023-09-20 at 14 05 28

How to 🎩

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

  1. Run storybook.
  2. Go to IndexFilters > With Edit Columns Button.
  3. Play with the new button ✨
Copy-paste this code in playground/Playground.tsx:
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}

🎩 checklist

@sirgalleto sirgalleto requested a review from mrcthms September 20, 2023 00:31
@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch 6 times, most recently from 17c512d to 10cb148 Compare September 20, 2023 05:57
Copy link
Contributor

@mrcthms mrcthms left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! Would it also be possible to generate a new story for the Polaris site? Would be nice for folks to be able to discover this new functionality without having to go into the source code.

Copy link
Member

@chloerice chloerice left a comment

Choose a reason for hiding this comment

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

Thanks for contributing @sirgalleto, works great! Suggested an update to some naming for extra clarity. Just need to add your example to a new .md file in polaris.shopify.com/pages/examples 👀

@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch from c495732 to b459f2e Compare September 20, 2023 17:21
@sirgalleto sirgalleto requested a review from mrcthms September 20, 2023 17:22
@sjreive
Copy link

sjreive commented Sep 20, 2023

Nice work on this @sirgalleto! ✨ Just a note that in the Figma file & the original issue, the edit columns button is displayed in between the sort & filter button:

Screenshot 2023-09-20 at 2 28 23 PM

@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch from b459f2e to 7357a31 Compare September 20, 2023 20:05
@sirgalleto
Copy link
Contributor Author

Ohh my bad @sjreive, it's on the correct order now :D

Screenshot 2023-09-20 at 14 05 28

@sirgalleto sirgalleto requested a review from sjreive September 20, 2023 20:21
@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch from 7357a31 to 6a57e54 Compare September 20, 2023 20:27
sirgalleto and others added 4 commits September 21, 2023 21:31
Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com>
Co-authored-by: Marc Thomas <marc.thomas@shopify.com>
@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch 2 times, most recently from 062c7b1 to 038fc83 Compare September 22, 2023 04:25
@sirgalleto sirgalleto force-pushed the sirgalleto/add-column-picker-cta-to-index-component branch from 038fc83 to a38202c Compare September 22, 2023 04:43
@mattkubej
Copy link
Contributor

Is this ready for a final review or are you continuing to iterate on anything?

@sirgalleto
Copy link
Contributor Author

@mattkubej It should be ready for a final review

Copy link
Contributor

@mattkubej mattkubej left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@chloerice chloerice left a comment

Choose a reason for hiding this comment

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

Be sure to add the example metadata to the top of polaris.shopify.com/content/tables/index-table.md or the example won't show up.

@sirgalleto
Copy link
Contributor Author

@chloerice working ✨ thanks for the 👁️

Screenshot 2023-09-25 at 20 30 50

@sirgalleto
Copy link
Contributor Author

I'm impressed of how slow are this translations 🫠

@translation-platform translation-platform bot requested review from a team as code owners September 28, 2023 10:04
@sirgalleto sirgalleto merged commit 9fdd52a into main Sep 28, 2023
@sirgalleto sirgalleto deleted the sirgalleto/add-column-picker-cta-to-index-component branch September 28, 2023 17:32
sirgalleto added a commit that referenced this pull request Sep 28, 2023
sirgalleto added a commit that referenced this pull request Oct 2, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
chloerice pushed a commit that referenced this pull request Oct 3, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
mrcthms pushed a commit that referenced this pull request Oct 9, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
mrcthms pushed a commit that referenced this pull request Oct 9, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
sophschneider pushed a commit that referenced this pull request Nov 2, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
sophschneider pushed a commit that referenced this pull request Nov 2, 2023
Revert for making #10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide

---------

Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com>
Co-authored-by: Marc Thomas <marc.thomas@shopify.com>
Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
ascherkus pushed a commit to ascherkus/polaris that referenced this pull request Feb 19, 2025
ascherkus pushed a commit to ascherkus/polaris that referenced this pull request Feb 19, 2025
Revert for making Shopify#10580 part of
v12.x.x

### WHY are these changes introduced?

Closes https://github.com/Shopify/core-issues/issues/60374 

We believe giving users more visibility to the move column actions will
enhance their experience.

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

1. Create an `EditColumnsButton` that handles the markup for the edit
column action.
2. Add a new property to `<IndexFilters/>` called `showEditColumns`,
that when is true, renders the `<EditColumnsButton/>`
3. Add storybook and test implementations. 



https://github.com/Shopify/polaris/assets/5873627/5368e55f-839d-48eb-9362-dbe7d0e1a098

**Updated order or buttons:**

![Screenshot 2023-09-20 at 14 05
28](https://github.com/Shopify/polaris/assets/5873627/4ada4c7a-4182-469b-b506-aea01432f170)


<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

1. Run storybook. 
2. Go to IndexFilters > With Edit Columns Button. 
3. Play with the new button ✨ 

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
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