ライブトピックタイマー

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

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

「いいね!」 1

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

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

「いいね!」 7

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

「いいね!」 1

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

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

残念ながら、このテーマコンポーネントがトピックタイマーのインターフェースを壊してしまっています。日数が秒数に変換されてしまい、「このトピックの返信は自動的に削除されます…」という青いバーに「次」が表示されません。そのため、タイマーを削除することが不可能になります。このテーマコンポーネントを削除すると、再び正常に動作するようになりました。

「いいね!」 2

再度ほこりを落とす必要があります。来週中にこの件に対応します。ご報告ありがとうございます。ブックマークのリマインダーの必要性を強く感じさせられました。

「いいね!」 2

このテーマのバグです。

「いいね!」 1

かねてより訪れたいと思っていたのです。金曜日に拝見させていただきます。

「いいね!」 1

この問題を再現確認できました。お待たせして申し訳ありません。

このテーマコンポーネントは、close topic timer 以外のタイマーではテストされていませんでした。このコンポーネントは特定のタイマー向けに構築されたものの、名前からするとあらゆる種類のトピックタイマーに対応するはずでした。

また、少なくとも他のデフォルト機能には影響を与えるべきではありませんでした。現在修正に取り組んでおり、近々解決策をご報告します。

これは Discourse 上での私の最初のクライアントワークでした。懐かしい思い出が蘇ります。

追伸:
プラグインやテーマ開発者向けに拡張可能にするため、コアの Topic Timer への PR を作成しました。モノリスなメソッドをオーバーライドするのは、破綻を起こしやすい傾向があります。

cc @martin

「いいね!」 4

修正いただきありがとうございます。コアにマージしました :+1:

「いいね!」 2

少し本題から外れますが、今後のために参考までに:

DEV: プレフィックスは開発関連のリファクタリングを意味し、リリースノートに記載する必要はありません。

FIX: はバグ修正を意味し、リリースノートで言及する可能性があります。

FEATURE: は新機能(または機能の削除)を意味し、リリースノートで言及する可能性があります。

IMPR: は少し奇妙ですが、このプレフィックスは現在どこでも使用されていません。

「いいね!」 4

私の記憶違いでした。Jeff さんがこれらの用語について説明した投稿を間違えて覚えていましたが、IMR がその一つではないことは想像できます。この点は覚えておきます。

「いいね!」 2

好消息は、マージ後、開発者視点から見てコードの拡張性と保守性が向上したことです。来週中にコンポーネントの修正を試みます。

ヒントをくれた @sam とマージしてくれた @martin に感謝します。

「いいね!」 2

テーマコンポーネントと Discourse の両方を最新のテスト通過版に更新すれば、この問題は解決するはずです。

さらに、他のすべてのタイマーもサポートするようになりました。もし問題が発生した場合は、喜んで対応いたします。