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

Feature Request: Save Email Subject and Content to Firebase #22

Open
muzammildafedar opened this issue Oct 3, 2024 · 3 comments
Open
Assignees
Labels
feature request New features for Udayah

Comments

@muzammildafedar
Copy link
Owner

Description:

We would like to request a feature that allows users to save the email subject and content to Firebase when they click the "Save for Future" button. This feature should also support editing existing entries. The implementation should involve the following:

Requirements:

  1. Store Email Data:

    • When the user clicks the "Save for Future" button, the app should save the following information in Firebase:
      • Email address (from Firebase Auth of the logged-in user) - Use this as docID
      • Email subject
      • Email content
  2. Editing Existing Entries:

    • If the user edits the email subject or content, the app should update the existing entry in Firebase instead of creating a new one. The update should be based on the unique identifier (e.g., a combination of the user’s email and a timestamp or a generated ID).
  3. Prefill Data:

    • When the user revisits the relevant section of the app, if there is existing data in Firebase for the logged-in user, the email subject and content should be prefilled in the respective input fields.
    • If no data exists for the user, the fields should remain empty.

Acceptance Criteria:

  • Email subject and content are successfully saved to Firebase upon clicking "Save for Future."
  • If edited, the existing entry in Firebase is updated rather than creating a new one.
  • The logged-in user's email address is used as a reference key for storing and retrieving data.
  • When revisiting the section, existing data is prefilled in the input fields if available.
  • Appropriate error handling is implemented if the save or update operation fails.

Additional Information:

This feature will help users quickly access previously saved email subjects and content, improving usability and efficiency.

@Atharva-Werulkar
Copy link

Hello,

I'm interested in working on this feature request.

@muzammildafedar
Copy link
Owner Author

@Atharva-Werulkar how's your progress on this?

@may-tas
Copy link

may-tas commented Oct 16, 2024

can I take work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New features for Udayah
Projects
None yet
Development

No branches or pull requests

3 participants