fix(project): resolve build errors and restore form autosave (#248, #252) - #319
Open
Sulamoney222 wants to merge 2 commits into
Open
fix(project): resolve build errors and restore form autosave (#248, #252)#319Sulamoney222 wants to merge 2 commits into
Sulamoney222 wants to merge 2 commits into
Conversation
…#248, HubDApp#252) - Fix duplicate import errors in project detail page - Fix broken JSX nesting and missing types in admin page - Fix form autosave draft restoration in ProjectForm - Fix TypeScript type errors across changed files
|
@Sulamoney222 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Author
|
@Naomi-Gift Done ✅ . |
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.
Overview
This PR fixes build errors blocking the comparison view feature and restores the form autosave draft restoration for project descriptions. Both features were already partially implemented in the codebase but had regressions that prevented them from working correctly.
Related Issues
Closes #248 — Add comparison view for selected projects
Closes #252 — Add form autosave for long project descriptions
Changes
🐛 Comparison View Build Fixes (#248)
[FIX]
app/projects/[id]/page.tsxBookmark,BookmarkCheck,Bug,Shieldimports fromlucide-reactreviewReportServiceimportauthorAddressfromaddUpdate()data object (it is passed as a separate argument)[FIX]
app/admin/page.tsx), 0;closing forsetTimeoutcall (was preventing compilation)pendingProjectReports.map()into the ternary's else branchProjectReport,ProjectClaimRequest,ProjectModerationActionreviewsByIdstate initialization with review data fetch forgetReviewForReport()helper🐛 Form Autosave Draft Restoration (#252)
components/projects/ProjectForm.tsxreset(draft.loadedDraft)call in theuseEffectthat detects when a saved draft is loaded, so the form fields are actually populated with the previously saved data instead of remaining emptyVerification Results
ProjectCard+ComparisonContextcompare/page.tsxdraft.service.tsDraftIndicatordiscard buttonTimeline