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.
I can repro this. Sorry for not coming to this earlier.
The theme component was never tested with timers other than the close topic timer, as it was built for that timer, but the name suggests that it should work for all sorts of topic timers.
Also, it shouldn’t have affected any other default functionality atleast. I’m working on fixing this and will get back with a solution soon.
This was my first piece of client work on discourse. Brings back old memories.
p.s.
I’ve made a PR to the core Topic Timer to make it extensible for plugin/theme devs. Overriding the monolith method can be quite prone to breakage.
Its bad memory from my side. I wrongly remember a post by Jeff which explain these terms but I can imagine IMPR not being one of them. I’ll keep that in mind.
The good news is, the code is now more extensible and maintainable from a dev standpoint after the merge. I’ll try and fix the component in the coming week.
Thanks @sam for the tip and @martin for the merge.