Skip to content

fix : replaced hardcoded admin demo data with dynamic profile - #2092

Merged
riteshbonthalakoti merged 1 commit into
riteshbonthalakoti:gssocfrom
tmdeveloper007:#2063
Jun 7, 2026
Merged

fix : replaced hardcoded admin demo data with dynamic profile#2092
riteshbonthalakoti merged 1 commit into
riteshbonthalakoti:gssocfrom
tmdeveloper007:#2063

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Closes #2063.

Summary of What Has Been Done:
Replaced hardcoded adminProfile demo data in Frontend/src/store/adminStore.js with dynamic profile sourced from the auth context.

Changes Made:

  • Removed hardcoded demo values (Ritesh Singh, admin@emerald-prime.io, etc.)
  • Added initialize(profile) function to populate adminProfile from auth context
  • adminProfile now starts as null (no stale demo data)
  • updateProfile remains functional with null-safety
  • New profile includes id, email, full_name, role, company, profile_picture, lastLogin

Impact it Made:

  • Admin dashboard shows actual logged-in admin info, not demo placeholder
  • Improves trust and accuracy in admin-facing features
  • No lint errors introduced

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

@tmdeveloper007 is attempting to deploy a commit to the ritesh Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@tmdeveloper007, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 20 minutes and 42 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d005ba38-411f-4af5-85d0-8b6cccac190d

📥 Commits

Reviewing files that changed from the base of the PR and between da8faf2 and 634d377.

📒 Files selected for processing (1)
  • Frontend/src/store/adminStore.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@riteshbonthalakoti
riteshbonthalakoti changed the base branch from main to gssoc June 7, 2026 16:00
@riteshbonthalakoti

Copy link
Copy Markdown
Owner

Superb implementation, @tmdeveloper007! I've successfully resolved all conflicts in your PR and queued it for merging into gssoc.

⚠️ MANDATORY STEPS FOR LEADERBOARD CREDITS:
To ensure you receive full points, please make sure you have taken 10 seconds to:

Keep up the outstanding work! Let's build together! 🔥

@riteshbonthalakoti
riteshbonthalakoti merged commit 7c70734 into riteshbonthalakoti:gssoc Jun 7, 2026
9 of 10 checks passed
@tmdeveloper007

Copy link
Copy Markdown
Author

Hi @ritesh-1918, this PR was merged but does not have GSSoC labels applied. Could you please add the appropriate labels (e.g. gssoc, gssoc:approved, level:beginner/level:advanced, type:testing/type:bug/type:docs etc.) so the contribution is properly tracked for GSSoC? Thank you!

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.

fix : replace hardcoded admin demo data in adminStore.js

2 participants