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

📩 Store comment draft in local storage per submission #453

Merged
merged 10 commits into from
May 13, 2024

Conversation

ClumsyVlad
Copy link
Member

@ClumsyVlad ClumsyVlad commented May 8, 2024

No description provided.

@ClumsyVlad
Copy link
Member Author

ClumsyVlad commented May 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ClumsyVlad and the rest of your teammates on Graphite Graphite

@ClumsyVlad ClumsyVlad force-pushed the save-comment-state-in-local-sotrage branch 2 times, most recently from 48b142f to ffedbff Compare May 8, 2024 09:59
@@ -3,6 +3,7 @@ import { z } from "zod";
export const LOCAL_STORAGE_KEYS = {
waveStepsData: "waveStepsData",
applicationStepsData: "applicationStepsData",
commentsData: "commentsData",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs at least application id

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but not in this array I believe 🤔

@ClumsyVlad ClumsyVlad force-pushed the save-comment-state-in-local-sotrage branch from ffedbff to 1b27d2e Compare May 8, 2024 13:44
@ClumsyVlad ClumsyVlad changed the title Add basic comment storage key 📩 Store comment draft in local storage per submission May 8, 2024
@ClumsyVlad ClumsyVlad marked this pull request as ready for review May 8, 2024 13:49
@ClumsyVlad ClumsyVlad requested a review from nezouse May 8, 2024 13:50
@@ -3,9 +3,10 @@ import { z } from "zod";
export const LOCAL_STORAGE_KEYS = {
waveStepsData: "waveStepsData",
applicationStepsData: "applicationStepsData",
commentData: "commentData",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
commentData: "commentData",
commentData: (applicationId) => `commentData-${applicationId}`,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how types in getLocalStorageValue should work then 🤔

@ClumsyVlad ClumsyVlad requested a review from nezouse May 10, 2024 09:14
@ClumsyVlad ClumsyVlad force-pushed the save-comment-state-in-local-sotrage branch from 1b27d2e to 3e03fde Compare May 10, 2024 13:48
Base automatically changed from add-debounce-hook to main May 13, 2024 05:26
@nezouse nezouse force-pushed the save-comment-state-in-local-sotrage branch from c4ac13e to 56a396d Compare May 13, 2024 05:29
Copy link

▲ Vercel deployment successful! Preview Link

@nezouse nezouse merged commit 2324c6c into main May 13, 2024
3 checks passed
@nezouse nezouse deleted the save-comment-state-in-local-sotrage branch May 13, 2024 05:34
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