Skip to content

Commit

Permalink
Modernise discourse-kanban-theme implementation (#35)
Browse files Browse the repository at this point in the history
Highlights include:
- Glimmer components / @Tracked
- Use new renderInOutlet API
- New modal API
- Avoid modifyClass on discovery controllers
- Add support for tag and tag/category routes
- Add 'copy link' button to boards
- Add 'empty state' UX to prompt for configuration
- Add system specs
  • Loading branch information
davidtaylorhq authored Oct 9, 2023
1 parent c78a399 commit 25373cf
Show file tree
Hide file tree
Showing 35 changed files with 2,171 additions and 1,511 deletions.
1 change: 1 addition & 0 deletions .discourse-compatibility
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
< 3.1.0.beta2-dev: c78a3998cdafabde7b9fa2e99ddab8ad2449c994
3.1.999: 62b3115262fe50b523c0b1b4026be75e2b25f64a
3.1.0.beta1: 244c2c47e0131bbb9f5be26990010e8ce37471f3
2.7.0.beta3: 16918e67b2b16cb91a2dee1caea1bc96c317a5d0
18 changes: 17 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
{}
{
"plugins": ["prettier-plugin-ember-template-tag"],
"overrides": [
{
"files": "*.gjs",
"options": {
"parser": "ember-template-tag"
}
},
{
"files": "*.gts",
"options": {
"parser": "ember-template-tag"
}
}
]
}
4 changes: 3 additions & 1 deletion about.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"maximum_discourse_version": null,
"assets": {},
"color_schemes": {},
"learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
"modifiers": {
"svg_icons": ["user-minus"]
}
}
8 changes: 7 additions & 1 deletion common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
overflow: hidden;
background: var(--primary-low, $primary-low);

&.kanban-empty-state {
padding: 10px;
text-align: center;
justify-content: center;
gap: 20px;
}

&.accept-drag {
background: var(--primary-medium, $primary-medium);
}
Expand Down Expand Up @@ -111,7 +118,6 @@
.topic-card {
display: block;
color: var(--primary-medium, $primary-medium);
cursor: pointer;

&.topic-unseen {
color: var(--primary-medium, $primary-medium);
Expand Down
36 changes: 0 additions & 36 deletions javascripts/discourse-kanban/components/discourse-kanban-card.js

This file was deleted.

222 changes: 0 additions & 222 deletions javascripts/discourse-kanban/components/discourse-kanban-list.js

This file was deleted.

26 changes: 0 additions & 26 deletions javascripts/discourse-kanban/components/discourse-kanban-nav.js

This file was deleted.

31 changes: 0 additions & 31 deletions javascripts/discourse-kanban/components/discourse-kanban.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 25373cf

Please sign in to comment.