Skip to content

Conversation

@tischsoic
Copy link
Contributor

@tischsoic tischsoic commented Jun 5, 2025

@tischsoic tischsoic self-assigned this Jun 5, 2025
@tischsoic tischsoic changed the base branch from main to 4.6 June 5, 2025 14:53
@tischsoic tischsoic marked this pull request as ready for review June 9, 2025 12:00
@tischsoic tischsoic requested a review from a team June 9, 2025 12:00
@ezrobot ezrobot requested review from GrabowskiM, OstafinL, RopRaptor, albozek and dew326 and removed request for a team June 9, 2025 12:00
@tischsoic tischsoic requested a review from GrabowskiM June 17, 2025 09:52
@tischsoic tischsoic force-pushed the ibx-9807-adjusted-time-filters branch 2 times, most recently from 578f7a1 to 7c1454c Compare June 17, 2025 10:06
@konradoboza konradoboza changed the title IBX-9807: Introduce date range single component [TMP COMMIT] IBX-9807: Introduce date range single component Jun 26, 2025
Copy link
Contributor

@KamilSznajdrowicz KamilSznajdrowicz left a comment

Choose a reason for hiding this comment

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

500 error when interacting with the filters

Zrzut ekranu 2025-06-26 o 16 07 42

This occurs when I click the search icon, or hange the Trashed filter from "Any time" to "Last week", and then back to "Any time".

bug.search.mov

@konradoboza
Copy link
Contributor

The issue should be fixed @KamilSznajdrowicz, please retest.

Copy link
Contributor

@KamilSznajdrowicz KamilSznajdrowicz left a comment

Choose a reason for hiding this comment

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

More bugs in search and with custom range:

  1. When I enter a keyword in the search input and click "Search", the system automatically sets today’s date (27/06/2025) as the value for both "Last Modified" and "Created" filters — even though I didn’t select any date.
    Clicking "Clear" does not remove these date values, and the search remains filtered by today’s date.
    I’ve attached a recording of the issue and a comparison with another environment where the filters reset correctly.
Nagranie.z.ekranu.2025-06-27.o.15.54.45.mov
  1. When I set a custom date range in the "Last Modified" or "Created" filter, the "Apply" button remains disabled and cannot be clicked — even though a valid date range has been selected.
Nagranie.z.ekranu.2025-06-27.o.16.02.17.mov
  1. In the Search, Trash, and Discounts views, when selecting a custom date range, the selected time shifts 2 hours earlier than intended — even though my timezone is correctly set to Europe/Warsaw.
Nagranie.z.ekranu.2025-06-29.o.15.07.41.mov

@tischsoic tischsoic force-pushed the ibx-9807-adjusted-time-filters branch from 0adef4a to 1ae8916 Compare July 1, 2025 11:31
Copy link
Contributor

@KamilSznajdrowicz KamilSznajdrowicz left a comment

Choose a reason for hiding this comment

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

@tischsoic hi :) last modified works but I have still issue with Created:

  1. When I set the "Created" filter to "last week" and then click "Clear," the filter value does not get removed. The "Created" filter remains set, and the search continues to be filtered by that date range instead of resetting.
created.not.delete.mov
  1. When I set a custom date range in the "Created" filter, the "Apply" button remains disabled and cannot be clicked
crated.custom.range.mov

@tischsoic tischsoic force-pushed the ibx-9807-adjusted-time-filters branch from 1ae8916 to e2de6e0 Compare July 2, 2025 13:17
Copy link
Contributor

@KamilSznajdrowicz KamilSznajdrowicz 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 fixes!
QA Approved
Regression ibexa/commerce#1357

@konradoboza konradoboza changed the title [TMP COMMIT] IBX-9807: Introduce date range single component IBX-9807: Introduce date range single component Jul 3, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2025

const { periodSelector, endSelector } = lastModifiedDateRangeNode.dataset;
const lastModifiedPeriodValue = doc.querySelector(periodSelector).value;
const lastModifiedEndDate = doc.querySelector(endSelector).value;
const lastModifiedStartDateValue = lastModifiedStartDate.value;
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick - not sure if we need this kind of variables, where you just assign property from object. :)

@konradoboza konradoboza merged commit 1cf0673 into 4.6 Jul 3, 2025
29 checks passed
@konradoboza konradoboza deleted the ibx-9807-adjusted-time-filters branch July 3, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working QA approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants