FCC Donation Page Embed into WordPress#123
Open
aaronashby wants to merge 6 commits intomainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I embedded the donation page ("Make a Difference" banner,
GrowingGoal.tsx, andDonationForm.tsx) into WordPress. As of writing this PR, it is currently on a draft page in FCC's WP admin page, which I linked belowChanges Made
Added new
build-embedscript toproject.jsonto build the embedded appModified donation form styling
Created
embed.tsx, which is similar toroot.tsx, but shows the banner instead of the carousel on topAdded config file
vite.embed.config.mtsAdded
fcc-donation.phpto allow the plugin for enqueuing the css and js needed to display everythingWrote documentation explaining how the shortcode works, where assets live, and how to update the build
Backend changes
Frontend changes
Database schema changes
Configuration updates
Other
Testing & Verification
Verification Steps:
I created a draft page at https://fenwaycommunitycenter.org/?page_id=20697&preview=true (you must be logged into the WP admin to access this) and added the shortcode
[fcc_donation]Screenshots (if relevant)
Future Improvements/Notes
Related Issues
Closes #76