When events.json can't be loaded, the countdown later says "No upcoming events" and a filter click erases the error message
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with how the page handles a failed events.json load, then how the countdown's 60-second refresh and the filter buttons read the events list. Reproduce by serving the folder with that file returning 500 or missing, then check the README.md "How it's supposed to work" section. Done means the error message stays visible, the countdown never says "No upcoming events" after a failed load, and filters keep the message. PR #22 is already open against this issue, so check it first.
Written by the indexing model from the issue text.
Description
Related to #4, but this is a different input path.
#4 asked that "the page still works if it fails to load" and PR #12 added the "Events could not be loaded right now." message. That message is only shown once, right at the failed load; the countdown and the filter buttons keep running afterwards as if the events list were simply empty.
What I did
- Checked out
main(72ad265) and served the folder over HTTP, withevents.jsonunavailable (I tried both a server that answers 500 for that file and the file deleted, so 404). - Opened the page. The Events list shows "Events could not be loaded right now." and the countdown is blank.
- Clicked a filter button (e.g. Workshops, or All).
- On a second run, left the page open for over a minute instead of clicking.
What I expected
The README says: "The countdown under the heading is for the next event that hasn't happened yet. If there are none, it says so." (README.md, "How it's supposed to work"). When the events could not be loaded, nobody knows whether there are any, so the page should not claim there are none, and the error message should stay visible.
What happened instead
- After about 60 seconds (the countdown's refresh interval) the countdown changes from blank to "No upcoming events".
- Clicking any filter button, including All, replaces the error message with an empty list, so the Events section is just blank.
Checked in headless Edge with a real 61 s wait: list "Events could not be loaded right now." and blank countdown after the failed load; "No upcoming events" after the tick; empty list after clicking Workshops and after clicking All.
Environment
main @ 72ad265, Edge (headless), Windows 11, static files served over HTTP.
I'd like to work on the fix for this.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 4
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from techcsispit/campus-landing
-
Opening the page at /#faq or /#contact (or clicking FAQ while events load) does not land on that section: the events list is added above it afterwardsPossibly taken @tanujb03 claimed this 5 days ago. Openbug good first issue
Difficulty 3/5 1-2 days Newbie friendliness 60/100
techcsispit/campus-landing#24 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 Under an hour Newbie friendliness 50/100
techcsispit/campus-landing#23 ·
Maintainers usually reply within 1 day
-
Filter chosen before events.json finishes loading is ignored: button stays active but every event is shownPossibly taken @tanujb03 claimed this 6 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
techcsispit/campus-landing#19 ·
Maintainers usually reply within 1 day
-
Calendar export is missing some fieldsPossibly taken @tanujb03 claimed this 5 days ago. Openbug good first issue
Difficulty 3/5 Half a day Newbie friendliness 62/100
techcsispit/campus-landing#18 · 1 comment ·
Maintainers usually reply within 1 day
-
Add an upcoming eventPossibly taken @p1xl07 claimed this 12 days ago. Openfeature good first issue
techcsispit/campus-landing#1 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in techcsispit/campus-landing
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Add: EUROTV NEWSOpenchannels:add check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
githubnext/gh-aw-workshop#4638 ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openclaw/openclaw-enterprise#2571 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day