Skip to content

Commit a1f91e0

Browse files
authored
Merge pull request #489 from opf/fix/creation-of-static-files
Fix creation of static files
2 parents 1c42725 + f625554 commit a1f91e0

7 files changed

Lines changed: 81 additions & 18 deletions

File tree

.github/workflows/static-files.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
static:
1313
runs-on: ubuntu-latest
1414
permissions:
15-
contents: read
15+
contents: write
1616
steps:
1717
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
1818
id: app-token
@@ -24,7 +24,6 @@ jobs:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525
with:
2626
token: ${{ steps.app-token.outputs.token }}
27-
persist-credentials: false
2827
- uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # v1
2928
with:
3029
ruby-version: '3.4'
-10 Bytes
Loading
-9 Bytes
Loading
0 Bytes
Loading

static/arguments.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6173,6 +6173,12 @@
61736173
"default": "`nil`",
61746174
"description": "URL of the server endpoint that returns a filtered `<tree-view>` HTML fragment. When set, activates async (server-side) filtering mode. See \"Async loading strategy\" above."
61756175
},
6176+
{
6177+
"name": "show_search_highlighting",
6178+
"type": "Boolean",
6179+
"default": "`true`",
6180+
"description": "Only relevant in async mode (`src:` must be set). When `true` (default), the client highlights matching text using the CSS Custom Highlight API or `<mark>` elements. When `false`, the client skips highlighting entirely; the server is responsible for including highlight markup (e.g. `<mark>` tags) in the returned HTML fragment."
6181+
},
61766182
{
61776183
"name": "tree_view_arguments",
61786184
"type": "Hash",
@@ -6498,7 +6504,7 @@
64986504
{
64996505
"name": "collapsed_search",
65006506
"type": "Boolean",
6501-
"default": "`false`",
6507+
"default": "`true`",
65026508
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
65036509
},
65046510
{

static/info_arch.json

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10869,6 +10869,19 @@
1086910869
"color-contrast"
1087010870
]
1087110871
}
10872+
},
10873+
{
10874+
"preview_path": "primer/alpha/tree_view/doubled_path",
10875+
"name": "doubled_path",
10876+
"snapshot": "false",
10877+
"skip_rules": {
10878+
"wont_fix": [
10879+
"region"
10880+
],
10881+
"will_fix": [
10882+
"color-contrast"
10883+
]
10884+
}
1087210885
}
1087310886
],
1087410887
"subcomponents": [
@@ -20368,6 +20381,12 @@
2036820381
"default": "`nil`",
2036920382
"description": "URL of the server endpoint that returns a filtered `<tree-view>` HTML fragment. When set, activates async (server-side) filtering mode. See \"Async loading strategy\" above."
2037020383
},
20384+
{
20385+
"name": "show_search_highlighting",
20386+
"type": "Boolean",
20387+
"default": "`true`",
20388+
"description": "Only relevant in async mode (`src:` must be set). When `true` (default), the client highlights matching text using the CSS Custom Highlight API or `<mark>` elements. When `false`, the client skips highlighting entirely; the server is responsible for including highlight markup (e.g. `<mark>` tags) in the returned HTML fragment."
20389+
},
2037120390
{
2037220391
"name": "tree_view_arguments",
2037320392
"type": "Hash",
@@ -20499,6 +20518,19 @@
2049920518
]
2050020519
}
2050120520
},
20521+
{
20522+
"preview_path": "primer/open_project/filterable_tree_view/async_server_highlights",
20523+
"name": "async_server_highlights",
20524+
"snapshot": "false",
20525+
"skip_rules": {
20526+
"wont_fix": [
20527+
"region"
20528+
],
20529+
"will_fix": [
20530+
"color-contrast"
20531+
]
20532+
}
20533+
},
2050220534
{
2050320535
"preview_path": "primer/open_project/filterable_tree_view/async_form_input",
2050420536
"name": "async_form_input",
@@ -21787,7 +21819,7 @@
2178721819
{
2178821820
"name": "collapsed_search",
2178921821
"type": "Boolean",
21790-
"default": "`false`",
21822+
"default": "`true`",
2179121823
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
2179221824
},
2179321825
{
@@ -21938,8 +21970,8 @@
2193821970
}
2193921971
},
2194021972
{
21941-
"preview_path": "primer/open_project/sub_header/collapsed_search",
21942-
"name": "collapsed_search",
21973+
"preview_path": "primer/open_project/sub_header/expanded_search",
21974+
"name": "expanded_search",
2194321975
"snapshot": "false",
2194421976
"skip_rules": {
2194521977
"wont_fix": [

static/previews.json

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4515,6 +4515,19 @@
45154515
]
45164516
}
45174517
},
4518+
{
4519+
"preview_path": "primer/open_project/filterable_tree_view/async_server_highlights",
4520+
"name": "async_server_highlights",
4521+
"snapshot": "false",
4522+
"skip_rules": {
4523+
"wont_fix": [
4524+
"region"
4525+
],
4526+
"will_fix": [
4527+
"color-contrast"
4528+
]
4529+
}
4530+
},
45184531
{
45194532
"preview_path": "primer/open_project/filterable_tree_view/async_form_input",
45204533
"name": "async_form_input",
@@ -4889,12 +4902,12 @@
48894902
},
48904903
{
48914904
"name": "heading",
4892-
"component": "OpenProject::Heading",
4893-
"status": "open_project",
4894-
"lookup_path": "primer/open_project/heading",
4905+
"component": "Heading",
4906+
"status": "beta",
4907+
"lookup_path": "primer/beta/heading",
48954908
"examples": [
48964909
{
4897-
"preview_path": "primer/open_project/heading/playground",
4910+
"preview_path": "primer/beta/heading/playground",
48984911
"name": "playground",
48994912
"snapshot": "false",
49004913
"skip_rules": {
@@ -4907,7 +4920,7 @@
49074920
}
49084921
},
49094922
{
4910-
"preview_path": "primer/open_project/heading/default",
4923+
"preview_path": "primer/beta/heading/default",
49114924
"name": "default",
49124925
"snapshot": "true",
49134926
"skip_rules": {
@@ -4923,12 +4936,12 @@
49234936
},
49244937
{
49254938
"name": "heading",
4926-
"component": "Heading",
4927-
"status": "beta",
4928-
"lookup_path": "primer/beta/heading",
4939+
"component": "OpenProject::Heading",
4940+
"status": "open_project",
4941+
"lookup_path": "primer/open_project/heading",
49294942
"examples": [
49304943
{
4931-
"preview_path": "primer/beta/heading/playground",
4944+
"preview_path": "primer/open_project/heading/playground",
49324945
"name": "playground",
49334946
"snapshot": "false",
49344947
"skip_rules": {
@@ -4941,7 +4954,7 @@
49414954
}
49424955
},
49434956
{
4944-
"preview_path": "primer/beta/heading/default",
4957+
"preview_path": "primer/open_project/heading/default",
49454958
"name": "default",
49464959
"snapshot": "true",
49474960
"skip_rules": {
@@ -8235,8 +8248,8 @@
82358248
}
82368249
},
82378250
{
8238-
"preview_path": "primer/open_project/sub_header/collapsed_search",
8239-
"name": "collapsed_search",
8251+
"preview_path": "primer/open_project/sub_header/expanded_search",
8252+
"name": "expanded_search",
82408253
"snapshot": "false",
82418254
"skip_rules": {
82428255
"wont_fix": [
@@ -9808,6 +9821,19 @@
98089821
"color-contrast"
98099822
]
98109823
}
9824+
},
9825+
{
9826+
"preview_path": "primer/alpha/tree_view/doubled_path",
9827+
"name": "doubled_path",
9828+
"snapshot": "false",
9829+
"skip_rules": {
9830+
"wont_fix": [
9831+
"region"
9832+
],
9833+
"will_fix": [
9834+
"color-contrast"
9835+
]
9836+
}
98119837
}
98129838
]
98139839
},

0 commit comments

Comments
 (0)