Kanban board theme component -> Boards plugin migration guide

AI-generated summary

This announcement details the deprecation of the Kanban board theme component in favor of the Boards plugin, which is now part of core Discourse. The post outlines key differences and migration steps.

General Concepts

  • Constraints: The old component allowed displaying board links in selected categories or everywhere. The new Boards plugin offers greater flexibility by allowing individual boards with specific category and/or tag constraints, or no constraints at all.
  • Columns: Previously, columns were auto-generated based on board mode (e.g., tags or categories) and configuration order. In the Boards plugin, columns are fully customizable. Users can define names, icons, colors, tag associations, sorting orders, and arrangement.
  • Cards: In the theme component, cards were topics that navigated away when clicked. The Boards plugin supports both topic cards and “floating cards.” Topic cards open in a modal with a preview, enhancing user retention on the board view.

Settings Mapping

Most settings have a direct equivalent in the Boards plugin:

  • Card Style maps to a board-level setting (Detailed or Simple).
  • Show Tags and Show Topic Thumbnail are found under Advanced Settings.
  • Require Confirmation maps to “Require confirmation on moves” in Advanced Settings.
  • Show Activity Indicators and Default View have been removed for simplicity.

Migration Example

The post provides a scenario for migrating a project management board. The old setup used a #todo category with tags like #in-progress, #up-next, and #completed to generate columns. In the Boards plugin, administrators create a board constrained to the #todo category. They then manually create columns tied to the respective tags. Access controls (ACLs) can be set to allow trust level 3 users to manage cards. Once configured, the board automatically populates based on the tags, and moving cards between columns updates the underlying tags.

Feedback and questions regarding this migration should be posted in this topic.

Now that Discourse Boards is in core, we are deprecating the Kanban Board theme component, since its functionality and more is supported by the Boards plugin. This topic will go over the similarities between the two and how you can migrate from using the theme component to using the Boards plugin.

General concepts

Constraints

The Kanban theme component allowed selecting a list of categories where a Board link would display. If this was left blank, it would be shown everywhere, every category would get a board.

However in the Boards plugin, you can create individual boards and specify a category and/or tags for it as a constraint, or have no constraint at all, which is a lot more flexible:

Columns

Columns in the Kanban theme component were dependent on the board type and configuration. For example, if you were visiting the board page for a category and had the board mode of “tags” selected, each tag would be its own column.

Similarly, if your board mode was “categories”, then each category would have its own column. Ordering of columns was based on the order of your configuration.

Columns in the Boards plugin are much more flexible. You can add as many columns as you want, select an icon and background colour, name the column, tie it to a tag, and select sorting order. Rearrange columns however you wish.

Cards

In the theme component, cards are always topics, and every time you click on one you are navigated away to the topic.

In the Boards plugin, a card can be a topic or a floating card. Topic cards open in a modal window when clicked, showing a preview of the topic OP:

A floating card isn’t attached to a topic, and can be used as a lightweight idea to capture ideas or items that aren’t ready for full-fledged topics yet. They are visible on the board only and can be tagged or assigned like topics:

These can be converted to a topic card at any time:

Permissions

The only restriction on board visibility and permissions in the theme component were:

  • Whether the user could see the category and topics for the board
  • Whether the user was allowed to move a topic between tags or categories

In contrast, the Boards plugin allows specifying individual users or groups who can view, edit, or manage the board using a new ACL system which will soon be applied to other areas in Discourse:

Settings map

Most of the theme component settings have a 1:1 mapping in the Boards plugin, though some were removed for simplicity:

  • Card style → Board level setting, can be set to Detailed or Simple
  • Show tags → Board level setting under Advanced settings
  • Show topic thumbnail → Board level setting under Advanced settings
  • Require confirmation → Board level setting called “Require confirmation on moves” under Advanced settings
  • Show activity indicators → Removed in Boards plugin
  • Default view → Removed in Boards plugin

Example migration

Let’s say I had a project management board using the theme component. The category for this is #todo and there are tags for #in-progress, #up-next, and #completed. It would look like this in the old component:

If we wanted the same, but better, in the Boards plugin we can do something like this, keeping it constrained to the #todo category with the tags above as columns. If we want to allow trust level 3 users to move cards add and remove topics to the board we could also configure the board ACL like so:

Then once the board is created, we can create the columns we need, constraining them to the tags we want to see, and the board will be automatically populated:

And we end up with this:

Moving the cards between the columns changes the underlying tags.

Feedback or questions

Please let us know in this topic if you need any more details about switching over from the theme component to the Boards plugin.

1 Like