openproject-primer_view_components 0.91.4 → 0.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +0 -19
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/open_project/color_field.css +1 -0
  9. data/app/components/primer/open_project/color_field.css.json +18 -0
  10. data/app/components/primer/open_project/color_field.css.map +1 -0
  11. data/app/components/primer/open_project/color_field.pcss +70 -0
  12. data/app/components/primer/open_project/color_field.rb +40 -0
  13. data/app/components/primer/open_project/sub_header.rb +37 -29
  14. data/app/components/primer/primer.d.ts +1 -0
  15. data/app/components/primer/primer.js +1 -0
  16. data/app/components/primer/primer.pcss +1 -0
  17. data/app/components/primer/primer.ts +1 -0
  18. data/app/lib/primer/forms/color_field.html.erb +10 -0
  19. data/app/lib/primer/forms/color_field.rb +67 -0
  20. data/app/lib/primer/forms/dsl/color_field_input.rb +97 -0
  21. data/app/lib/primer/forms/dsl/input_methods.rb +9 -0
  22. data/app/lib/primer/forms/primer_color_input.d.ts +17 -0
  23. data/app/lib/primer/forms/primer_color_input.js +138 -0
  24. data/app/lib/primer/forms/primer_color_input.ts +121 -0
  25. data/config/locales/en.yml +4 -0
  26. data/lib/primer/view_components/version.rb +2 -2
  27. data/lib/primer/yard/component_manifest.rb +2 -1
  28. data/lib/primer/yard/lookbook_pages_backend.rb +2 -1
  29. data/previews/primer/open_project/color_field_preview/in_form.html.erb +6 -0
  30. data/previews/primer/open_project/color_field_preview/in_multi.html.erb +8 -0
  31. data/previews/primer/open_project/color_field_preview/multiple.html.erb +4 -0
  32. data/previews/primer/open_project/color_field_preview.rb +108 -0
  33. data/previews/primer/open_project/sub_header_preview/playground.html.erb +1 -1
  34. data/previews/primer/open_project/sub_header_preview.rb +19 -20
  35. data/static/arguments.json +154 -6
  36. data/static/audited_at.json +1 -0
  37. data/static/classes.json +3 -0
  38. data/static/classnames.cjs +18 -0
  39. data/static/classnames.js +18 -0
  40. data/static/constants.json +3 -0
  41. data/static/info_arch.json +305 -16
  42. data/static/previews.json +148 -10
  43. data/static/statuses.json +1 -0
  44. metadata +16 -1
data/static/classnames.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const classNames = new Set([
2
+ ':popover-open',
2
3
  'ActionBar',
3
4
  'ActionBar--large',
4
5
  'ActionBar--small',
@@ -15,9 +16,13 @@ const classNames = new Set([
15
16
  'ActionListContent--hasActiveSubItem',
16
17
  'ActionListContent--sizeLarge',
17
18
  'ActionListContent--sizeXLarge',
19
+ 'ActionListContent--visual16',
20
+ 'ActionListContent--visual20',
21
+ 'ActionListContent--visual24',
18
22
  'ActionListHeader',
19
23
  'ActionListItem',
20
24
  'ActionListItem--danger',
25
+ 'ActionListItem--disabled',
21
26
  'ActionListItem--hasSubItem',
22
27
  'ActionListItem--navActive',
23
28
  'ActionListItem--subItem',
@@ -72,6 +77,7 @@ const classNames = new Set([
72
77
  'Box-footer',
73
78
  'Box-header',
74
79
  'Box-header--blue',
80
+ 'Box-list',
75
81
  'Box-list--roundedBottom',
76
82
  'Box-list--roundedTop',
77
83
  'Box-row',
@@ -97,6 +103,7 @@ const classNames = new Set([
97
103
  'Button--labelWrap',
98
104
  'Button--large',
99
105
  'Button--link',
106
+ 'Button--medium',
100
107
  'Button--primary',
101
108
  'Button--secondary',
102
109
  'Button--small',
@@ -109,11 +116,16 @@ const classNames = new Set([
109
116
  'Button-visual',
110
117
  'ButtonGroup',
111
118
  'CollapsibleHeader',
119
+ 'CollapsibleHeader--collapsed',
112
120
  'CollapsibleHeader--multi-line',
113
121
  'CollapsibleHeader-description',
114
122
  'CollapsibleHeader-title-line',
115
123
  'CollapsibleHeader-triggerArea',
116
124
  'CollapsibleSection--triggerArea',
125
+ 'ColorField',
126
+ 'ColorField-picker',
127
+ 'ColorField-swatch',
128
+ 'ColorField-wrap',
117
129
  'Counter',
118
130
  'Counter--primary',
119
131
  'Counter--secondary',
@@ -139,6 +151,7 @@ const classNames = new Set([
139
151
  'FormControl-input-trailingAction',
140
152
  'FormControl-input-trailingAction--divider',
141
153
  'FormControl-input-trailingVisualLabel',
154
+ 'FormControl-input-trailingVisualText',
142
155
  'FormControl-input-trailingVisualWrap',
143
156
  'FormControl-input-width--auto',
144
157
  'FormControl-input-width--large',
@@ -277,6 +290,7 @@ const classNames = new Set([
277
290
  'Overlay-form',
278
291
  'Overlay-header',
279
292
  'Overlay-header--divided',
293
+ 'Overlay-header--large',
280
294
  'Overlay-headerContentWrap',
281
295
  'Overlay-headerFilter',
282
296
  'Overlay-title',
@@ -454,6 +468,9 @@ const classNames = new Set([
454
468
  'btn-small-mktg',
455
469
  'btn-subtle-mktg',
456
470
  'close-button',
471
+ 'container-lg',
472
+ 'container-md',
473
+ 'container-xl',
457
474
  'css-truncate',
458
475
  'css-truncate-overflow',
459
476
  'css-truncate-target',
@@ -482,6 +499,7 @@ const classNames = new Set([
482
499
  'flash-messages',
483
500
  'flash-success',
484
501
  'flash-warn',
502
+ 'focus',
485
503
  'form-control',
486
504
  'has-modal',
487
505
  'has-modal-disable-scroll',
@@ -1759,6 +1759,9 @@
1759
1759
  "span"
1760
1760
  ]
1761
1761
  },
1762
+ "Primer::OpenProject::ColorField": {
1763
+ "GeneratedSlotMethods": "Primer::OpenProject::ColorField::GeneratedSlotMethods"
1764
+ },
1762
1765
  "Primer::OpenProject::DangerDialog": {
1763
1766
  "ConfirmationCheckBox": "Primer::OpenProject::DangerDialog::ConfirmationCheckBox",
1764
1767
  "FormWrapper": "Primer::OpenProject::DangerDialog::FormWrapper",
@@ -19764,6 +19764,301 @@
19764
19764
  ],
19765
19765
  "subcomponents": []
19766
19766
  },
19767
+ {
19768
+ "fully_qualified_name": "Primer::OpenProject::ColorField",
19769
+ "description": "Color fields are single-line text inputs for hex color codes, paired with a native color\npicker that doubles as a swatch. They render an `<input type=\"text\">`, which is submitted,\nand an unnamed `<input type=\"color\">`, which is not. The field can therefore be left blank.\n\nTyped text is previewed in the swatch as soon as it is a valid three- or six-digit hex code\nand is rewritten to uppercase `#RRGGBB` when the field loses focus. Invalid text is left\nalone; validate it on the server.\n\nSpace color fields through their container, such as a form group or a stack. As with text\nfields, system arguments are applied to the text input itself, so a margin passed to the\nfield moves the input away from its swatch.",
19770
+ "accessibility_docs": null,
19771
+ "is_form_component": true,
19772
+ "is_published": true,
19773
+ "requires_js": true,
19774
+ "component": "OpenProject::ColorField",
19775
+ "status": "open_project",
19776
+ "a11y_reviewed": false,
19777
+ "short_name": "OpenProjectColorField",
19778
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/color_field.rb",
19779
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/color_field/default/",
19780
+ "parameters": [
19781
+ {
19782
+ "name": "size",
19783
+ "type": "Symbol",
19784
+ "default": "N/A",
19785
+ "description": "The size of the field. One of `:large`, `:medium`, or `:small`."
19786
+ },
19787
+ {
19788
+ "name": "full_width",
19789
+ "type": "Boolean",
19790
+ "default": "N/A",
19791
+ "description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
19792
+ },
19793
+ {
19794
+ "name": "name",
19795
+ "type": "String",
19796
+ "default": "N/A",
19797
+ "description": "Value for the HTML name attribute."
19798
+ },
19799
+ {
19800
+ "name": "id",
19801
+ "type": "String",
19802
+ "default": "N/A",
19803
+ "description": "Value for the HTML id attribute."
19804
+ },
19805
+ {
19806
+ "name": "class",
19807
+ "type": "String",
19808
+ "default": "N/A",
19809
+ "description": "CSS classes to include in the input's HTML `class` attribute. Exists for compatibility with Rails form builders."
19810
+ },
19811
+ {
19812
+ "name": "classes",
19813
+ "type": "Array",
19814
+ "default": "N/A",
19815
+ "description": "CSS classes to include in the input's HTML `class` attribute. Combined with the `:class` argument. The list may contain strings, hashes, or `nil` values, and is automatically cleaned up by Primer's [`class_name` helper](https://github.com/primer/view_components/blob/c9cb95c98fee3e2e27f4a10683f555e22285e7f1/app/lib/primer/class_name_helper.rb) (`nils`, falsy entries, and blank strings are ignored)."
19816
+ },
19817
+ {
19818
+ "name": "caption",
19819
+ "type": "String",
19820
+ "default": "N/A",
19821
+ "description": "A string describing the field and what sorts of input it expects. Displayed below the input."
19822
+ },
19823
+ {
19824
+ "name": "label",
19825
+ "type": "String",
19826
+ "default": "N/A",
19827
+ "description": "Label text displayed above the input."
19828
+ },
19829
+ {
19830
+ "name": "visually_hide_label",
19831
+ "type": "Boolean",
19832
+ "default": "N/A",
19833
+ "description": "When set to `true`, hides the label. Although the label will be hidden visually, it will still be visible to screen readers."
19834
+ },
19835
+ {
19836
+ "name": "disabled",
19837
+ "type": "Boolean",
19838
+ "default": "N/A",
19839
+ "description": "When set to `true`, the input will not accept keyboard or mouse input."
19840
+ },
19841
+ {
19842
+ "name": "hidden",
19843
+ "type": "Boolean",
19844
+ "default": "N/A",
19845
+ "description": "When set to `true`, visually hides the field."
19846
+ },
19847
+ {
19848
+ "name": "invalid",
19849
+ "type": "Boolean",
19850
+ "default": "N/A",
19851
+ "description": "If set to `true`, the input will be rendered with a red border. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
19852
+ },
19853
+ {
19854
+ "name": "validation_message",
19855
+ "type": "String",
19856
+ "default": "N/A",
19857
+ "description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
19858
+ },
19859
+ {
19860
+ "name": "label_arguments",
19861
+ "type": "Hash",
19862
+ "default": "N/A",
19863
+ "description": "Attributes that will be passed to Rails' `builder.label` method. These can be HTML attributes or any of the other label options Rails supports. They will appear as HTML attributes on the `<label>` tag."
19864
+ },
19865
+ {
19866
+ "name": "scope_name_to_model",
19867
+ "type": "Boolean",
19868
+ "default": "N/A",
19869
+ "description": "Default `true`. When set to `false`, prevents the model name from prefixing the field name. For example, if the field name is `my_field`, Rails will normally emit an HTML name attribute of `model[my_field]`. Setting `scope_name_to_model` to `false` will cause Rails to emit `my_field` instead."
19870
+ },
19871
+ {
19872
+ "name": "scope_id_to_model",
19873
+ "type": "Boolean",
19874
+ "default": "N/A",
19875
+ "description": "Default `true`. When set to `false`, prevents the model name from prefixing the field ID. For example, if the field name is `my_field`, Rails will normally emit an HTML ID attribute of `model_my_field`. Setting `scope_id_to_model` to `false` will cause Rails to emit `my_field` instead."
19876
+ },
19877
+ {
19878
+ "name": "required",
19879
+ "type": "Boolean",
19880
+ "default": "N/A",
19881
+ "description": "Default `false`. When set to `true`, causes an asterisk (*) to appear next to the field's label indicating it is a required field. Note that this option explicitly does _not_ add a `required` HTML attribute. Doing so would enable native browser validations, which are inaccessible and inconsistent with the Primer design system."
19882
+ },
19883
+ {
19884
+ "name": "aria",
19885
+ "type": "Hash",
19886
+ "default": "N/A",
19887
+ "description": "Key/value pairs that represent Aria attributes and their values. Eg. `aria: { current: true }` becomes `aria-current=\"true\"`."
19888
+ },
19889
+ {
19890
+ "name": "data",
19891
+ "type": "Hash",
19892
+ "default": "N/A",
19893
+ "description": "Key/value pairs that represent data attributes and their values. Eg. `data: { foo: \"bar\" }` becomes `data-foo=\"bar\"`."
19894
+ },
19895
+ {
19896
+ "name": "system_arguments",
19897
+ "type": "Hash",
19898
+ "default": "N/A",
19899
+ "description": "A hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the [Rails documentation](https://guides.rubyonrails.org/form_helpers.html) for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing `mt: 2` will add the `mt-2` class to the input. See the Primer system arguments docs for details."
19900
+ },
19901
+ {
19902
+ "name": "input_width",
19903
+ "type": "Symbol",
19904
+ "default": "N/A",
19905
+ "description": "The width of the field. One of `:auto`, `:large`, `:medium`, `:small`, `:xlarge`, `:xsmall`, or `:xxlarge`."
19906
+ },
19907
+ {
19908
+ "name": "maxlength",
19909
+ "type": "Integer",
19910
+ "default": "N/A",
19911
+ "description": "Maximum number of characters the text input accepts. Defaults to 7, the length of `#RRGGBB`."
19912
+ },
19913
+ {
19914
+ "name": "placeholder",
19915
+ "type": "String",
19916
+ "default": "N/A",
19917
+ "description": "Placeholder text. It is not previewed in the swatch, which stays empty while the field is blank."
19918
+ },
19919
+ {
19920
+ "name": "picker_label",
19921
+ "type": "String",
19922
+ "default": "N/A",
19923
+ "description": "Accessible name of the native color picker. Defaults to `I18n.t(\"color_field.picker_label\", label: label)`, or to `I18n.t(\"color_field.picker_label_generic\")` when there is no label."
19924
+ }
19925
+ ],
19926
+ "slots": [],
19927
+ "methods": [],
19928
+ "previews": [
19929
+ {
19930
+ "preview_path": "primer/open_project/color_field/playground",
19931
+ "name": "playground",
19932
+ "snapshot": "false",
19933
+ "skip_rules": {
19934
+ "wont_fix": [
19935
+ "region"
19936
+ ],
19937
+ "will_fix": [
19938
+ "color-contrast"
19939
+ ]
19940
+ }
19941
+ },
19942
+ {
19943
+ "preview_path": "primer/open_project/color_field/default",
19944
+ "name": "default",
19945
+ "snapshot": "true",
19946
+ "skip_rules": {
19947
+ "wont_fix": [
19948
+ "region"
19949
+ ],
19950
+ "will_fix": [
19951
+ "color-contrast"
19952
+ ]
19953
+ }
19954
+ },
19955
+ {
19956
+ "preview_path": "primer/open_project/color_field/blank_with_placeholder",
19957
+ "name": "blank_with_placeholder",
19958
+ "snapshot": "true",
19959
+ "skip_rules": {
19960
+ "wont_fix": [
19961
+ "region"
19962
+ ],
19963
+ "will_fix": [
19964
+ "color-contrast"
19965
+ ]
19966
+ }
19967
+ },
19968
+ {
19969
+ "preview_path": "primer/open_project/color_field/blank_without_placeholder",
19970
+ "name": "blank_without_placeholder",
19971
+ "snapshot": "true",
19972
+ "skip_rules": {
19973
+ "wont_fix": [
19974
+ "region"
19975
+ ],
19976
+ "will_fix": [
19977
+ "color-contrast"
19978
+ ]
19979
+ }
19980
+ },
19981
+ {
19982
+ "preview_path": "primer/open_project/color_field/disabled",
19983
+ "name": "disabled",
19984
+ "snapshot": "true",
19985
+ "skip_rules": {
19986
+ "wont_fix": [
19987
+ "region"
19988
+ ],
19989
+ "will_fix": [
19990
+ "color-contrast"
19991
+ ]
19992
+ }
19993
+ },
19994
+ {
19995
+ "preview_path": "primer/open_project/color_field/readonly",
19996
+ "name": "readonly",
19997
+ "snapshot": "true",
19998
+ "skip_rules": {
19999
+ "wont_fix": [
20000
+ "region"
20001
+ ],
20002
+ "will_fix": [
20003
+ "color-contrast"
20004
+ ]
20005
+ }
20006
+ },
20007
+ {
20008
+ "preview_path": "primer/open_project/color_field/invalid",
20009
+ "name": "invalid",
20010
+ "snapshot": "true",
20011
+ "skip_rules": {
20012
+ "wont_fix": [
20013
+ "region"
20014
+ ],
20015
+ "will_fix": [
20016
+ "color-contrast"
20017
+ ]
20018
+ }
20019
+ },
20020
+ {
20021
+ "preview_path": "primer/open_project/color_field/in_form",
20022
+ "name": "in_form",
20023
+ "snapshot": "false",
20024
+ "skip_rules": {
20025
+ "wont_fix": [
20026
+ "region"
20027
+ ],
20028
+ "will_fix": [
20029
+ "color-contrast"
20030
+ ]
20031
+ }
20032
+ },
20033
+ {
20034
+ "preview_path": "primer/open_project/color_field/multiple",
20035
+ "name": "multiple",
20036
+ "snapshot": "false",
20037
+ "skip_rules": {
20038
+ "wont_fix": [
20039
+ "region"
20040
+ ],
20041
+ "will_fix": [
20042
+ "color-contrast"
20043
+ ]
20044
+ }
20045
+ },
20046
+ {
20047
+ "preview_path": "primer/open_project/color_field/in_multi",
20048
+ "name": "in_multi",
20049
+ "snapshot": "false",
20050
+ "skip_rules": {
20051
+ "wont_fix": [
20052
+ "region"
20053
+ ],
20054
+ "will_fix": [
20055
+ "color-contrast"
20056
+ ]
20057
+ }
20058
+ }
20059
+ ],
20060
+ "subcomponents": []
20061
+ },
19767
20062
  {
19768
20063
  "fully_qualified_name": "Primer::OpenProject::DangerDialog",
19769
20064
  "description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",
@@ -21925,12 +22220,6 @@
21925
22220
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
21926
22221
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
21927
22222
  "parameters": [
21928
- {
21929
- "name": "collapsed_search",
21930
- "type": "Boolean",
21931
- "default": "`true`",
21932
- "description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
21933
- },
21934
22223
  {
21935
22224
  "name": "system_arguments",
21936
22225
  "type": "Hash",
@@ -22003,7 +22292,7 @@
22003
22292
  {
22004
22293
  "preview_path": "primer/open_project/sub_header/default",
22005
22294
  "name": "default",
22006
- "snapshot": "false",
22295
+ "snapshot": "true",
22007
22296
  "skip_rules": {
22008
22297
  "wont_fix": [
22009
22298
  "region"
@@ -22079,8 +22368,8 @@
22079
22368
  }
22080
22369
  },
22081
22370
  {
22082
- "preview_path": "primer/open_project/sub_header/expanded_search",
22083
- "name": "expanded_search",
22371
+ "preview_path": "primer/open_project/sub_header/quick_filters",
22372
+ "name": "quick_filters",
22084
22373
  "snapshot": "false",
22085
22374
  "skip_rules": {
22086
22375
  "wont_fix": [
@@ -22092,8 +22381,8 @@
22092
22381
  }
22093
22382
  },
22094
22383
  {
22095
- "preview_path": "primer/open_project/sub_header/quick_filters",
22096
- "name": "quick_filters",
22384
+ "preview_path": "primer/open_project/sub_header/bottom_pane",
22385
+ "name": "bottom_pane",
22097
22386
  "snapshot": "false",
22098
22387
  "skip_rules": {
22099
22388
  "wont_fix": [
@@ -22105,8 +22394,8 @@
22105
22394
  }
22106
22395
  },
22107
22396
  {
22108
- "preview_path": "primer/open_project/sub_header/bottom_pane",
22109
- "name": "bottom_pane",
22397
+ "preview_path": "primer/open_project/sub_header/text",
22398
+ "name": "text",
22110
22399
  "snapshot": "false",
22111
22400
  "skip_rules": {
22112
22401
  "wont_fix": [
@@ -22118,9 +22407,9 @@
22118
22407
  }
22119
22408
  },
22120
22409
  {
22121
- "preview_path": "primer/open_project/sub_header/text",
22122
- "name": "text",
22123
- "snapshot": "false",
22410
+ "preview_path": "primer/open_project/sub_header/expanded_search",
22411
+ "name": "expanded_search",
22412
+ "snapshot": "true",
22124
22413
  "skip_rules": {
22125
22414
  "wont_fix": [
22126
22415
  "region"
data/static/previews.json CHANGED
@@ -8839,6 +8839,144 @@
8839
8839
  }
8840
8840
  ]
8841
8841
  },
8842
+ {
8843
+ "name": "color_field",
8844
+ "component": "OpenProject::ColorField",
8845
+ "status": "open_project",
8846
+ "lookup_path": "primer/open_project/color_field",
8847
+ "examples": [
8848
+ {
8849
+ "preview_path": "primer/open_project/color_field/playground",
8850
+ "name": "playground",
8851
+ "snapshot": "false",
8852
+ "skip_rules": {
8853
+ "wont_fix": [
8854
+ "region"
8855
+ ],
8856
+ "will_fix": [
8857
+ "color-contrast"
8858
+ ]
8859
+ }
8860
+ },
8861
+ {
8862
+ "preview_path": "primer/open_project/color_field/default",
8863
+ "name": "default",
8864
+ "snapshot": "true",
8865
+ "skip_rules": {
8866
+ "wont_fix": [
8867
+ "region"
8868
+ ],
8869
+ "will_fix": [
8870
+ "color-contrast"
8871
+ ]
8872
+ }
8873
+ },
8874
+ {
8875
+ "preview_path": "primer/open_project/color_field/blank_with_placeholder",
8876
+ "name": "blank_with_placeholder",
8877
+ "snapshot": "true",
8878
+ "skip_rules": {
8879
+ "wont_fix": [
8880
+ "region"
8881
+ ],
8882
+ "will_fix": [
8883
+ "color-contrast"
8884
+ ]
8885
+ }
8886
+ },
8887
+ {
8888
+ "preview_path": "primer/open_project/color_field/blank_without_placeholder",
8889
+ "name": "blank_without_placeholder",
8890
+ "snapshot": "true",
8891
+ "skip_rules": {
8892
+ "wont_fix": [
8893
+ "region"
8894
+ ],
8895
+ "will_fix": [
8896
+ "color-contrast"
8897
+ ]
8898
+ }
8899
+ },
8900
+ {
8901
+ "preview_path": "primer/open_project/color_field/disabled",
8902
+ "name": "disabled",
8903
+ "snapshot": "true",
8904
+ "skip_rules": {
8905
+ "wont_fix": [
8906
+ "region"
8907
+ ],
8908
+ "will_fix": [
8909
+ "color-contrast"
8910
+ ]
8911
+ }
8912
+ },
8913
+ {
8914
+ "preview_path": "primer/open_project/color_field/readonly",
8915
+ "name": "readonly",
8916
+ "snapshot": "true",
8917
+ "skip_rules": {
8918
+ "wont_fix": [
8919
+ "region"
8920
+ ],
8921
+ "will_fix": [
8922
+ "color-contrast"
8923
+ ]
8924
+ }
8925
+ },
8926
+ {
8927
+ "preview_path": "primer/open_project/color_field/invalid",
8928
+ "name": "invalid",
8929
+ "snapshot": "true",
8930
+ "skip_rules": {
8931
+ "wont_fix": [
8932
+ "region"
8933
+ ],
8934
+ "will_fix": [
8935
+ "color-contrast"
8936
+ ]
8937
+ }
8938
+ },
8939
+ {
8940
+ "preview_path": "primer/open_project/color_field/in_form",
8941
+ "name": "in_form",
8942
+ "snapshot": "false",
8943
+ "skip_rules": {
8944
+ "wont_fix": [
8945
+ "region"
8946
+ ],
8947
+ "will_fix": [
8948
+ "color-contrast"
8949
+ ]
8950
+ }
8951
+ },
8952
+ {
8953
+ "preview_path": "primer/open_project/color_field/multiple",
8954
+ "name": "multiple",
8955
+ "snapshot": "false",
8956
+ "skip_rules": {
8957
+ "wont_fix": [
8958
+ "region"
8959
+ ],
8960
+ "will_fix": [
8961
+ "color-contrast"
8962
+ ]
8963
+ }
8964
+ },
8965
+ {
8966
+ "preview_path": "primer/open_project/color_field/in_multi",
8967
+ "name": "in_multi",
8968
+ "snapshot": "false",
8969
+ "skip_rules": {
8970
+ "wont_fix": [
8971
+ "region"
8972
+ ],
8973
+ "will_fix": [
8974
+ "color-contrast"
8975
+ ]
8976
+ }
8977
+ }
8978
+ ]
8979
+ },
8842
8980
  {
8843
8981
  "name": "danger_dialog",
8844
8982
  "component": "OpenProject::DangerDialog",
@@ -9979,7 +10117,7 @@
9979
10117
  {
9980
10118
  "preview_path": "primer/open_project/sub_header/default",
9981
10119
  "name": "default",
9982
- "snapshot": "false",
10120
+ "snapshot": "true",
9983
10121
  "skip_rules": {
9984
10122
  "wont_fix": [
9985
10123
  "region"
@@ -10055,8 +10193,8 @@
10055
10193
  }
10056
10194
  },
10057
10195
  {
10058
- "preview_path": "primer/open_project/sub_header/expanded_search",
10059
- "name": "expanded_search",
10196
+ "preview_path": "primer/open_project/sub_header/quick_filters",
10197
+ "name": "quick_filters",
10060
10198
  "snapshot": "false",
10061
10199
  "skip_rules": {
10062
10200
  "wont_fix": [
@@ -10068,8 +10206,8 @@
10068
10206
  }
10069
10207
  },
10070
10208
  {
10071
- "preview_path": "primer/open_project/sub_header/quick_filters",
10072
- "name": "quick_filters",
10209
+ "preview_path": "primer/open_project/sub_header/bottom_pane",
10210
+ "name": "bottom_pane",
10073
10211
  "snapshot": "false",
10074
10212
  "skip_rules": {
10075
10213
  "wont_fix": [
@@ -10081,8 +10219,8 @@
10081
10219
  }
10082
10220
  },
10083
10221
  {
10084
- "preview_path": "primer/open_project/sub_header/bottom_pane",
10085
- "name": "bottom_pane",
10222
+ "preview_path": "primer/open_project/sub_header/text",
10223
+ "name": "text",
10086
10224
  "snapshot": "false",
10087
10225
  "skip_rules": {
10088
10226
  "wont_fix": [
@@ -10094,9 +10232,9 @@
10094
10232
  }
10095
10233
  },
10096
10234
  {
10097
- "preview_path": "primer/open_project/sub_header/text",
10098
- "name": "text",
10099
- "snapshot": "false",
10235
+ "preview_path": "primer/open_project/sub_header/expanded_search",
10236
+ "name": "expanded_search",
10237
+ "snapshot": "true",
10100
10238
  "skip_rules": {
10101
10239
  "wont_fix": [
10102
10240
  "region"
data/static/statuses.json CHANGED
@@ -146,6 +146,7 @@
146
146
  "Primer::OpenProject::BorderGrid": "open_project",
147
147
  "Primer::OpenProject::BorderGrid::Cell": "open_project",
148
148
  "Primer::OpenProject::CollapsibleSection": "open_project",
149
+ "Primer::OpenProject::ColorField": "open_project",
149
150
  "Primer::OpenProject::DangerDialog": "open_project",
150
151
  "Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
151
152
  "Primer::OpenProject::DangerDialog::FormWrapper": "open_project",