Skip to content

Admin Tab for MAPLE News Items #2055#2061

Open
ACoullard wants to merge 5 commits intocodeforboston:mainfrom
ACoullard:in-the-news-admin-page
Open

Admin Tab for MAPLE News Items #2055#2061
ACoullard wants to merge 5 commits intocodeforboston:mainfrom
ACoullard:in-the-news-admin-page

Conversation

@ACoullard
Copy link
Collaborator

Summary

Adds in an admin page for creating, editing, and deleting entries to be shown on the upcoming "In the News" page. Resolves issue #2055

Checklist

  • On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • I've made pages responsive and look good on mobile.
  • If I've added new Firestore queries, I've added any new required indexes to firestore.indexes.json (Please do not only create indexes through the Firebase Web UI, even though the error messages may reccommend it - indexes created this way may be obliterated by subsequent deploys)

Screenshots

Create Page

image

List Page

image

@vercel
Copy link

vercel bot commented Mar 12, 2026

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

Project Deployment Actions Updated (UTC)
maple-dev Ready Ready Preview, Comment Mar 16, 2026 1:22am

Request Review

const { data, meta } = params
const ref = doc(firestore, resource, data.id)
await setDoc(ref, data)
return { data: data }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since new "news items" have no inherent "id" that can be used for this, I have altered the method here to allow firestore to auto generate one if none is provided

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.

1 participant