Skip to content

katstasaph/tsj

Repository files navigation

README

Requirements

  • Ruby: 2.7.5
  • Rails: 7.1.2
  • PostgreSQL

To initialize the database, run rails db migrate in the console.

Notes

  • This uses Devise for user authentication, and Pundit for role-based authorization.

Todo:

Features:

  • Post scheduling: queue posts to go up at next available time slot (likely w/ Active Job)
  • Add a visible schedule table to the announcement panel, like the old blurber, w/ ability to edit (drag/drop?)
  • Raw HTML and/or Markdown text editor
  • Notification to editors before closing if a writer has the blurb entry field open (probably needs a timeout in case someone leaves the tab open)
  • Notification to writers that a post has closed while they are editing/composing a blurb (requires server sent events, probably)
  • Blurb backup system
  • Make the frontend actually look nice, including on mobile. in particular, the wad o' links at the top - convert to tabs
  • Automatically generate HTML for Tumblr and Cohost (requires separate page/modal/dropdown to choose and order blurbs to highlight) and any other social media platforms we may want to utilize
  • Automatically post to social media at specified times
  • "Edit all the blurbs together before posting" (did anyone ever use this)
  • Recreate the writer stats page (editors and up)
  • Editor-only announcement field (to coordinate in blurber with future editors), either on index or associated w/ songs
  • Open/close comments/rating? (low priority)
  • Video and/or audio embeds in the blurber (not the highest priority, but will probably help writers)

Improvements:

  • Strip excess divs that rich text editor can produce, and in general extract the text stripping out
  • Look further into performance, in particular whether caching is necessary beyond what is currently there (at this scale, maybe not?)
  • Pagination? (do we really need this)
  • Add option for editors to close a song from the index page?
  • Add a toggle for drag/drop rearranging blurbs, currently it is a little annoying if you want to highlight some text to copy/paste
  • Actually get rid of the image attachment feature in the rich text editor instead of just display:none on the icon
  • Get this off render

Known bugs:

  • Uploading images via the WordPress REST API does not currently work, currently unclear to me how much is on the blurber's end and how much is the WordPress host
  • Periodic 200 and 400 responses from the WP API. May be an occasional thing, so far it has only happened on one day
  • Adding formatting (links, strikethrough, etc.) while editing reviews displays unwanted behavior
  • Background on song table rows does not cover full row on some mobile devices and does not appear at all on Safari

(See Issues tab for full list)

Other necessities:

  • Continue to refactor code; the controllers are in better shape now
  • Finish test suite

About

The Singles Jukebox blurber, version 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published