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)
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.
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.
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.
È 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.
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.