PrepEdge-AI icon indicating copy to clipboard operation
PrepEdge-AI copied to clipboard

Make Footer Mobile-Friendly

Open namami-13 opened this issue 1 year ago • 8 comments

Related Issue

Closes #85

Description

This PR improves the mobile responsiveness of the website footer. The layout and text scaling have been adjusted for small screens to ensure proper readability and alignment across devices. Also, I have added mobile responsiveness to CreateInterview form.

Type of Change:

  • [x] New Feature
  • [x] Style

Changes Made:

  • Updated Footer.jsx to use responsive grid and flex layouts.
  • Adjusted font sizes, spacing, and icon sizes for mobile screens.
  • Verified footer displays correctly on different screen widths.
  • Added mobile responsiveness to CreateInterview form.

Testing:

  • Tested on mobile and desktop resolutions.
  • Verified all links and icons work as expected.

Screenshots:

Screenshot 2025-09-21 at 1 33 12 AM Screenshot 2025-09-21 at 1 34 04 AM

Notes:

  • Only the following files are included in this PR: Footer.jsx, CreateInterview.jsx, ContactForm.jsx.
  • Other components were modified locally but are not part of this PR.
  • This PR focuses solely on making the Footer mobile-friendly.

Checklist

  •  My code follows the project's coding style
  •  I have tested my changes locally
  •  I have linked the related issue
  •  I have not included any sensitive data in this PR.

Contributor @namami-13

Summary by CodeRabbit

  • New Features

    • Global toast notifications and social (Google, GitHub) plus email login flows.
  • Refactor

    • Streamlined app layout and contact form flow; safer interview list with graceful empty-state handling; more robust dashboard data handling.
  • Style

    • Responsive footer and interview-creation grid; updated FAQ toggle behavior and improved accessibility.
  • Bug Fixes

    • Improved handling of empty/invalid interview/report data.
  • Chores

    • Added toast dependency, moved nodemon to devDependencies, load env vars, updated .gitignore.

namami-13 avatar Sep 12 '25 19:09 namami-13

Someone is attempting to deploy a commit to the coderuzumaki's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 12 '25 19:09 vercel[bot]

Walkthrough

Adds react-hot-toast and a global Toaster; refactors client auth flows to POST Firebase ID tokens to /api/auth/login; updates multiple UI components (ContactForm, FAQ, Footer, InterviewList, CreateInterview, Dashboard); server removes firebase-admin and multer, adds dotenv.config() and reorganizes DB init; moves nodemon to devDependencies and updates .gitignore.

Changes

Cohort / File(s) Summary
Client deps
client/package.json
Adds runtime dependency react-hot-toast@^2.6.0.
App shell & Toaster
client/src/App.jsx
Replaces previous skeleton with Outlet-based layout and adds a global Toaster (themed variants, gradient animation).
Auth pages
client/src/pages/Login.jsx, client/src/pages/SignUp.jsx
Replaces local toast UI with react-hot-toast; implements email, Google, GitHub flows that obtain Firebase ID tokens and POST to /api/auth/login; simplifies validation and navigation flows; uses setUser on success.
Contact form
client/src/components/ContactForm.jsx
Removes post-submit view; restructures form layout; posts via axios; shows success/error alert/toast; resets form; retains submit spinner.
UI presentation
client/src/components/Footer.jsx, client/src/components/FAQ.jsx, client/src/pages/CreateInterview.jsx
Footer: responsive layout/typography refactor. FAQ: single rotating chevron, added aria-controls/id on panels. CreateInterview: responsive grid (1 col → sm:3). Purely presentational changes.
List & pagination
client/src/components/InterviewList.jsx
Default prop interviews = [], normalizes input to array, simplifies pagination, adds empty-state and conditional pagination rendering.
Dashboard data handling
client/src/pages/Dashboard.jsx
Normalizes API responses into arrays, builds chart and summary data from normalized arrays; preserves control flow and error handling.
Server init
server/index.js
Removes firebase-admin init and multer usage; adds dotenv.config() and reorganizes DB connection placement; retains route mounting.
Server package config
server/package.json
Moves nodemon from dependencies → devDependencies; minor scripts reorder.
Repo ignores
.gitignore
Adds root .env and server/firebase.js to ignore list.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant C as Client (Login.jsx)
  participant FB as Firebase Auth
  participant API as Backend /api/auth/login

  U->>C: Submit credentials or click provider
  C->>FB: signInWithEmailAndPassword / signInWithPopup
  FB-->>C: Firebase user + ID token
  C->>API: POST /api/auth/login (Authorization: Bearer <token>)
  API-->>C: 200 OK
  C-->>U: Show success toast, setUser, navigate
  alt Failure
    FB-->>C: Error / API returns error
    C-->>U: Show error toast
  end

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • CoderUzumaki/PrepEdge-AI#78 — Overlaps in App/App shell and Footer layout changes (layout, Outlet, Footer).
  • CoderUzumaki/PrepEdge-AI#77 — Related to Firebase initialization and .gitignore entries for Firebase secrets.

Suggested labels

enhancement, Level 2

Suggested reviewers

  • RedK22

Poem

I nibble carrots, toast in paw,
Pop-ups shimmer, gradient law.
I hop through login, token bright,
Server nods, the routes feel light.
Hooray — the rabbit dances into night. 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Out of Scope Changes Check ⚠️ Warning The diff includes several edits unrelated to the footer layout: client/package.json adds react-hot-toast and client/src/App.jsx injects a global Toaster and animation; Login.jsx and SignUp.jsx were refactored to use toasts and altered social-login flows; InterviewList.jsx changed its public signature/defaults; Dashboard.jsx contains data-shaping changes; server/index.js removes firebase-admin and multer; server/package.json and .gitignore were also modified. These changes affect runtime dependencies, auth behavior, server initialization, and a public component API and therefore are out-of-scope for issue #85 and raise review and release risk. Please split unrelated edits into separate PRs: keep only Footer.jsx (and CreateInterview.jsx if intentionally part of the same mobile-tweaks scope) in this branch, and move react-hot-toast/App.jsx, Login/SignUp auth changes, InterviewList signature change, Dashboard refactor, and server-side edits into dedicated PRs; alternatively revert those changes from this branch and open focused PRs with their own descriptions, tests, and migration notes for any public API changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "Make Footer Mobile-Friendly" is concise and accurately describes the primary intent of the PR—improving the footer's mobile responsiveness (linked to issue #85), making it clear to reviewers what the main change is. It is specific, readable, and focused on the main UI change rather than listing files or noisy details.
Linked Issues Check ✅ Passed The Footer.jsx changes implement responsive grid/flex adjustments, increased padding and spacing, mobile-centered brand alignment, resized social icons, and stacked bottom-bar behavior on small viewports, which directly address the stacking, padding, and spacing requirements described in issue #85; the PR description and screenshots indicate these were tested on mobile and desktop. Based on the file diffs and the PR objectives, the footer modifications meet the linked issue's acceptance criteria.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • [ ] 📝 Generate Docstrings
🧪 Generate unit tests
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f9a8b2d38d9d8bb7147866ce78db3f4de3745d56 and d29249520923d5a4682e19f710b4bd4035ae34e2.

📒 Files selected for processing (1)
  • server/index.js (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • server/index.js

[!TIP]

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

- Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more. - Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Sep 12 '25 19:09 coderabbitai[bot]

@pushh-k and @CoderUzumaki kindly review this PR. Could you please add the GSSoC labels to this PR?

namami-13 avatar Sep 17 '25 15:09 namami-13

Hi, thanks for the contribution! 🙌

A few requests before we proceed:

Recording Please attach a screen recording (from your local environment) showing that your changes are working as expected.

PR Template It looks like the PR description doesn't follow the PR template. Kindly update your PR to match the required format. You've also not mentioned the Issue number fixed.

Thanks!

pushh-k avatar Sep 17 '25 17:09 pushh-k

I have mentioned issue number, updated my PR to following PR template and attached screenshots of the result. @pushh-k

namami-13 avatar Sep 20 '25 20:09 namami-13

i have resolved all issues. Please check now @CoderUzumaki

namami-13 avatar Sep 21 '25 18:09 namami-13

Please check now @CoderUzumaki its done now.

namami-13 avatar Sep 24 '25 06:09 namami-13

@CoderUzumaki @pushh-k please merge it if it has no issues. and let me know if it has issues

namami-13 avatar Oct 04 '25 16:10 namami-13