Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix campaigns list rendering above recent news section issue on index page when navigating back via cancel button #6047

Conversation

Abishekcs
Copy link
Contributor

@Abishekcs Abishekcs commented Nov 26, 2024

What this PR does

This pull request fixes an issue where the campaigns list sometimes rendered incorrectly above the Recent News section when navigating back via the cancel button. The campaigns list now consistently appears below Recent News.

Screenshots

Before:

2024-12-08.18-13-42.mp4

After:

After.mp4

Cause of Bug :

The issue occurred because, in the HAML file, the HTML for the campaigns list was placed above the HTML for the Recent News section. This behavior was observed when the request path included /course_creator.

@ragesoss
Copy link
Member

The campaigns list is supposed to be on this index page, but it is intended to render at the bottom of the page below the Recent News section (which it does usually, except when you navigate back this route via a cancel button).

@Abishekcs Abishekcs marked this pull request as draft November 27, 2024 03:44
@Abishekcs
Copy link
Contributor Author

except when you navigate back this route via a cancel button

@ragesoss Just to be clear, 😅 it should render when we navigate via the cancel button, but it should appear below the Recent News section?

@Abishekcs Abishekcs force-pushed the fix/campaign-table-appears-when-closing-modals branch from 9a9155a to 9a07fca Compare December 8, 2024 12:17
@Abishekcs Abishekcs changed the title Fix: Prevent campaign table from appearing when closing modals Fix campaigns list rendering issue on index page when navigating back via cancel button Dec 8, 2024
@Abishekcs Abishekcs marked this pull request as ready for review December 8, 2024 12:42
@Abishekcs Abishekcs changed the title Fix campaigns list rendering issue on index page when navigating back via cancel button Fix campaigns list rendering above recent news section issue on index page when navigating back via cancel button Dec 8, 2024
@ragesoss ragesoss merged commit ac972e4 into WikiEducationFoundation:master Dec 9, 2024
1 check passed
@Abishekcs Abishekcs deleted the fix/campaign-table-appears-when-closing-modals branch December 10, 2024 03:00
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