Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit ec80183

Browse files
authored
DEV: Update linting (#1191)
1 parent 6aaf8a0 commit ec80183

24 files changed

+1083
-414
lines changed

Gemfile.lock

Lines changed: 58 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,93 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.3.4)
4+
activesupport (8.0.2)
55
base64
6+
benchmark (>= 0.3)
67
bigdecimal
7-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
concurrent-ruby (~> 1.0, >= 1.3.1)
89
connection_pool (>= 2.2.5)
910
drb
1011
i18n (>= 1.6, < 2)
12+
logger (>= 1.4.2)
1113
minitest (>= 5.1)
12-
mutex_m
13-
tzinfo (~> 2.0)
14+
securerandom (>= 0.3)
15+
tzinfo (~> 2.0, >= 2.0.5)
16+
uri (>= 0.13.1)
1417
ast (2.4.2)
1518
base64 (0.2.0)
16-
bigdecimal (3.1.8)
17-
concurrent-ruby (1.3.3)
18-
connection_pool (2.4.1)
19+
benchmark (0.4.0)
20+
bigdecimal (3.1.9)
21+
concurrent-ruby (1.3.5)
22+
connection_pool (2.5.0)
1923
drb (2.2.1)
20-
i18n (1.14.5)
24+
i18n (1.14.7)
2125
concurrent-ruby (~> 1.0)
22-
json (2.7.2)
23-
language_server-protocol (3.17.0.3)
24-
minitest (5.24.1)
25-
mutex_m (0.2.0)
26-
parallel (1.25.1)
27-
parser (3.3.3.0)
26+
json (2.10.2)
27+
language_server-protocol (3.17.0.4)
28+
lint_roller (1.1.0)
29+
logger (1.6.6)
30+
minitest (5.25.5)
31+
parallel (1.26.3)
32+
parser (3.3.7.1)
2833
ast (~> 2.4.1)
2934
racc
3035
prettier_print (1.2.1)
31-
racc (1.8.0)
36+
racc (1.8.1)
3237
rack (3.1.12)
3338
rainbow (3.1.1)
34-
regexp_parser (2.9.2)
35-
rexml (3.3.9)
36-
rubocop (1.64.1)
39+
regexp_parser (2.10.0)
40+
rubocop (1.74.0)
3741
json (~> 2.3)
38-
language_server-protocol (>= 3.17.0)
42+
language_server-protocol (~> 3.17.0.2)
43+
lint_roller (~> 1.1.0)
3944
parallel (~> 1.10)
4045
parser (>= 3.3.0.2)
4146
rainbow (>= 2.2.2, < 4.0)
42-
regexp_parser (>= 1.8, < 3.0)
43-
rexml (>= 3.2.5, < 4.0)
44-
rubocop-ast (>= 1.31.1, < 2.0)
47+
regexp_parser (>= 2.9.3, < 3.0)
48+
rubocop-ast (>= 1.38.0, < 2.0)
4549
ruby-progressbar (~> 1.7)
46-
unicode-display_width (>= 2.4.0, < 3.0)
47-
rubocop-ast (1.31.3)
50+
unicode-display_width (>= 2.4.0, < 4.0)
51+
rubocop-ast (1.38.1)
4852
parser (>= 3.3.1.0)
49-
rubocop-capybara (2.21.0)
50-
rubocop (~> 1.41)
51-
rubocop-discourse (3.8.1)
53+
rubocop-capybara (2.22.1)
54+
lint_roller (~> 1.1)
55+
rubocop (~> 1.72, >= 1.72.1)
56+
rubocop-discourse (3.12.1)
5257
activesupport (>= 6.1)
53-
rubocop (>= 1.59.0)
54-
rubocop-capybara (>= 2.0.0)
55-
rubocop-factory_bot (>= 2.0.0)
56-
rubocop-rails (>= 2.25.0)
58+
lint_roller (>= 1.1.0)
59+
rubocop (>= 1.73.2)
60+
rubocop-capybara (>= 2.22.0)
61+
rubocop-factory_bot (>= 2.27.0)
62+
rubocop-rails (>= 2.30.3)
5763
rubocop-rspec (>= 3.0.1)
58-
rubocop-rspec_rails (>= 2.30.0)
59-
rubocop-factory_bot (2.26.1)
60-
rubocop (~> 1.61)
61-
rubocop-rails (2.25.1)
64+
rubocop-rspec_rails (>= 2.31.0)
65+
rubocop-factory_bot (2.27.1)
66+
lint_roller (~> 1.1)
67+
rubocop (~> 1.72, >= 1.72.1)
68+
rubocop-rails (2.30.3)
6269
activesupport (>= 4.2.0)
70+
lint_roller (~> 1.1)
6371
rack (>= 1.1)
64-
rubocop (>= 1.33.0, < 2.0)
65-
rubocop-ast (>= 1.31.1, < 2.0)
66-
rubocop-rspec (3.0.2)
67-
rubocop (~> 1.61)
68-
rubocop-rspec_rails (2.30.0)
69-
rubocop (~> 1.61)
70-
rubocop-rspec (~> 3, >= 3.0.1)
72+
rubocop (>= 1.72.1, < 2.0)
73+
rubocop-ast (>= 1.38.0, < 2.0)
74+
rubocop-rspec (3.5.0)
75+
lint_roller (~> 1.1)
76+
rubocop (~> 1.72, >= 1.72.1)
77+
rubocop-rspec_rails (2.31.0)
78+
lint_roller (~> 1.1)
79+
rubocop (~> 1.72, >= 1.72.1)
80+
rubocop-rspec (~> 3.5)
7181
ruby-progressbar (1.13.0)
82+
securerandom (0.4.1)
7283
syntax_tree (6.2.0)
7384
prettier_print (>= 1.2.0)
7485
tzinfo (2.0.6)
7586
concurrent-ruby (~> 1.0)
76-
unicode-display_width (2.5.0)
87+
unicode-display_width (3.1.4)
88+
unicode-emoji (~> 4.0, >= 4.0.4)
89+
unicode-emoji (4.0.4)
90+
uri (1.0.3)
7791

7892
PLATFORMS
7993
ruby
@@ -83,4 +97,4 @@ DEPENDENCIES
8397
syntax_tree
8498

8599
BUNDLED WITH
86-
2.5.10
100+
2.6.5

assets/stylesheets/common/ai-blinking-animation.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
height: 1em;
1414
opacity: 0;
1515
display: block;
16+
1617
&:nth-child(1) {
1718
width: 10%;
1819
}
@@ -92,15 +93,19 @@
9293
&:nth-child(20) {
9394
width: 25%;
9495
}
96+
9597
&.is-shown {
9698
opacity: 1;
9799
}
100+
98101
&.show {
99102
animation: appear 0.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0s forwards;
103+
100104
@media (prefers-reduced-motion) {
101105
animation-duration: 0s;
102106
}
103107
}
108+
104109
@media (prefers-reduced-motion: no-preference) {
105110
&.blink {
106111
animation: blink 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
@@ -112,6 +117,7 @@
112117
0% {
113118
opacity: 0;
114119
}
120+
115121
100% {
116122
opacity: 1;
117123
}
@@ -121,9 +127,11 @@
121127
0% {
122128
opacity: 1;
123129
}
130+
124131
50% {
125132
opacity: 0.5;
126133
}
134+
127135
100% {
128136
opacity: 1;
129137
}

assets/stylesheets/common/streaming.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
100% {
44
opacity: 0;
55
}
6+
67
50% {
78
opacity: 1;
89
}
910
}
1011

1112
@mixin progress-dot {
1213
content: "\25CF";
13-
font-family: Söhne Circle, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
14-
Cantarell, Noto Sans, sans-serif;
14+
font-family: "Söhne Circle", system-ui, -apple-system, "Segoe UI", Roboto,
15+
Ubuntu, Cantarell, "Noto Sans", sans-serif;
1516
line-height: normal;
1617
margin-left: 0.25rem;
1718
vertical-align: baseline;
@@ -44,6 +45,7 @@ article.streaming .cooked {
4445
100% {
4546
transform: initial;
4647
}
48+
4749
30% {
4850
transform: translateY(-0.2em);
4951
}
@@ -55,12 +57,15 @@ article.streaming .cooked {
5557

5658
&__dot {
5759
display: inline-block;
60+
5861
@media (prefers-reduced-motion: no-preference) {
5962
animation: ai-indicator-wave 1.8s linear infinite;
6063
}
64+
6165
&:nth-child(2) {
6266
animation-delay: -1.6s;
6367
}
68+
6469
&:nth-child(3) {
6570
animation-delay: -1.4s;
6671
}

assets/stylesheets/modules/ai-bot/common/ai-artifact.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ html.ai-artifact-expanded {
3838
display: flex;
3939
justify-content: space-between;
4040
align-items: center;
41+
4142
.ai-artifact__expand-button {
4243
margin-left: auto;
4344
}
@@ -70,14 +71,17 @@ html.ai-artifact-expanded {
7071
background-color: var(--secondary-low);
7172
opacity: 0.9;
7273
transform: translateY(0);
74+
7375
button {
7476
width: 100%;
7577
text-align: left;
7678
box-sizing: border-box;
7779
justify-content: flex-start;
7880
color: var(--secondary-very-high);
81+
7982
&:hover {
8083
color: var(--secondary-very-high);
84+
8185
.d-icon {
8286
color: var(--secondary-high);
8387
}
@@ -95,7 +99,6 @@ html.ai-artifact-expanded {
9599
bottom: 0;
96100
z-index: z("fullscreen");
97101
}
98-
99102
position: fixed;
100103
top: 0;
101104
left: 0;

assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from {
33
opacity: 0;
44
}
5+
56
to {
67
opacity: 1;
78
}

assets/stylesheets/modules/ai-bot/common/ai-persona.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,26 @@
4646
padding-left: 0.25em;
4747
color: var(--primary-medium);
4848
}
49+
4950
label {
5051
display: block;
5152
}
53+
5254
&__tool-options {
5355
padding: 5px 10px 5px;
5456
border: 1px solid var(--primary-low-mid);
5557
width: 480px;
5658
}
59+
5760
&__tool-options-name {
5861
margin-bottom: 10px;
5962
font-size: var(--font-down-1);
6063
}
64+
6165
&__description {
6266
width: 500px;
6367
}
68+
6469
&__system_prompt {
6570
width: 500px;
6671
height: 400px;
@@ -101,7 +106,7 @@
101106

102107
&:focus,
103108
&:focus-within {
104-
@include default-focus();
109+
@include default-focus;
105110
}
106111

107112
&-container {

assets/stylesheets/modules/ai-bot/common/ai-tools.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
.ai-tool-editor {
4141
max-width: 80%;
4242
position: relative;
43+
4344
.ace-wrapper {
4445
border: 1px solid var(--primary-low);
4546
max-width: 100%;
4647
position: relative;
4748
width: 100%;
4849
height: 100%;
4950
min-height: 500px;
51+
5052
.ace_editor {
5153
position: absolute;
5254
left: 0;

assets/stylesheets/modules/ai-bot/common/bot-replies.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ nav.post-controls .actions button.cancel-streaming {
1010
display: none;
1111
}
1212
}
13+
1314
.persona-llm-selector {
1415
display: flex;
1516
justify-content: space-between;
@@ -26,6 +27,7 @@ nav.post-controls .actions button.cancel-streaming {
2627
.gpt-persona {
2728
margin-bottom: 5px;
2829
}
30+
2931
#reply-control .composer-fields {
3032
.mini-tag-chooser,
3133
.add-warning {
@@ -39,6 +41,7 @@ nav.post-controls .actions button.cancel-streaming {
3941
background-color: var(--tertiary-low);
4042
border-top: 1px solid var(--tertiary-medium);
4143
opacity: 0.75;
44+
4245
.d-icon {
4346
color: var(--tertiary);
4447
}
@@ -60,10 +63,12 @@ article.streaming nav.post-controls .actions button.cancel-streaming {
6063
width: 100%;
6164
min-width: 320px;
6265
padding: 0.5em;
66+
6367
.d-button-label {
6468
flex: 1;
6569
text-align: left;
6670
}
71+
6772
&:hover {
6873
background: var(--primary-low);
6974
}
@@ -81,9 +86,11 @@ details.ai-quote {
8186
display: flex;
8287
justify-content: space-between;
8388
align-items: center;
89+
8490
span:first-child {
8591
margin-right: auto;
8692
}
93+
8794
span:nth-child(2) {
8895
font-size: var(--font-down-2);
8996
background: var(--primary-medium);
@@ -97,10 +104,12 @@ details.ai-quote {
97104
.d-modal__footer {
98105
position: relative;
99106
padding: 10px 20px 25px;
107+
100108
.btn-primary {
101109
margin-left: auto;
102110
}
103111
}
112+
104113
&__just-copied {
105114
position: absolute;
106115
font-size: var(--font-down-1);
@@ -116,6 +125,7 @@ span.onebox-ai-llm-title {
116125

117126
.d-modal.ai-debug-modal {
118127
--modal-max-width: 99%;
128+
119129
ul {
120130
padding-left: 1em;
121131
}

0 commit comments

Comments
 (0)