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

feat(commerce): add pagination and sort sub-controllers #3800

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

Spuffynism
Copy link
Contributor

@Spuffynism Spuffynism commented Apr 15, 2024

In follow-up PRs, I will:

  • Add pagination to the recs controller
  • Make sub-controller state handled separated, to allow multiple solution types to coexist
  • Add the facet generator as sub-controller
  • Remove the build[SolutionType]pagination, build[SolutionType]sort, build[SolutionType]facetGenerator and similar top-level builders that become sub-controllers

CAPI-719

@Spuffynism Spuffynism requested a review from a team as a code owner April 15, 2024 19:07
Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 200 200 0
commerce 248 248.2 0.1
search 356.2 356.2 0
insight 337.3 337.3 0
product-listing 252 252 0
product-recommendation 170.5 170.5 0
recommendation 212.9 212.9 0
ssr 350.2 350.2 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
product-recommendation 0 10 0
product-listing 0 13 0
case-assist 0 6 0
insight 0 27 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
product-recommendation : missing SSR support
product-listing : missing SSR support
case-assist : missing SSR support
insight : missing SSR support

@Spuffynism Spuffynism enabled auto-merge April 16, 2024 20:37
@Spuffynism Spuffynism added this pull request to the merge queue Apr 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2024
@Spuffynism Spuffynism added this pull request to the merge queue Apr 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 17, 2024
@Spuffynism Spuffynism added this pull request to the merge queue Apr 17, 2024
Merged via the queue into master with commit 5f2d2a2 Apr 17, 2024
90 checks passed
@Spuffynism Spuffynism deleted the feat-capi-719-sub-controllers branch April 17, 2024 12:42
github-merge-queue bot pushed a commit that referenced this pull request Apr 18, 2024
Two changes are necessary to allow multiple recs slots:
- Passing the `slotId` to the action to fetch recs
- Changing the recommendations state to support multiple recommendations
slots

Other changes in the PR follow from these two changes.

With this in place, it'll be easier to complete the work in
#3800

[CAPI-762]

[CAPI-762]:
https://coveord.atlassian.net/browse/CAPI-762?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
github-merge-queue bot pushed a commit that referenced this pull request Apr 29, 2024
To understand changes this enables, see:
- #3854 where the pagination
sub-controller is put to use
- #3855 where we expose the facet
sub-controllers
- #3857 where we remove now replaced
top-level controllers
- #3859 where we expose the
breadcrumb manager sub-controller

To understand how we came to this solution, see:
- #3825 where we tried slicing the
pagination as a `Record`
- #3800 where we added pagination
and sort as sub-controllers

~And see
feat-capi-719-sliced-pagination-states...feat-capi-719-sliced-structured-pagination-states
for the diff between this approach and the above PR~

[CAPI-719]

[CAPI-719]:
https://coveord.atlassian.net/browse/CAPI-719?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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