Skip to content

fix: add missing AuthGuard to edit event page#143

Merged
rotarymars merged 3 commits into
mainfrom
fix/missing-authguard-edit-page
May 3, 2026
Merged

fix: add missing AuthGuard to edit event page#143
rotarymars merged 3 commits into
mainfrom
fix/missing-authguard-edit-page

Conversation

@rotarymars
Copy link
Copy Markdown
Member

@rotarymars rotarymars commented Mar 8, 2026

Description

Adding auth guard on missing page.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🎨 Style/UI change
  • ♻️ Refactor (no functional changes)
  • 🔧 Configuration change

Changes Made

  • Added auth guard

Testing

  • Tested locally with npm run dev
  • Build passes (npm run build)
  • Lint passes (npm run lint)

Screenshots (if applicable)

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Related Issues

Summary by CodeRabbit

Release Notes

  • Security
    • Event edit page now requires authentication to access.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kss-it-committee-github-io Ready Ready Preview, Comment Apr 1, 2026 2:54pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 8, 2026

Warning

Rate limit exceeded

@rotarymars has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 29 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 21 minutes and 29 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 70c7e2ea-1a6d-4c33-b89a-1b86666a5743

📥 Commits

Reviewing files that changed from the base of the PR and between 77f0a66 and 1409b7d.

📒 Files selected for processing (1)
  • src/app/events/[id]/edit/page.tsx
📝 Walkthrough

Walkthrough

The PR adds authentication enforcement to the event edit page by importing and wrapping the EditEventClient component with an AuthGuard component, and converts the page function to async to support this pattern.

Changes

Cohort / File(s) Summary
Event Edit Page Authentication
src/app/events/[id]/edit/page.tsx
Added AuthGuard import and wrapped EditEventClient with AuthGuard component; converted page function from sync to async to support authentication guarding of the edit page.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • SakaYq4875
  • katsumata68

Poem

🐰 A guardian stands at the edit page door,
"Only authenticated users may enter once more!"
With async/await and a protective wrap,
Events are secured from a security gap. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding AuthGuard to the edit event page. It is specific, concise, and directly reflects the primary modification in the changeset.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/missing-authguard-edit-page

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.

hatuna-827
hatuna-827 previously approved these changes Mar 8, 2026
Copy link
Copy Markdown
Member

@SakaYq4875 SakaYq4875 left a comment

Choose a reason for hiding this comment

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

ありがとうございます。

SakaYq4875
SakaYq4875 previously approved these changes Mar 31, 2026
@rotarymars rotarymars merged commit b910e09 into main May 3, 2026
19 checks passed
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.

6 participants