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

Added approved valentines interface in admin panel for read only access #282

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

Rahuldeb5
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for stuyepsilon ready!

Name Link
🔨 Latest commit 1b4f6b8
🔍 Latest deploy log https://app.netlify.com/sites/stuyepsilon/deploys/67abee216c46d50008169b75
😎 Deploy Preview https://deploy-preview-282--stuyepsilon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@TheEgghead27 TheEgghead27 left a comment

Choose a reason for hiding this comment

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

Instead of duplicating the bulk of ValentineDisplay to make ApprovedValentineDisplay, these changes should be made through a read-only mode (perhaps implied by refresh being undefined) on ValentineDisplay. I cannot in good conscience merge duplicated code like this.

Copy link
Member

Choose a reason for hiding this comment

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

What.

Copy link
Member

Choose a reason for hiding this comment

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

Is this duplicating the lion's share of ValentinesDisplay code?

Copy link
Member

Choose a reason for hiding this comment

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

I do not consider it acceptable to merge this duplicated code (with unnecessary functionality like fetching user identities to boot!).

@TheEgghead27
Copy link
Member

I will handle this matter this afternoon

@@ -114,6 +121,10 @@ const AdminRouter = () => {
<Route path="/announcements" Component={Announcements} />
<Route path="/rooms" Component={Rooms} />
<Route path="/valentines" Component={Valentines} />
<Route
path="/approved-valentines"
Copy link
Member

Choose a reason for hiding this comment

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

TODO for someone in the future: make this /valentines/approved or something like that (two tabs on the admin panel is a bit wasteful)

@@ -114,6 +121,10 @@ const AdminRouter = () => {
<Route path="/announcements" Component={Announcements} />
<Route path="/rooms" Component={Rooms} />
<Route path="/valentines" Component={Valentines} />
<Route
path="/approved-valentines"
Copy link
Member

Choose a reason for hiding this comment

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

TODO for someone in the future: make this /valentines/approved or something like that (two tabs on the admin panel is a bit wasteful)

@TheEgghead27 TheEgghead27 merged commit 1b4f6b8 into main Feb 12, 2025
5 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.

2 participants