Commit Graph

106 Commits

Author SHA1 Message Date
Jordan Vidrine c735718f1b DEV: Add more user logic (#113) 2025-04-04 11:47:00 -05:00
Jordan Vidrine cdcbffc483 UX: More color fixes (#111) 2025-04-03 16:13:23 -05:00
Jordan Vidrine d8c44934f4 UX: Theme name change (#112) 2025-04-03 16:13:02 -05:00
Martin Brennan 00b2402cbb DEV: Core feature spec refinement (#106)
Followup e4b99976eb

This allows us to skip core feature specs more granularly,
since the topic ones work fine except create for example.

Also adds a topic create spec, since this theme uses the sidebar
new topic button component. We can rely on the /new-topic route
instead.
2025-04-03 13:40:27 +10:00
Kris c9c468c677 UX: fix PM user input spacing (#110)
Before:


![image](https://github.com/user-attachments/assets/3327adce-b26e-4644-82fe-d4f9611ad8e0)

After:


![image](https://github.com/user-attachments/assets/33f6a819-fa34-40f1-98de-469ab0f161f0)
2025-04-02 15:07:51 -04:00
Kris 85d94e9eca UX: fix cakeday & user directory containers (#109)
Before:


![image](https://github.com/user-attachments/assets/dbc14156-2def-42c1-bbc4-b2366a9b89fa)


![image](https://github.com/user-attachments/assets/92554725-ce2d-4756-9f9e-e49b91f0c227)


After:


![image](https://github.com/user-attachments/assets/a2c90617-6efa-4bdb-8149-cd7d5cea6e95)


![image](https://github.com/user-attachments/assets/2188f0be-58ef-4996-8628-57705cc6d52c)
2025-04-02 15:07:35 -04:00
Jordan Vidrine d0078cdd3e UX: Adjust icon colors (#108) 2025-04-02 10:50:37 -05:00
Jordan Vidrine 759fd0b218 UX: Header outline (#107) 2025-04-02 08:28:08 -05:00
Jordan Vidrine 1c85ae4626 UX: More accessible colors (#105) 2025-04-01 20:01:29 -05:00
Jordan Vidrine f4c6876923 UX: Topic excerpt fix (#104) 2025-04-01 15:09:04 -05:00
Martin Brennan e4b99976eb DEV: Add core feature spec (#100) 2025-04-01 12:49:37 -05:00
chapoi def09bcca5 UX: adapt topic card layout for bookmarks & assigned list (#97) 2025-04-01 12:48:52 -05:00
Jordan Vidrine 05d4b79fc9 UX: Add hover colors (#103) 2025-04-01 12:25:52 -05:00
Kris 5570fb9feb UX: fix group page container, round border (#102)
Fixes the spacing on the group container and rounds the header 

Before:


![image](https://github.com/user-attachments/assets/3384841a-82b0-4f17-a0be-a32bd405bd29)


After:


![image](https://github.com/user-attachments/assets/1450cb2d-bd7a-4fb4-b7a8-b800b8b40d0d)
2025-04-01 12:50:19 -04:00
Jordan Vidrine 5bbba7cacc UX: Define header colors (#101) 2025-04-01 09:52:12 -05:00
Martin Brennan 96da1d3439 FIX: Issues with FOUC and dark mode when switching palettes (#99)
Followup 6a4b979514

In this commit I changed how we load the selected palette
stylesheet so the system specs would know when the CSS is actually
loaded, however this introduced an issue where the user would see
a FOUC when switching palettes. I also introduced a bug where
if you chose to force dark mode then switched the palette, you would
see light mode instead.

This commit fixes both issues, by swapping the CSS link with a preloaded
one then waiting for the preload before switching the href of the
existing link, and removes `mode` shenanigans causing the light mode
issue.
2025-04-01 13:07:26 +10:00
Kris 878da19552 UX: fix category nav padding on small screens (#98)
This adjusts the active state of the dropdown by employing negative
margin to compensate for the padding

before:

![image](https://github.com/user-attachments/assets/e8c8a544-3527-4d6c-a513-0291a6a15ab5)


after:

![image](https://github.com/user-attachments/assets/4a53a0ee-a07d-43b0-9ab6-3542d86bbe8c)
2025-03-31 17:02:30 -04:00
chapoi 17bd1c2346 UX: fix chat border (#96) 2025-03-31 10:50:44 +02:00
Martin Brennan 6a4b979514 FIX: Color palette switching when Horizon is not default (#95)
When Horizon is not the default theme, and the color palette
switcher is used, we were ending up in a broken CSS state because
the color definitions were not loaded correctly when calling
`/color-scheme-stylesheet/` to get the new stylesheet URLs.

The problem was that we were not giving the theme ID to this URL,
we were only doing `/color-scheme-stylesheet/:palette_id`, not
`/color-scheme-stylesheet/:palette_id/:theme_id`, so the theme
color definitions like the ones that define the background color
were not loaded.

This commit fixes the issue and also changes to recreating the
`<link>` tags for the CSS in the head so we can check if they
are loaded correctly for easier testing in system specs.
2025-03-31 18:23:07 +10:00
Jordan Vidrine b4e451e64b DEV: Experimenting with using built in core color palettes for the color picking component (#71)
This PR is the beginning of converting the color picker to use built in
core color palettes.
The `color_schemes` defined in `about.json` are created in core when the
theme is imported,
and we then show all user-selectable color palettes in this sidebar
footer menu.

An important caveat here is that all of the Horizon themes must be
changed to `user_selectable`
otherwise they will not show up in the color palette selector in the
sidebar.

When choosing a color palette that also has a corresponding dark color
palette,
*both* light mode and dark mode are correctly saved with the color
palette(s) chosen,
using the color palette cookie we already have in core.

Anon users can also set a palette, which will be saved in a cookie.

---------

Co-authored-by: Sérgio Saquetim <saquetim@discourse.org>
Co-authored-by: Martin Brennan <martin@discourse.org>
Co-authored-by: Osama Sayegh <asooomaasoooma90@gmail.com>
2025-03-31 13:28:28 +10:00
chapoi 0473f90cd9 Lower z-index of powered-by-discourse badge (#93) 2025-03-30 20:33:59 -05:00
Jordan Vidrine 3e3f410839 UX: More card fixes (#94) 2025-03-28 16:43:52 -05:00
Jordan Vidrine 2046f525d4 UX: More logic for title columns (#87) 2025-03-28 10:49:28 -05:00
chapoi 9945f1d899 FIX: remove overflow prop (#91) 2025-03-28 08:27:36 -05:00
chapoi f70524a44b UX: fix minimised draft bg colour for composer (#89)
Followup fix for #84
2025-03-28 14:17:45 +01:00
Martin Brennan 0a416d317e FIX: Messed up CSS grid on messages list (#88)
This needs a better follow-up, but the messages topic list
is currently busted. Removing the overridden topic-list-item
grid for messages helps.
2025-03-28 12:39:49 +10:00
chapoi 910bc855c1 Composer styling on desktop (#84) 2025-03-27 16:41:20 -05:00
chapoi e20b83b79d Misc mobile fixes (#83) 2025-03-27 16:35:08 -05:00
Jordan Vidrine e7de006a23 UX: Topic list layout changes (#85) 2025-03-27 16:31:46 -05:00
Jordan Vidrine eff8628223 DEV: Fix spec (#86) 2025-03-27 16:31:28 -05:00
Jordan Vidrine a84682c0d0 FIX: Bulk select fix (#81)
This PR fixes bulk select on the new topic cards.
2025-03-27 10:03:40 +10:00
Jordan Vidrine adb1e4dcf2 UX: Change title fonts, etc (#80) 2025-03-26 14:08:42 -05:00
Jordan Vidrine d300cf9d0f UX: New topic card layout (#79) 2025-03-26 10:47:52 -05:00
Kris 6766b94232 UX: add tags-index container (#78) 2025-03-25 16:18:17 -04:00
Jordan Vidrine af82802548 UX: Topic list card fixes for assignments & bookmarks (#76) 2025-03-25 15:11:49 -05:00
Kris 943dd4e2d2 UX: change category nav background on mobile (#77) 2025-03-25 15:54:03 -04:00
Jordan Vidrine 1a372b7edc fix z index for input menu (#75) 2025-03-25 10:08:16 -05:00
Kris f786eae910 UX: set border radius on PMs (#74) 2025-03-24 15:22:25 -04:00
Jordan Vidrine dabd9a159a DEV: Use new is_hot_topic serializer (#73) 2025-03-24 12:05:10 -05:00
Jordan Vidrine 969e2b7969 begin migration of colors (#72) 2025-03-21 09:44:09 -05:00
chapoi ade14d7f54 Welcome banner: slight zindex increase (#70) 2025-03-21 11:55:29 +01:00
chapoi 30cb6bbf59 UX: Z-index welcome banner (#68)
* UX: increase z-index of welcome banner

* UX: lower z-index of sticky list-controls
2025-03-20 19:13:52 +01:00
Jordan Vidrine bee6e4e3c5 init (#69) 2025-03-20 09:43:40 -05:00
Kris 7f6b0df5bf UX: move and restyle bulk select on desktop (#65) 2025-03-20 08:42:11 -04:00
Martin Brennan 274e5f7a1f UX: Add theme settings and value transformers (#67)
This commit adds the above for these core site
settings:

* search_experience
* enable_welcome_banner

Since for horizon we want better control of
the default experience of these settings OOTB.

See also https://github.com/discourse/discourse/pull/31917
2025-03-20 15:38:46 +10:00
chapoi d062468f93 Undo sticky topic header (#64) 2025-03-19 10:19:25 -05:00
chapoi b6db617017 Mobile: New alert info width fix (#63) 2025-03-19 10:01:43 +01:00
Jordan Vidrine efc3dd5475 cleanup dropdown button (#62) 2025-03-18 19:29:42 -05:00
Jordan Vidrine d79313436d fix (#61) 2025-03-18 19:18:32 -05:00
Jordan Vidrine 19c957aecc apply anti-aliased font to topics as well (#60) 2025-03-18 18:43:27 -05:00