プラグイン設定の使いやすさ向上

Hi guys,
you might struggle with the same issue as I do:

We’ve installed various plugins with a lot of settings at admin panel. Discourse settings are pretty well grouped by their kind. Plugins not. We can’t say which option belongs to which plugin. I’d like to suggest a little improvement…

Is it possible to expand / collapse plugin specific options like the details view? (collapsed by default)

Some other ideas:

  • altering background color (white / gray / white / …)
  • a thin line between each plugin settings group

In addition to this, I’d like to have some basic information about the plugin on top of each group (1-2 sentences description), latest version and the installed one (date and build version), a link to the offical support site and a link to the plugin author’s site, and if available a shortcut to the docker manager to install updates.

Any thoughts on this?

「いいね!」 5

When you go to /admin/plugins and click on the settings button of a specific plugin, it will filter only the settings for the one you selected.

「いいね!」 6

This is not working e.g. with unofficial plugins like events and locations.

When you click on the settings link for a plugin, it works by filtering the settings based on the plugin name. For example, if you click on the settings for discourse-solved, it will bring you to this URL:

http://forum.example.com/admin/site_settings/category/plugins?filter=solved

This means that any of a plugins settings that cannot be found through that filter will not be displayed. With the discourse-solved plugin, the setting for accept_all_solutions_trust_level is not displayed when you click on the Settings button.

「いいね!」 3

We could probably use a better and more structured solution here @sam.

「いいね!」 3

For starters though we should be more consistent about naming in our plugin site settings. I agree a better structure makes sense here, we can associate the plugin settings with the particular plugin and then always be able to find them regardless of naming.

I really like the idea of allowing you to expand plugin settings directly near the plugin, somewhat similar to how theme settings work.

「いいね!」 4

fAs I understand it, I know of two approaches. One is for a plugin to have its own settings menu under Settings. For a plugins settings to be shown from the Plugins page the settings need to follow the convention of setting names being prefixed with the plugins name.

For example, the setting name for the data explorer plugin begins with “data_explorer_” if it was not so it would not be found from the Plugins page.

I’m guessing the settings are being searched for setting names that begin with the same string as the plugin name. I’m also guessing it would be easiest to make this behavior known to plugin authors and put the onus on them to follow the convention.

この設定/フィルターボタンは、各プラグインに対して用意されているものですか?私の環境にはここに挙げられているものしかありません(デフォルトでいくつかプリインストールされたプラグインがあり、それらの設定はこのプラグインの設定と共に /admin/site_settings/category/plugins に一覧表示されていますが、明確な区別や分離がなく、とても奇妙に感じました。

画像の /admin/plugins セクションで可能な唯一の操作は、プラグインのリンクをクリックすることであり、それはそのプラグインの GitHub リポジトリに移動します。コミュニティ管理者によってさらに多くのプラグインが追加された場合、このように無秩序で整理されていない状態がどうなるか心配です。

私のケースでは設定リンクボタンはありませんが、@simon が提供した URL の例に基づいて、openid を使って結果をフィルタリングできます。ただし、これはプラグインの完全な名前ではないため、もし他のプラグインに「openid」が含まれていた場合、この方法は機能しないかもしれません(openid-connect とすると結果が 9 から 1 に変わり、openid でもログイン設定に関連しない 2 つの結果が表示されました)。

編集: openid_connect が正しい値のようです。これはおそらく これらの設定キー に基づいてフィルタリングされているのだと思います。