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

Blog feature #275

Closed
leesheppard opened this issue Jan 22, 2025 · 6 comments · Fixed by #290
Closed

Blog feature #275

leesheppard opened this issue Jan 22, 2025 · 6 comments · Fixed by #290

Comments

@leesheppard
Copy link
Member

News and Announcements - blog feature

Currently RubyAU has no capacity to make announcements or share news on the website in a timely manner. We require a Blog feature with Categories (News | Announcements) and an Administration functionality to suit with scheduled post capability, draft saving, and archiving. There is no design at present but at best keeping within a simple layout that can be adjusted in future when Tailwind is upgraded to v3.

Solution

As an admin user we need:

  • to login to an admin page for adding content
  • be able to save a post as a draft
  • be able to schedule a post for future release dates
  • be able to archive a post that no longer displays
  • choose from a category to display posts in
  • image upload
  • style editing (possibly Trix)

As a visitor to the site:

  • view a page of posts with title and brief summary
  • a pagination or more button at bottom of content
  • to view category links - News, Announcements
  • to click on a link and view a new page with the full content
  • have a friendly URL with clear description and easy to share e.g. https://rubyonrails.org/2025/1/17/this-week-in-rails

Example site for reference: https://rubyonrails.org/blog/

Nice to haves:

  • social media share links
  • ability to share from admin to social media accounts
@gamesover
Copy link
Contributor

gamesover commented Jan 27, 2025

As an admin user we need:

  • to login to an admin page for adding content
    only admin user can add/edit/archieve post, anonymous and user can only view post
  • be able to save a post as a draft
    post have status with options: draft, scheduled, published, archieved
  • be able to schedule a post for future release dates
    sidekiq is need to schedule a background job(active job/solid queue)
  • be able to archive a post that no longer displays
    status: archieved and field archieved_at will record the time
  • choose from a category to display posts in
    can you elaborate it? Do we want to choose categories to display or choose some posts in a category to display?
  • image upload
    need to install active storage. do we have S3 or something similar to store blobs?
  • style editing (possibly Trix)
    implement action text

As a visitor to the site:

  • view a page of posts with title and brief summary
    only diplay published posts
  • a pagination or more button at bottom of content
    use existing kaminari gem or pagy
  • to view category links - News, Announcements
    show posts in specific category
  • to click on a link and view a new page with the full content
    each post has a friendly slug id link
  • have a friendly URL with clear description and easy to share e.g. https://rubyonrails.org/2025/1/17/this-week-in-rails
    each post has a friendly slug id link

Example site for reference: https://rubyonrails.org/blog/

Nice to haves:

  • social media share links
  • ability to share from admin to social media accounts

@gamesover
Copy link
Contributor

implementation plan:

  1. admin user can add a post with action text, but no upload image
  2. implement sidekiq so admin user can schedule to publish a post
  3. implent active storage so admin user can upload local images
  4. display published posts for visitor
  5. social media share links
  6. ability to share from admin to social media accounts

@leesheppard
Copy link
Member Author

@gamesover Re: ActiveStorage - no we don't have an S3 account, for now we can use local store for now as it isn't anticipated that we will have many images uploaded.

@gamesover
Copy link
Contributor

gamesover commented Jan 30, 2025

@leesheppard All good. There’s no issue configuring Active Storage to store files locally.

choose from a category to display posts in

Could you please elaborate on this function? I’m not entirely clear on what we’re aiming to achieve here.

@leesheppard
Copy link
Member Author

As an admin when creating a post, provide the ability to assign a post to a category for filtering in the UI

@gamesover
Copy link
Contributor

As an admin when creating a post, provide the ability to assign a post to a category for filtering in the UI

Ah, I see. It’s crystal clear now.
I’ll start working on ticket 1: admin user can add a post with action text, but no upload image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants