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

News Posts #39

Merged
merged 30 commits into from
Feb 6, 2024
Merged

News Posts #39

merged 30 commits into from
Feb 6, 2024

Conversation

GAsplund
Copy link
Member

@GAsplund GAsplund commented Jan 26, 2024

Key Features

  • CRUD for basic news posts
  • Markdown rendering
  • Permission checks for creating, updating and deleting posts
  • Add CSS file for defining lengths and dimensions for reuse
  • Remove default Next.JS page and set new default font
  • Include user CID in session
  • Add new service for fetching (currently) news-related information about a user's session

Known Issues

  • Design is not yet finished
  • Attempting to post as division groups that don't exist in the database will return an error and not create a post
  • Multiple line breaks get squished into one (maybe not an issue?)

Preview

image
image

GAsplund and others added 28 commits December 1, 2023 22:28
This prevents a 500 error if anything fails when fetching news, such as
an inaccessible database
Remove all of the unused CSS variables that existed in the sample NextJS
landing page
The declaration of custom types are actually recommended by the
next-auth documentation, even though it might seem hacky to seemingly
just override existing types.
Not applied to all parts of the site yet...
This version does not fully look like what exists in the current design,
but it is a definite improvement from what it used to look like.
Tested and working with both light and dark theme.
We should *definitely* cache this later on
Start creating an auth service to abstract specific permissions from
other services
Also add ability to post for certain groups
Copy link
Member

@Oscariremma Oscariremma left a comment

Choose a reason for hiding this comment

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

Looks mostly good.
One thing that i thought about is that we may want some kind of confirmation before deleting a news post?
But otherwise, once the docker build issue is fixed I am ready to approve this.

@Oscariremma Oscariremma merged commit facf01a into main Feb 6, 2024
5 checks passed
@Oscariremma Oscariremma deleted the feature/news-posts branch February 6, 2024 19:05
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