Skip to content

feat(quantic): addition of the ability to generate automatic ranges in timeframe facets - #8218

Open
mmitiche wants to merge 3 commits into
mainfrom
SFINT-6091
Open

feat(quantic): addition of the ability to generate automatic ranges in timeframe facets#8218
mmitiche wants to merge 3 commits into
mainfrom
SFINT-6091

Conversation

@mmitiche

@mmitiche mmitiche commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

SFINT-6091

The problem

Previously QuanticTimeframeFacet hardcoded generateAutomaticRanges: false on the underlying DateFacet controller, so the component could only show ranges manually declared via c-quantic-timeframe children.

The solution

This PR Exposes generateAutomaticRanges as a public property (default false, preserving current behaviour) and forwards it into buildDateFacet's options since range generation itself is already handled by headless.
Additionally wired this new property to the example component present in the community so the option is explorable/testable there.

  • New unit test added to cover this new feature.

@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 67d612a

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

This PR includes changesets to release 1 package
Name Type
@coveo/quantic 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

@mmitiche
mmitiche deployed to pr-workflows August 11, 2026 19:41 — with GitHub Actions Active
@svcsnykcoveo

svcsnykcoveo commented Aug 11, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@pkg-pr-new

pkg-pr-new Bot commented Aug 11, 2026

Copy link
Copy Markdown
@coveo/atomic

npm i https://pkg.pr.new/@coveo/atomic@8218

@coveo/atomic-hosted-page

npm i https://pkg.pr.new/@coveo/atomic-hosted-page@8218

@coveo/atomic-legacy

npm i https://pkg.pr.new/@coveo/atomic-legacy@8218

@coveo/atomic-react

npm i https://pkg.pr.new/@coveo/atomic-react@8218

@coveo/auth

npm i https://pkg.pr.new/@coveo/auth@8218

@coveo/bueno

npm i https://pkg.pr.new/@coveo/bueno@8218

@coveo/create-atomic

npm i https://pkg.pr.new/@coveo/create-atomic@8218

@coveo/create-atomic-component

npm i https://pkg.pr.new/@coveo/create-atomic-component@8218

@coveo/create-atomic-component-project

npm i https://pkg.pr.new/@coveo/create-atomic-component-project@8218

@coveo/create-atomic-result-component

npm i https://pkg.pr.new/@coveo/create-atomic-result-component@8218

@coveo/create-atomic-rollup-plugin

npm i https://pkg.pr.new/@coveo/create-atomic-rollup-plugin@8218

@coveo/create-ui

npm i https://pkg.pr.new/@coveo/create-ui@8218

@coveo/headless

npm i https://pkg.pr.new/@coveo/headless@8218

@coveo/headless-react

npm i https://pkg.pr.new/@coveo/headless-react@8218

@coveo/relay

npm i https://pkg.pr.new/@coveo/relay@8218

@coveo/shopify

npm i https://pkg.pr.new/@coveo/shopify@8218

commit: 67d612a

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🔗 Scratch Orgs ready to test this PR:

@mmitiche
mmitiche deployed to pr-workflows August 12, 2026 00:38 — with GitHub Actions Active
@mmitiche
mmitiche marked this pull request as ready for review August 12, 2026 10:34
@mmitiche
mmitiche requested review from a team and a lite review from Copilot August 12, 2026 10:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support in QuanticTimeframeFacet for Headless-driven automatic date ranges by exposing a new public generateAutomaticRanges boolean API (defaulting to false to preserve current behavior) and forwarding it to the underlying buildDateFacet options. It also updates the Quantic examples community component and adds unit test coverage.

Changes:

  • Added @api generateAutomaticRanges (default false) to QuanticTimeframeFacet and forwarded it into buildDateFacet options.
  • Added a unit test to verify the controller is built with generateAutomaticRanges: true when configured.
  • Updated the example community component to surface the new option, and added a changeset for @coveo/quantic.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/quantic/force-app/main/default/lwc/quanticTimeframeFacet/quanticTimeframeFacet.js Exposes generateAutomaticRanges and forwards it to the Headless date facet controller.
packages/quantic/force-app/main/default/lwc/quanticTimeframeFacet/tests/quanticTimeframeFacet.test.js Adds unit coverage for the new generateAutomaticRanges initialization behavior.
packages/quantic/force-app/examples/main/lwc/exampleQuanticTimeframeFacet/exampleQuanticTimeframeFacet.js Adds a configurator option so the feature can be toggled in the examples community.
packages/quantic/force-app/examples/main/lwc/exampleQuanticTimeframeFacet/exampleQuanticTimeframeFacet.html Wires generate-automatic-ranges into the example facet markup.
.changeset/quantic-timeframe-facet-automatic-ranges.md Declares a minor version bump for the new public API.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@SimonMilord SimonMilord left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants