Timer live per argomento

This theme component changes the default timed topic timer to a live countdown timer.

29%20PM


Repository Link

https://github.com/paviliondev/live-topic-timer


  • The rerender time can be changed in the component settings according to your use case.

  • The time displayed by the timer can be format in multiple ways from the theme component setting whose documentation can be found here.

To do

  • Display the timer on the header next to the topic title.
    I’m looking for specific UI/UX suggestions for how to implement a header timer, in the context of Discourse, with a view to crowd-funding the development costs if there’s enough interest (@darhazer @tobiaseigen)

Installation

27 Mi Piace

This doesn’t work since a few days. Can you look at it?

1 Mi Piace

Yes, I’m aware of the fact that some of the code I overrode is changed in core discourse. I’ll take a look at this around mid next week.

cc @angus, @Ellibereth, @darhazer

4 Mi Piace

Just pushed an update to the component to fix compatibility with latest discourse.

7 Mi Piace

can this be set on specific categories? i could see this being very useful in combination with the voting plugin.

1 Mi Piace

Currently, it works for all timed topics. @ninjapenguin if you’re are willing to fund the development of this feature, I’ll be happy to add the category specific feature for the component.

In any case, you can join the discussion related to the component here.

1 Mi Piace

i don’t think we need it enough. more a ‘nice to have’ in our use case than a core feature we’d use often. it looks great though, well done.

1 Mi Piace

This theme component is breaking the topic timers interface, unfortunately. Number of days seems to turn into number of seconds, and the blue bar containing the “Replies on this topic are automatically deleted after …” has no next. It then becomes impossible to remove timer. Deleting this theme component made it work again.

Screen Shot 2020-05-07 at 11.12.32 AM

2 Mi Piace

It needs to be dusted again. I’ll come to this one in the next week. Thanks for reporting. Makes a strong case for bookmark reminders for me.

2 Mi Piace

Bug con questo tema.

1 Mi Piace

Da tempo volevo venire a questo. Darò un’occhiata venerdì.

1 Mi Piace

Posso riprodurlo. Scusa per non essermi occupato prima di questo.

Il componente del tema non è mai stato testato con timer diversi dal close topic timer, poiché è stato costruito specificamente per quello, ma il nome suggerisce che dovrebbe funzionare con tutti i tipi di timer degli argomenti.

Inoltre, non avrebbe dovuto influenzare altre funzionalità predefinite, almeno. Sto lavorando per risolvere il problema e tornerò con una soluzione presto.

Questa è stata la mia prima attività di sviluppo per un cliente su Discourse. Mi riporta alla mente vecchi ricordi.

p.s.

Ho creato una PR per il Topic Timer core per renderlo estendibile per sviluppatori di plugin e temi. Sovrascrivere il metodo monolitico può essere piuttosto soggetto a errori.

cc @martin

4 Mi Piace

Grazie per la correzione, l’ho unita al core ora :+1:

2 Mi Piace

Leggermente fuori tema, ma vale la pena notare per il futuro:

Il prefisso DEV: indica che si tratta di un refactoring legato allo sviluppo; non è necessario includere nulla nelle note di rilascio.

FIX: indica una correzione di bug che potremmo voler evidenziare nelle note di rilascio.

FEATURE: indica una nuova funzionalità (o la rimozione di una funzionalità) che potremmo voler evidenziare nelle note di rilascio.

IMPR: è un po’ strano, non utilizziamo questo prefisso da nessuna parte.

4 Mi Piace

È un mio cattivo ricordo. Ho ricordato male un post di Jeff che spiegava questi termini, ma posso immaginare che IMPR non fosse uno di quelli. Me lo terrò a mente.

2 Mi Piace

La buona notizia è che, dopo il merge, il codice è ora più estensibile e manutenibile dal punto di vista degli sviluppatori. Proverò a correggere il componente nella prossima settimana.

Grazie @sam per il suggerimento e @martin per il merge.

2 Mi Piace

Questo dovrebbe essere risolto aggiornando sia il componente del tema che Discourse all’ultima versione con test passati.

Inoltre, ora dovrebbe supportare anche tutti gli altri timer. Sono disponibile a risolvere eventuali problemi che dovessero sorgere.