Horizon: High Context Topic Cards

What’s new in Horizon?

We’re happy to announce the next iteration for the Horizon theme: high-context topic cards.

These cards surface key signals at a glance, pulling in data from familiar favourites:

We have also rearranged the layout, refined spacing and typography, and expanded the last-reply preview; aiming for a balanced experience.

Desktop

Mobile

One thing you might notice on mobile: the category and tag section can overflow and become horizontally scrollable.
#itsafeaturenotabug

How do I enable this?

The forum admin can find a new setting on the theme page. By default this is unchecked to keep using the simple version, but those who want to give it a whirl can switch.

Despite our in-house testing and our assumption that all should behave well, we are labelling it as experimental for the time being. It should work as expected, but we might iterate further on the design and work out some kinks.

What’s next?

We are planning to make the choice between the two modes available per user, rather than as a single global forum setting. That’s on the roadmap, just not quite ready yet.

We’re also looking into making the excerpts appear automatically.

For now, we invite you to try it out for a while, on your own forum or here on Meta.

23 likes

Can I as an admin enforce the option as well? Because tags are part of the forum experience and without it some users would miss out on extra context about topics. I really like the Horizon theme now with enriched topic details :tada:

The part about “Excerpts”, which can be enabled with: Enable with bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’ that doesn’t seem to work for me.

/var/www/discourse# bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’                                                      
fatal: detected dubious ownership in repository at '/var/www/discourse'                                                                                                   
To add an exception for this directory, call:                                                                                                                             
                                                                                                                                                                          
        git config --global --add safe.directory /var/www/discourse                                                                                                       
/var/www/discourse/config/initializers/000-pg_connection_patch.rb:21:in `rescue in new_client': We could not find your database: discourse. Available database configurations can be found in config/database.yml. (ActiveRecord::NoDatabaseError)
                                                                                                                                                                          
To resolve this error:                                                                                                                                                    
                                                                                                                                                                          
- Did you not create the database, or did you delete it? To create the database, run:                                                                                                                                                                                                                                                               
                                                                                                                                                                          
    bin/rails db:create                                                                                                                                                   
                                                                                                                                                                          
- Has the database name changed? Verify that config/database.yml contains the correct database name.                                             

I don’t want to mess too much with this. I guess I’ll just leave it as is. But still leaving the error here in case my setup is broken or something in Discourse can be fixed.

2 likes

Yes, that is the case right now. If you choose the high context options in the theme settings, all users will see this on Horizon. Or do you mean for later? Hmm, having an admin override a user setting wasn’t on the planning and it’s a bit unusual. I suppose we would leave it up to the user if they decide tags are important to them or not. But I think an admin will be able to set the default option probably.

@zogstrip Can you help with the command issue please?

That is weird. How are you entering the container?

Tags are really an important part of the way my forum works. If users disable it they might not understand the downgrade and don’t understand why others see a different layout. I would prefer that themes are set by admins. Or at least give admins the freedom to grant users this freedom, just like with theme selection. A consistent UI is I think important.

1 like

I enter the container with $ ./launcher enter app

root@tzmc1-app:/var/www/discourse# ls -alid /var/www/discourse
1593655 drwxr-xr-x 1 discourse discourse 4096 Jan 15 10:48 /var/www/discourse

That’s your issue. You should “switch” to the discourse user before running the command.

./launcher enter app
su discourse
bin/rails r 'SiteSetting.always_include_topic_excerpts = true'
2 likes

Yes this is how all our user preferences that are set by admins work. Admins can set a default and individual users can override.

If individual sites really really want to stop users setting individual preferences for whatever reason, adding custom CSS to hide the field for them should be enough.

4 likes

How can excerpts be enabled on a Discourse hosted forum?

always_include_topic_excerpts is a hidden site setting. It’s not in the list of available hidden site settings here
So I’d contact support as the doc says:

2 likes

The idea was indeed to contact Support so they can enable it for you, but we’ve simplified that process and un-hid the setting.

You can find it (after updating) in all site settings:

1 like

Even newer update:

After some internal back-and-forth, we added the whole thing as a theme-setting instead:

The choice between simple and high-context cards is now a checkbox and will automatically enable the excerpts too.

1 like

I’m not sure that I want the excerpts as they add significant noise. I’d prefer it to still be just excerpts for pinned posts.

Is it now possible to have the other goodies without the forced on excerpts?

1 like

Unfortunately, at this moment, it’s all or nothing.

We are still iterating and taking feedback though; so we’ll see what requests/suggestions pop up a lot.

That being said, as always, good ole CSS is a quick ns easy way to customise it for your own forum experience.

1 like