Code-By-Adarsh / Code-By-Adarsh/Mail-Karo

Enhancement: Prompt Google Login Before Using AI Features

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature request frontend good first issue help wanted open for contributors UI ui-enhancement
Dominant language
HTML
Stars
12
Forks
30
PR merge metrics
No merged PRs in 30d

Description

📌 Problem
Currently, users can access and use AI tools on Mail Karo **without logging in**.

This causes multiple issues:
- AI features can be misused anonymously
- No way to track or protect usage
- Higher operational cost
- Users may not realize login is required for a full experience

When a user clicks on actions like:
- Generate Email
- Check Email Quality
- Convert PDF
👉 the feature works even without authentication, which is not intended.

---

✅ Goal
Require users to **log in with Google before using any AI feature**, while still allowing them to **browse the website freely without login**.

If a user is not logged in and clicks on a protected action:
- Show a **clean and friendly warning message**
- Explain why login is required
- Provide a **Login with Google** button for easy access

---

Sample Image:

Image

---

📂 File Location
1. Feature buttons & structure → `index.html`
2. Styling (modal / toast) → `Homepage CSS`
3. Login check & interaction → `Homepage JS`

---

💡 Expected Message (example)
🔐 Login Required

To use this feature, please log in with Google.
This helps us prevent misuse and protect our AI resources.

👉 Login with Google

*(Text can be improved, but meaning should remain the same.)*

---

✅ Acceptance Criteria

- Clicking **Generate Email** without login shows the warning
- Clicking **Check Email Quality** without login shows the warning
- Clicking **PDF Converter** without login shows the warning
- Warning includes a **Login with Google** button
- UI should look clean and professional
- After successful login, user should be able to continue using features

---

🛠️ Suggested Implementation

✅ Preferred:
- Modal popup (recommended)
- Toast / Snackbar

✅ Allowed fallback:
- Simple `alert()` (only if needed)

---

🎯 Why this matters
This improves:
- Security
- User experience
- Abuse prevention
- Overall product professionalism

It also prepares the platform for future premium features.

---

🤝 Want to contribute?
If you're interested in working on this issue, comment **"assign me"** and I’ll assign it to you ✅

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.