Adding a "Days Ago" Indicator to the Post Curation Tool

in Synergy Builders9 hours ago

Hey everyone,

I was catching up on the requests for the Post Curation Tool (PCT) in the recent post by @friendlymoose. I decided to tackle one of them this morning to help move the project forward.


The Feature Request

For context, here is the current list of requested features for the PCT:

  • Filtering on post rewards
  • Filtering on age of the account
  • Indicators for the age of the post <-- This is the one I worked on.
  • Filtering on language
  • And/Or filtering of variables
  • Minimal number of words

The request, originally from @ladyaryastark, was to add a clearer indicator of how old a post is. When you're curating, knowing if a post is a current or a few days old is critical information and not obvious by the timestamp and not everyone is logged in to see the red/purple heart visual.


The Implementation

To address this, I wrote a simple helper function that calculates the time difference between now and when the post was created, and then formats it into a human-readable "X days ago" string. This small addition makes the age of each post immediately obvious at a glance.

Here is the result in action:

3 days ago

It's a small change, but it's a quality-of-life improvement that should make the curation process a little bit smoother. It's always fun to jump in and contribute to a community project, and I'm happy to help bring one of the requested features to life.

As always,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

Great addition! Reblogged it too!

Thanks a lot for the mention and for your work. I did try the tool maybe in a very early stage and I guess they were a very few temporal window of searching results... But that was a time ago, I should improve it again and see how it is working now!

Congratulations!

PS: Maybe you could add a feedback bottom to send suggestions to the team!

!PIZZA
!INDEED
!ZOMBIE

@friendlymoose esta a cargo organizar las sugerencias! Muchisimas gracias su participación :)

Tomaré esto como un "Por favor no molestar"

Como quiera, pues interpretación y comunicación son dos lados de la misma moneda.

Esta herramienta esta bajo un campeón, friendlymoose. Ha hecho el trabajo increíble, de hecho sin él dudo mucho que ud había escuchado de la herramienta, ni probado o sugerido mejoras.

Hay cero razón de quitar a friendlymoose ahora, el organizó la lista incluyendo sugerencias suyas - por su trabajo de unir la lista, hoy hicimos un avance. él es un parte esencial en el desarrollo de esta herramienta y realmente las unicas cosas que ganariamos quitandole del medio seria - menos ojos, menos apoyo, menos atención, menos motivación.

Tengo mucha confianza en lo que digo - por que tenemos 20 herramientas mas sin campeones.

!LOLZ

I'm on a seafood diet.
When I see food I eat it.

Credit: happyme
@ecoinstant, I sent you an $LOLZ on behalf of ladyaryastark

(1/8)
NEW: Join LOLZ's Daily Earn and Burn Contest and win $LOLZ

PIZZA!

$PIZZA slices delivered:
@ecoinstant(3/20) tipped @thecrazygm
ladyaryastark tipped thecrazygm

Come get MOONed!

Filtering on language is an interesting one - I guess we could do some tag analysis for that?

!PIMP
!PIZZA