Important Question: Public Directory Handling and Fixed News Archive Accordion Functionality and Add Caret
Important Question: Public Directory Handling
The changes required to fix this issue are located inside the public/ directory, which is currently listed in .gitignore.
Before finalizing the PR, I need clarification:
Should I force-add (git add -f) the updated public/ directory and include it in the PR, or should I share the updated code directly with the maintainer for manual integration?
Since Git normally prevents tracking ignored files, I want to ensure the correct approach before pushing the fix.
Please confirm the preferred workflow.
Fix Implemented: News Archive Accordion Issue
ISSUE FOUND IN: https://grass.osgeo.org/news/
I have fully identified, fixed, and tested the issue with the News Archive accordion where all year panels (1991–2025) were always visible and the Bootstrap collapse functionality was not working.
The fix includes:
-
Correcting the HTML structure so that each year’s
<ul class="all-posts">is properly wrapped inside the Bootstrap collapse container. -
Removing incorrect classes and applying proper Bootstrap attributes for toggling.
-
Standardizing collapse IDs for all years.
-
Adding a caret icon to improve user experience and indicate expandable sections.
Outcome after the fix:
✔ All panels now load collapsed ✔ Only one panel opens at a time ✔ Older news (before 2024) is accessible again ✔ UI behaves consistently with Bootstrap standards
Result Screenshot:
Why I Could Not Raise the PR
All the modified files are inside the public/ directory, but this directory is listed in .gitignore.
Because of this:
- Git does not track any changes inside the
public/folder - I am not able to commit or push the modified files normally
- A PR cannot be created unless I force-add the ignored directory
I am ready with the workingcode, but before creating the PR, I need clarification from the maintainers on whether they prefer:
- Force-adding (
git add -f) thepublic/directory to include the fix in the PR or - Handling updates to the ignored directory manually on their side
I will proceed immediately once I receive guidance.
I assume you are referring to #557? The changes would be in themes/grass/layouts/news/allnews.html and probably somewhere else too. So I would say neither of the options you suggest is preferable, public is generated so you are not supposed to do any changes there.
I assume you are referring to #557? The changes would be in themes/grass/layouts/news/allnews.html and probably somewhere else too. So I would say neither of the options you suggest is preferable, public is generated so you are not supposed to do any changes there.
Thank you very much for your response. Yes, it appears to be the same bug that I worked on. I reviewed the entire website to identify any issues, and during that process, I found the bug in news/allnews.html. I was not aware that someone was already addressing it. I also did not realize that changes should not be made in the public folder, as it is generated. Since I have already implemented a fix, I would be happy to share the updated code if you feel it may be useful. If not, that is completely alright.
I suspect the changes might not be super useful for us in that form.
I suspect the changes might not be super useful for us in that form.
Thank you for letting me know. That is perfectly fine. I understand, and I will definitely keep this in mind for future contributions. I am willing to contribute better and follow the correct process going forward.