Skip to content

feat: add filter and selected tag for pending my approval - #3101

Merged
eduardoformiga merged 4 commits into
devfrom
feat/pending-approval
Nov 11, 2025
Merged

eduardoformiga merged 4 commits into
devfrom
feat/pending-approval

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Adds a new "Pending Approval" filter to the MyAccount orders page, allowing users to quickly filter orders that require their approval.

How it works?

  • New toggle filter: Added "Pending Approval" as the first filter option in the orders filter slider
  • Toggle switch: Users can turn on/off the filter to show only pending approval orders
  • URL integration: Filter state is reflected in the URL (?pendingApproval=true)
  • Selected tag: When active, shows "Pending my approval" tag below the search bar

How to test it?

  • Go to /account/orders
  • Open filter slider and verify "Pending Approval" is the first option
  • Toggle the switch and click "Apply"
  • Check URL - should include ?pendingApproval=true
  • Verify tag appears - "Pending my approval" tag should show below search bar
  • Test removal - click "×" on tag or "Clear All" to remove filter
  • Test direct URL - navigate to /account/orders?pendingApproval=true and verify filter is active

Starter deploy preview

vtex-sites/b2bfaststoredev.store#358

References

SFS-2618

List Filter
image image

@lucasfp13 lucasfp13 self-assigned this Nov 5, 2025
@codesandbox-ci

codesandbox-ci Bot commented Nov 5, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Adds a new "Pending Approval" filter to the MyAccount orders page,
allowing users to quickly filter orders that require their approval.

- New toggle filter: Added "Pending Approval" as the first filter option
in the orders filter slider
- Toggle switch: Users can turn on/off the filter to show only pending
approval orders
- URL integration: Filter state is reflected in the URL
(?pendingApproval=true)
- Selected tag: When active, shows "Pending my approval" tag below the
search bar

- Go to /account/orders
- Open filter slider and verify "Pending Approval" is the first option
- Toggle the switch and click "Apply"
- Check URL - should include ?pendingApproval=true
- Verify tag appears - "Pending my approval" tag should show below
search bar
- Test removal - click "×" on tag or "Clear All" to remove filter
- Test direct URL - navigate to /account/orders?pendingApproval=true and
verify filter is active

[SFS-2618](https://vtex-dev.atlassian.net/browse/SFS-2618)

| List | Filter |

|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
|
![image](https://github.com/user-attachments/assets/70a02298-4461-4b21-926d-8d6b754a78bc)
|
![image](https://github.com/user-attachments/assets/2d6afc76-7153-473a-b839-c141e4f0ca1f)
|

[SFS-2618]:
https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@lucasfp13
lucasfp13 force-pushed the feat/pending-approval branch from 7c21d1d to dd887e5 Compare November 5, 2025 18:25
@lucasfp13
lucasfp13 marked this pull request as ready for review November 7, 2025 20:04
@lucasfp13
lucasfp13 requested a review from a team as a code owner November 7, 2025 20:04
@lucasfp13
lucasfp13 requested review from lemagnetic and matheusps and removed request for a team and lemagnetic November 7, 2025 20:04

@eduardoformiga eduardoformiga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good Job!
I tested it now and it worked as expected 👏
Screenshot 2025-11-11 at 18 03 30

align-items: center;
padding: var(--fs-spacing-2) 0;

label {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe a data-fs data attribute here instead?

@eduardoformiga
eduardoformiga merged commit c4c3f6a into dev Nov 11, 2025
@eduardoformiga
eduardoformiga deleted the feat/pending-approval branch November 11, 2025 21:13
sahanljc added a commit to clouda-inc/faststore that referenced this pull request Nov 11, 2025
* dev:
  feat: add filter and selected tag for pending my approval (vtex#3001) (vtex#3101)
thiagopereira-vtex pushed a commit that referenced this pull request Jan 8, 2026
)

## What's the purpose of this pull request?

Adds a new "Pending Approval" filter to the MyAccount orders page,
allowing users to quickly filter orders that require their approval.

## How it works?

- New toggle filter: Added "Pending Approval" as the first filter option
in the orders filter slider
- Toggle switch: Users can turn on/off the filter to show only pending
approval orders
- URL integration: Filter state is reflected in the URL
(?pendingApproval=true)
- Selected tag: When active, shows "Pending my approval" tag below the
search bar

## How to test it?

- Go to /account/orders
- Open filter slider and verify "Pending Approval" is the first option
- Toggle the switch and click "Apply"
- Check URL - should include ?pendingApproval=true
- Verify tag appears - "Pending my approval" tag should show below
search bar
- Test removal - click "×" on tag or "Clear All" to remove filter
- Test direct URL - navigate to /account/orders?pendingApproval=true and
verify filter is active

## Starter deploy preview

vtex-sites/b2bfaststoredev.store#358

## References

[SFS-2618](https://vtex-dev.atlassian.net/browse/SFS-2618)

| List | Filter |
| - | - |
|
![image](https://github.com/user-attachments/assets/70a02298-4461-4b21-926d-8d6b754a78bc)
|
![image](https://github.com/user-attachments/assets/2d6afc76-7153-473a-b839-c141e4f0ca1f)
|

[SFS-2618]:

https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

[SFS-2618]:
https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Artur Santiago <[email protected]>
@lucasfp13 lucasfp13 changed the title feat: add filter and selected tag for pending my approval (#3001) feat: add filter and selected tag for pending my approval Jan 12, 2026
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.

3 participants