Skip to content

fix: exclude past events from All Dates view (#32)#133

Open
ayxsh678 wants to merge 5 commits into
data-umbrella:mainfrom
ayxsh678:fix/filter-past-events
Open

fix: exclude past events from All Dates view (#32)#133
ayxsh678 wants to merge 5 commits into
data-umbrella:mainfrom
ayxsh678:fix/filter-past-events

Conversation

@ayxsh678
Copy link
Copy Markdown

@ayxsh678 ayxsh678 commented Mar 30, 2026

This PR fixes [Issue #32] (#32) where past events were incorrectly appearing in the "All Dates" view. The logic has been updated to ensure that "All Dates" strictly refers to all upcoming events, maintaining consistency with the dashboard's purpose.

Changes made:

Added an explicit all case to the date filter switch to exclude events where the date is in the past.

Fixed a stray character in the codebase that was triggering 38 parse errors in the CI/CD pipeline.

Updated existing tests to align with the new expected behavior for the "All Dates" filter.

Cleaned up pre-commit cache issues to ensure a green build.

How to test these changes
Run the application locally: $ npm run dev

Open the web browser at localhost:5173.

Navigate to the event board and select "All Dates" from the date filter dropdown.

Verify: Only events scheduled for today or in the future are displayed. Past events should be hidden.

Run the test suite: $ npm test to verify all tests pass with the new logic.

Pull Request checklists
This PR is a:

[x] bug-fix

[ ] new feature

[ ] maintenance

About this PR:

[x] it includes tests.

[x] the tests are executed on CI.

[x] pre-commit hooks were executed locally.

[ ] this PR requires a project documentation update.

Author's checklist:

[x] I have reviewed the changes and it contains no misspelling.

[x] The code is well commented, especially in the parts that contain more complexity.

[x] New and old tests passed locally.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 30, 2026

Deploy Preview for dueventboard ready!

Name Link
🔨 Latest commit c150b27
🔍 Latest deploy log https://app.netlify.com/projects/dueventboard/deploys/69d435dc6417270008becb0d
😎 Deploy Preview https://deploy-preview-133--dueventboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ayxsh678 ayxsh678 force-pushed the fix/filter-past-events branch 2 times, most recently from 507b1ba to a90b920 Compare March 31, 2026 00:00
@ayxsh678
Copy link
Copy Markdown
Author

All CI checks are now passing ✅

Summary of changes:

@yuvimittal
Copy link
Copy Markdown
Contributor

@ayxsh678 , could you add screenshots or recording of the working feature?

@ayxsh678
Copy link
Copy Markdown
Author

ayxsh678 commented Apr 5, 2026

Here's a screenshot @yuvimittal — the "All Dates" view now correctly shows only upcoming events (no past events):
image

ayxsh678 added 4 commits April 7, 2026 03:21
… past events from All Dates view (data-umbrella#32)

- Add explicit 'all' case to date switch filtering out past events
- Fix stray character causing 38 parse errors
- Update tests to reflect correct All Dates behaviour
@ayxsh678 ayxsh678 force-pushed the fix/filter-past-events branch 4 times, most recently from 9a19927 to 9578cb3 Compare April 6, 2026 22:35
@ayxsh678 ayxsh678 force-pushed the fix/filter-past-events branch from 9578cb3 to c150b27 Compare April 6, 2026 22:38
@ayxsh678
Copy link
Copy Markdown
Author

ayxsh678 commented Apr 6, 2026

I've just cleared the pre-commit cache and re-triggered the CI to ensure everything is running correctly. All checks are now passing green.

The PR description and checkboxes are fully updated, and the screenshot of the fix is attached above. This is ready for a final review! @yuvimittal

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