claude-dev-env 1.83.0 → 1.84.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.
- package/_shared/pr-loop/audit-contract.md +24 -12
- package/_shared/pr-loop/scripts/_claude_permissions_common.py +16 -5
- package/_shared/pr-loop/scripts/code_rules_gate.py +2 -3
- package/_shared/pr-loop/scripts/reviews_disabled.py +2 -0
- package/_shared/pr-loop/scripts/tests/test__claude_permissions_common.py +212 -0
- package/_shared/pr-loop/scripts/tests/test_agent_config_carveout.py +18 -0
- package/_shared/pr-loop/scripts/tests/test_claude_permissions_common.py +18 -0
- package/_shared/pr-loop/scripts/tests/test_code_rules_gate.py +37 -0
- package/_shared/pr-loop/scripts/tests/test_reviews_disabled.py +14 -0
- package/agents/clean-coder.md +3 -0
- package/audit-rubrics/category_rubrics/category-o-docstring-vs-impl-drift.md +1 -1
- package/bin/install.mjs +16 -8
- package/bin/install.test.mjs +17 -6
- package/commands/CLAUDE.md +0 -1
- package/docs/CODE_RULES.md +1 -1
- package/hooks/blocking/CLAUDE.md +0 -4
- package/hooks/blocking/code_rules_constants_config.py +5 -0
- package/hooks/blocking/code_rules_docstrings.py +116 -6
- package/hooks/blocking/code_rules_enforcer.py +4 -0
- package/hooks/blocking/code_rules_magic_values.py +5 -0
- package/hooks/blocking/code_rules_naming_collection.py +11 -6
- package/hooks/blocking/code_rules_shared.py +34 -0
- package/hooks/blocking/duplicate_rmtree_helper_blocker.py +4 -4
- package/hooks/blocking/test_code_rules_enforcer_docstring_prose_wall_illustration.py +197 -0
- package/hooks/blocking/test_code_rules_enforcer_docstring_runon_sentence.py +27 -0
- package/hooks/blocking/test_code_rules_enforcer_split_constants_config.py +33 -0
- package/hooks/blocking/test_code_rules_enforcer_split_shared.py +23 -0
- package/hooks/blocking/test_code_rules_magic_values.py +54 -0
- package/hooks/blocking/test_duplicate_rmtree_helper_blocker.py +0 -6
- package/hooks/blocking/test_pr_converge_bugteam_enforcer_state_tolerance.py +184 -0
- package/hooks/blocking/test_shared_stdin_adoption.py +5 -30
- package/hooks/hooks_constants/CLAUDE.md +0 -3
- package/hooks/hooks_constants/blocking_check_limits.py +3 -0
- package/hooks/hooks_constants/code_rules_path_utils_constants.py +1 -1
- package/hooks/hooks_constants/duplicate_rmtree_helper_blocker_constants.py +0 -1
- package/hooks/hooks_constants/post_tool_use_dispatcher_constants.py +0 -5
- package/hooks/validation/post_tool_use_dispatcher.py +1 -1
- package/hooks/validation/test_post_tool_use_dispatcher.py +51 -35
- package/hooks/workflow/CLAUDE.md +2 -8
- package/package.json +1 -1
- package/rules/CLAUDE.md +1 -1
- package/rules/plain-illustrative-docstrings.md +35 -1
- package/skills/CLAUDE.md +6 -1
- package/skills/autoconverge/SKILL.md +38 -57
- package/skills/autoconverge/reference/closing-report.md +6 -6
- package/skills/autoconverge/reference/convergence.md +17 -15
- package/skills/autoconverge/reference/gotchas.md +6 -3
- package/skills/autoconverge/workflow/autoconverge_report_constants/render_report_constants.py +2 -9
- package/skills/autoconverge/workflow/converge.contract.test.mjs +87 -13
- package/skills/autoconverge/workflow/converge.copilot-gate.test.mjs +1 -1
- package/skills/autoconverge/workflow/converge.merge-conflict.test.mjs +16 -9
- package/skills/autoconverge/workflow/converge.mjs +70 -73
- package/skills/autoconverge/workflow/render_report.py +7 -11
- package/skills/bugteam/CLAUDE.md +1 -1
- package/skills/bugteam/PROMPTS.md +7 -6
- package/skills/bugteam/SKILL.md +25 -72
- package/skills/bugteam/reference/CLAUDE.md +1 -3
- package/skills/bugteam/reference/README.md +1 -1
- package/skills/bugteam/reference/audit-and-teammates.md +1 -1
- package/skills/bugteam/reference/obstacles/fix-publish-summary.md +1 -1
- package/skills/bugteam/reference/team-setup.md +8 -7
- package/skills/bugteam/scripts/CLAUDE.md +0 -6
- package/skills/bugteam/scripts/README.md +0 -4
- package/skills/bugteam/scripts/bugteam_scripts_constants/CLAUDE.md +0 -1
- package/skills/code/SKILL.md +2 -0
- package/skills/copilot-review/CLAUDE.md +1 -1
- package/skills/copilot-review/SKILL.md +25 -23
- package/skills/findbugs/CLAUDE.md +2 -2
- package/skills/findbugs/SKILL.md +22 -83
- package/skills/fixbugs/SKILL.md +2 -4
- package/skills/log-audit/CLAUDE.md +20 -0
- package/skills/log-audit/SKILL.md +68 -0
- package/skills/log-audit/reference/CLAUDE.md +9 -0
- package/skills/log-audit/reference/charter.md +52 -0
- package/skills/log-audit/scripts/CLAUDE.md +27 -0
- package/skills/log-audit/scripts/cluster_recurrences.py +261 -0
- package/skills/log-audit/scripts/collect_log_window.py +199 -0
- package/skills/log-audit/scripts/log_audit_constants/CLAUDE.md +12 -0
- package/skills/log-audit/scripts/log_audit_constants/cluster_recurrences_constants.py +23 -0
- package/skills/log-audit/scripts/log_audit_constants/collect_log_window_constants.py +24 -0
- package/skills/log-audit/scripts/log_audit_constants/mine_copilot_findings_constants.py +49 -0
- package/skills/log-audit/scripts/mine_copilot_findings.py +302 -0
- package/skills/log-audit/scripts/test_cluster_recurrences.py +160 -0
- package/skills/log-audit/scripts/test_collect_log_window.py +111 -0
- package/skills/log-audit/scripts/test_mine_copilot_findings.py +126 -0
- package/skills/monitor-open-prs/SKILL.md +2 -2
- package/skills/post-audit-findings/SKILL.md +84 -0
- package/skills/pr-converge/CLAUDE.md +2 -0
- package/skills/pr-converge/SKILL.md +72 -59
- package/skills/pr-converge/reference/CLAUDE.md +1 -1
- package/skills/pr-converge/reference/convergence-gates.md +16 -19
- package/skills/pr-converge/reference/examples.md +5 -5
- package/skills/pr-converge/reference/fix-protocol.md +16 -43
- package/skills/pr-converge/reference/obstacles/fix-publish-summary.md +1 -1
- package/skills/pr-converge/reference/per-tick.md +24 -45
- package/skills/pr-converge/reference/state-schema.md +15 -0
- package/skills/pr-converge/scripts/README.md +3 -5
- package/skills/pr-fix-protocol/SKILL.md +70 -0
- package/skills/pr-loop-lifecycle/SKILL.md +73 -0
- package/skills/{bugteam → pr-loop-lifecycle}/reference/teardown-publish-permissions.md +22 -24
- package/skills/pr-scope-resolve/SKILL.md +48 -0
- package/skills/qbug/CLAUDE.md +4 -4
- package/skills/qbug/SKILL.md +46 -144
- package/skills/qbug/test_qbug_skill_audit_schema.py +2 -2
- package/skills/qbug/test_qbug_skill_post_fix_audit.py +1 -1
- package/skills/reviewer-gates/SKILL.md +96 -0
- package/skills/session-log/CLAUDE.md +7 -7
- package/skills/session-log/SKILL.md +27 -44
- package/skills/test_markdown_link_integrity.py +103 -0
- package/commands/doc-gist.md +0 -16
- package/hooks/blocking/_md_to_html_blocker_test_support.py +0 -65
- package/hooks/blocking/conftest.py +0 -30
- package/hooks/blocking/md_path_exemptions.py +0 -224
- package/hooks/blocking/md_to_html_blocker.py +0 -155
- package/hooks/blocking/test_md_to_html_blocker_exemptions.py +0 -434
- package/hooks/blocking/test_md_to_html_blocker_extensions.py +0 -157
- package/hooks/blocking/test_md_to_html_blocker_path_resolution.py +0 -336
- package/hooks/hooks_constants/doc_gist_auto_publish_constants.py +0 -18
- package/hooks/hooks_constants/html_companion_constants.py +0 -20
- package/hooks/hooks_constants/md_to_html_blocker_constants.py +0 -76
- package/hooks/hooks_constants/test_md_to_html_blocker_constants.py +0 -125
- package/hooks/workflow/doc_gist_auto_publish.py +0 -144
- package/hooks/workflow/md_to_html_companion.py +0 -358
- package/hooks/workflow/test_doc_gist_auto_publish.py +0 -117
- package/hooks/workflow/test_md_to_html_companion.py +0 -613
- package/skills/bugteam/reference/audit-contract.md +0 -163
- package/skills/bugteam/scripts/_bugteam_permissions_common.py +0 -455
- package/skills/bugteam/scripts/bugteam_scripts_constants/claude_permissions_common_constants.py +0 -69
- package/skills/bugteam/scripts/grant_project_claude_permissions.py +0 -280
- package/skills/bugteam/scripts/revoke_project_claude_permissions.py +0 -266
- package/skills/bugteam/scripts/test__bugteam_permissions_common.py +0 -160
- package/skills/bugteam/scripts/test_agent_config_carveout.py +0 -356
- package/skills/bugteam/scripts/test_bugteam_permissions_common.py +0 -140
- package/skills/doc-gist/CLAUDE.md +0 -25
- package/skills/doc-gist/SKILL.md +0 -97
- package/skills/doc-gist/references/CLAUDE.md +0 -9
- package/skills/doc-gist/references/examples/01-exploration-code-approaches.html +0 -453
- package/skills/doc-gist/references/examples/02-exploration-visual-designs.html +0 -515
- package/skills/doc-gist/references/examples/03-code-review-pr.html +0 -638
- package/skills/doc-gist/references/examples/04-code-understanding.html +0 -491
- package/skills/doc-gist/references/examples/05-design-system.html +0 -629
- package/skills/doc-gist/references/examples/06-component-variants.html +0 -605
- package/skills/doc-gist/references/examples/07-prototype-animation.html +0 -455
- package/skills/doc-gist/references/examples/08-prototype-interaction.html +0 -396
- package/skills/doc-gist/references/examples/09-slide-deck.html +0 -592
- package/skills/doc-gist/references/examples/10-svg-illustrations.html +0 -492
- package/skills/doc-gist/references/examples/11-status-report.html +0 -528
- package/skills/doc-gist/references/examples/12-incident-report.html +0 -596
- package/skills/doc-gist/references/examples/13-flowchart-diagram.html +0 -395
- package/skills/doc-gist/references/examples/14-research-feature-explainer.html +0 -381
- package/skills/doc-gist/references/examples/15-research-concept-explainer.html +0 -368
- package/skills/doc-gist/references/examples/16-implementation-plan.html +0 -702
- package/skills/doc-gist/references/examples/17-pr-writeup.html +0 -595
- package/skills/doc-gist/references/examples/18-editor-triage-board.html +0 -573
- package/skills/doc-gist/references/examples/19-editor-feature-flags.html +0 -663
- package/skills/doc-gist/references/examples/20-editor-prompt-tuner.html +0 -722
- package/skills/doc-gist/references/examples/21-decision-signoff.html +0 -546
- package/skills/doc-gist/references/examples/CLAUDE.md +0 -25
- package/skills/doc-gist/references/examples/README.md +0 -5
- package/skills/doc-gist/scripts/CLAUDE.md +0 -27
- package/skills/doc-gist/scripts/doc_gist_scripts_constants/CLAUDE.md +0 -10
- package/skills/doc-gist/scripts/doc_gist_scripts_constants/gist_upload_constants.py +0 -16
- package/skills/doc-gist/scripts/gist_upload.py +0 -177
- package/skills/doc-gist/scripts/test_gist_upload.py +0 -51
- /package/skills/{doc-gist/scripts/doc_gist_scripts_constants → log-audit/scripts/log_audit_constants}/__init__.py +0 -0
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>Birchline — Task completed micro-interaction</title>
|
|
7
|
-
<style>
|
|
8
|
-
:root {
|
|
9
|
-
--ivory: #FAF9F5;
|
|
10
|
-
--slate: #141413;
|
|
11
|
-
--clay: #D97757;
|
|
12
|
-
--oat: #E3DACC;
|
|
13
|
-
--olive: #788C5D;
|
|
14
|
-
--gray-50: #F0EEE6;
|
|
15
|
-
--gray-200: #D1CFC5;
|
|
16
|
-
--gray-500: #87867F;
|
|
17
|
-
--gray-800: #3D3D3A;
|
|
18
|
-
--white: #ffffff;
|
|
19
|
-
--serif: ui-serif, Georgia, "Times New Roman", serif;
|
|
20
|
-
--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
21
|
-
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
22
|
-
/* swapped at runtime by the easing panel */
|
|
23
|
-
--ease: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
24
|
-
}
|
|
25
|
-
* { box-sizing: border-box; }
|
|
26
|
-
html, body {
|
|
27
|
-
margin: 0;
|
|
28
|
-
background: var(--ivory);
|
|
29
|
-
color: var(--slate);
|
|
30
|
-
font-family: var(--sans);
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
line-height: 1.5;
|
|
33
|
-
}
|
|
34
|
-
.wrap {
|
|
35
|
-
max-width: 1080px;
|
|
36
|
-
margin: 0 auto;
|
|
37
|
-
padding: 48px 32px 64px;
|
|
38
|
-
}
|
|
39
|
-
header { margin-bottom: 28px; }
|
|
40
|
-
.eyebrow {
|
|
41
|
-
font-family: var(--mono);
|
|
42
|
-
font-size: 11px;
|
|
43
|
-
letter-spacing: 0.08em;
|
|
44
|
-
text-transform: uppercase;
|
|
45
|
-
color: var(--gray-500);
|
|
46
|
-
}
|
|
47
|
-
h1 {
|
|
48
|
-
font-family: var(--serif);
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
font-size: 30px;
|
|
51
|
-
letter-spacing: -0.01em;
|
|
52
|
-
margin: 6px 0 4px;
|
|
53
|
-
}
|
|
54
|
-
.sub {
|
|
55
|
-
color: var(--gray-500);
|
|
56
|
-
max-width: 560px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* ---------- layout ---------- */
|
|
60
|
-
.bench {
|
|
61
|
-
display: grid;
|
|
62
|
-
grid-template-columns: 1fr 240px;
|
|
63
|
-
gap: 24px;
|
|
64
|
-
align-items: start;
|
|
65
|
-
}
|
|
66
|
-
.stage {
|
|
67
|
-
background: var(--white);
|
|
68
|
-
border: 1.5px solid var(--gray-200);
|
|
69
|
-
border-radius: 12px;
|
|
70
|
-
height: 360px;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
position: relative;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
}
|
|
77
|
-
.hint {
|
|
78
|
-
position: absolute;
|
|
79
|
-
bottom: 14px;
|
|
80
|
-
left: 50%;
|
|
81
|
-
transform: translateX(-50%);
|
|
82
|
-
font-family: var(--mono);
|
|
83
|
-
font-size: 11px;
|
|
84
|
-
color: var(--gray-500);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* ---------- the task row ---------- */
|
|
88
|
-
.task {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: 14px;
|
|
92
|
-
padding: 14px 18px;
|
|
93
|
-
border: 1.5px solid var(--gray-200);
|
|
94
|
-
border-radius: 8px;
|
|
95
|
-
background: var(--white);
|
|
96
|
-
width: 360px;
|
|
97
|
-
max-height: 64px;
|
|
98
|
-
position: relative;
|
|
99
|
-
transition: max-height 280ms var(--ease) 600ms,
|
|
100
|
-
opacity 280ms var(--ease) 600ms,
|
|
101
|
-
padding 280ms var(--ease) 600ms,
|
|
102
|
-
border-color 200ms var(--ease);
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
user-select: none;
|
|
105
|
-
}
|
|
106
|
-
.task:hover { border-color: var(--gray-500); }
|
|
107
|
-
|
|
108
|
-
.check {
|
|
109
|
-
flex: none;
|
|
110
|
-
width: 24px;
|
|
111
|
-
height: 24px;
|
|
112
|
-
border-radius: 50%;
|
|
113
|
-
border: 1.5px solid var(--gray-500);
|
|
114
|
-
background: var(--white);
|
|
115
|
-
position: relative;
|
|
116
|
-
transition: background 180ms var(--ease),
|
|
117
|
-
border-color 180ms var(--ease),
|
|
118
|
-
transform 260ms var(--ease);
|
|
119
|
-
}
|
|
120
|
-
.check svg {
|
|
121
|
-
position: absolute;
|
|
122
|
-
inset: 0;
|
|
123
|
-
margin: auto;
|
|
124
|
-
width: 14px;
|
|
125
|
-
height: 14px;
|
|
126
|
-
}
|
|
127
|
-
.check path {
|
|
128
|
-
stroke: var(--white);
|
|
129
|
-
stroke-width: 2.5;
|
|
130
|
-
stroke-linecap: round;
|
|
131
|
-
stroke-linejoin: round;
|
|
132
|
-
fill: none;
|
|
133
|
-
stroke-dasharray: 20;
|
|
134
|
-
stroke-dashoffset: 20;
|
|
135
|
-
transition: stroke-dashoffset 220ms var(--ease) 80ms;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.label {
|
|
139
|
-
position: relative;
|
|
140
|
-
font-size: 15px;
|
|
141
|
-
color: var(--slate);
|
|
142
|
-
transition: color 200ms var(--ease) 120ms;
|
|
143
|
-
}
|
|
144
|
-
.label::after {
|
|
145
|
-
content: "";
|
|
146
|
-
position: absolute;
|
|
147
|
-
left: 0;
|
|
148
|
-
top: 52%;
|
|
149
|
-
height: 1.5px;
|
|
150
|
-
width: 0;
|
|
151
|
-
background: var(--gray-500);
|
|
152
|
-
transition: width 240ms var(--ease) 120ms;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.due {
|
|
156
|
-
margin-left: auto;
|
|
157
|
-
font-family: var(--mono);
|
|
158
|
-
font-size: 11px;
|
|
159
|
-
color: var(--gray-500);
|
|
160
|
-
background: var(--gray-50);
|
|
161
|
-
border: 1.5px solid var(--gray-200);
|
|
162
|
-
padding: 3px 8px;
|
|
163
|
-
border-radius: 8px;
|
|
164
|
-
transition: opacity 200ms var(--ease) 120ms;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* confetti — six particles, css-only, driven by .done on the row */
|
|
168
|
-
.confetti {
|
|
169
|
-
position: absolute;
|
|
170
|
-
left: 22px;
|
|
171
|
-
top: 50%;
|
|
172
|
-
width: 6px;
|
|
173
|
-
height: 6px;
|
|
174
|
-
border-radius: 2px;
|
|
175
|
-
opacity: 0;
|
|
176
|
-
pointer-events: none;
|
|
177
|
-
}
|
|
178
|
-
.confetti.c1 { background: var(--clay); }
|
|
179
|
-
.confetti.c2 { background: var(--olive); }
|
|
180
|
-
.confetti.c3 { background: var(--oat); }
|
|
181
|
-
.confetti.c4 { background: var(--clay); }
|
|
182
|
-
.confetti.c5 { background: var(--olive); }
|
|
183
|
-
.confetti.c6 { background: var(--gray-800); }
|
|
184
|
-
|
|
185
|
-
/* ---------- done state ---------- */
|
|
186
|
-
.task.done .check {
|
|
187
|
-
background: var(--olive);
|
|
188
|
-
border-color: var(--olive);
|
|
189
|
-
transform: scale(1.12);
|
|
190
|
-
animation: settle 380ms var(--ease) forwards;
|
|
191
|
-
}
|
|
192
|
-
@keyframes settle {
|
|
193
|
-
0% { transform: scale(0.8); background: var(--clay); border-color: var(--clay); }
|
|
194
|
-
55% { transform: scale(1.18); }
|
|
195
|
-
100% { transform: scale(1); background: var(--olive); border-color: var(--olive); }
|
|
196
|
-
}
|
|
197
|
-
.task.done .check path { stroke-dashoffset: 0; }
|
|
198
|
-
.task.done .label { color: var(--gray-500); }
|
|
199
|
-
.task.done .label::after { width: 100%; }
|
|
200
|
-
.task.done .due { opacity: 0.35; }
|
|
201
|
-
.task.done {
|
|
202
|
-
max-height: 44px;
|
|
203
|
-
padding-top: 8px;
|
|
204
|
-
padding-bottom: 8px;
|
|
205
|
-
opacity: 0.6;
|
|
206
|
-
}
|
|
207
|
-
.task.done .confetti { animation: pop 520ms var(--ease) 200ms forwards; }
|
|
208
|
-
.task.done .confetti.c1 { --dx: -28px; --dy: -22px; --rot: 40deg; }
|
|
209
|
-
.task.done .confetti.c2 { --dx: -6px; --dy: -34px; --rot: -60deg; }
|
|
210
|
-
.task.done .confetti.c3 { --dx: 18px; --dy: -26px; --rot: 90deg; }
|
|
211
|
-
.task.done .confetti.c4 { --dx: 30px; --dy: -4px; --rot: -30deg; }
|
|
212
|
-
.task.done .confetti.c5 { --dx: -24px; --dy: 14px; --rot: 20deg; }
|
|
213
|
-
.task.done .confetti.c6 { --dx: 12px; --dy: 22px; --rot: -80deg; }
|
|
214
|
-
@keyframes pop {
|
|
215
|
-
0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.6); }
|
|
216
|
-
15% { opacity: 1; }
|
|
217
|
-
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* ---------- easing panel ---------- */
|
|
221
|
-
.panel {
|
|
222
|
-
background: var(--white);
|
|
223
|
-
border: 1.5px solid var(--gray-200);
|
|
224
|
-
border-radius: 12px;
|
|
225
|
-
padding: 18px;
|
|
226
|
-
}
|
|
227
|
-
.panel h2 {
|
|
228
|
-
font-family: var(--serif);
|
|
229
|
-
font-weight: 500;
|
|
230
|
-
font-size: 16px;
|
|
231
|
-
margin: 0 0 4px;
|
|
232
|
-
}
|
|
233
|
-
.panel p {
|
|
234
|
-
margin: 0 0 14px;
|
|
235
|
-
font-size: 12px;
|
|
236
|
-
color: var(--gray-500);
|
|
237
|
-
}
|
|
238
|
-
.ease-btn {
|
|
239
|
-
display: block;
|
|
240
|
-
width: 100%;
|
|
241
|
-
text-align: left;
|
|
242
|
-
background: var(--gray-50);
|
|
243
|
-
border: 1.5px solid var(--gray-200);
|
|
244
|
-
border-radius: 8px;
|
|
245
|
-
padding: 10px 12px;
|
|
246
|
-
margin-bottom: 8px;
|
|
247
|
-
font-family: var(--sans);
|
|
248
|
-
font-size: 13px;
|
|
249
|
-
color: var(--slate);
|
|
250
|
-
cursor: pointer;
|
|
251
|
-
}
|
|
252
|
-
.ease-btn:hover { border-color: var(--gray-500); }
|
|
253
|
-
.ease-btn.active {
|
|
254
|
-
border-color: var(--clay);
|
|
255
|
-
background: #FBF1EC;
|
|
256
|
-
}
|
|
257
|
-
.ease-btn code {
|
|
258
|
-
display: block;
|
|
259
|
-
font-family: var(--mono);
|
|
260
|
-
font-size: 10px;
|
|
261
|
-
color: var(--gray-500);
|
|
262
|
-
margin-top: 2px;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/* ---------- timeline ---------- */
|
|
266
|
-
.timeline {
|
|
267
|
-
margin-top: 28px;
|
|
268
|
-
background: var(--white);
|
|
269
|
-
border: 1.5px solid var(--gray-200);
|
|
270
|
-
border-radius: 12px;
|
|
271
|
-
padding: 22px 22px 30px;
|
|
272
|
-
}
|
|
273
|
-
.timeline h2 {
|
|
274
|
-
font-family: var(--serif);
|
|
275
|
-
font-weight: 500;
|
|
276
|
-
font-size: 16px;
|
|
277
|
-
margin: 0 0 18px;
|
|
278
|
-
}
|
|
279
|
-
.track {
|
|
280
|
-
position: relative;
|
|
281
|
-
height: 2px;
|
|
282
|
-
background: var(--gray-200);
|
|
283
|
-
margin: 20px 8px 0;
|
|
284
|
-
}
|
|
285
|
-
.key {
|
|
286
|
-
position: absolute;
|
|
287
|
-
top: -5px;
|
|
288
|
-
width: 12px;
|
|
289
|
-
height: 12px;
|
|
290
|
-
border-radius: 50%;
|
|
291
|
-
background: var(--clay);
|
|
292
|
-
border: 1.5px solid var(--white);
|
|
293
|
-
box-shadow: 0 0 0 1.5px var(--clay);
|
|
294
|
-
transform: translateX(-50%);
|
|
295
|
-
}
|
|
296
|
-
.key span {
|
|
297
|
-
position: absolute;
|
|
298
|
-
top: 16px;
|
|
299
|
-
left: 50%;
|
|
300
|
-
transform: translateX(-50%);
|
|
301
|
-
white-space: nowrap;
|
|
302
|
-
font-family: var(--mono);
|
|
303
|
-
font-size: 10px;
|
|
304
|
-
color: var(--gray-800);
|
|
305
|
-
}
|
|
306
|
-
.key em {
|
|
307
|
-
position: absolute;
|
|
308
|
-
bottom: 16px;
|
|
309
|
-
left: 50%;
|
|
310
|
-
transform: translateX(-50%);
|
|
311
|
-
white-space: nowrap;
|
|
312
|
-
font-style: normal;
|
|
313
|
-
font-size: 11px;
|
|
314
|
-
color: var(--gray-500);
|
|
315
|
-
}
|
|
316
|
-
.k1 { left: 0%; }
|
|
317
|
-
.k2 { left: 13%; }
|
|
318
|
-
.k3 { left: 20%; }
|
|
319
|
-
.k4 { left: 33%; }
|
|
320
|
-
.k5 { left: 100%; background: var(--olive); box-shadow: 0 0 0 1.5px var(--olive); }
|
|
321
|
-
|
|
322
|
-
/* ---------- snippet ---------- */
|
|
323
|
-
.snippet {
|
|
324
|
-
margin-top: 28px;
|
|
325
|
-
}
|
|
326
|
-
.snippet h2 {
|
|
327
|
-
font-family: var(--serif);
|
|
328
|
-
font-weight: 500;
|
|
329
|
-
font-size: 16px;
|
|
330
|
-
margin: 0 0 10px;
|
|
331
|
-
}
|
|
332
|
-
pre {
|
|
333
|
-
background: var(--gray-800);
|
|
334
|
-
color: var(--gray-50);
|
|
335
|
-
border-radius: 12px;
|
|
336
|
-
padding: 18px 20px;
|
|
337
|
-
font-family: var(--mono);
|
|
338
|
-
font-size: 12px;
|
|
339
|
-
line-height: 1.7;
|
|
340
|
-
overflow-x: auto;
|
|
341
|
-
margin: 0;
|
|
342
|
-
}
|
|
343
|
-
pre .c { color: var(--gray-500); }
|
|
344
|
-
pre .k { color: var(--clay); }
|
|
345
|
-
pre .v { color: #B8C99D; }
|
|
346
|
-
</style>
|
|
347
|
-
</head>
|
|
348
|
-
<body>
|
|
349
|
-
<div class="wrap">
|
|
350
|
-
|
|
351
|
-
<header>
|
|
352
|
-
<div class="eyebrow">Birchline / prototype / micro-interaction</div>
|
|
353
|
-
<h1>Task completed</h1>
|
|
354
|
-
<p class="sub">
|
|
355
|
-
A single click should feel like a tiny win. Circle fills, check draws,
|
|
356
|
-
label strikes, a small burst, then the row quietly steps back. Click
|
|
357
|
-
the row to play; click again to reset.
|
|
358
|
-
</p>
|
|
359
|
-
</header>
|
|
360
|
-
|
|
361
|
-
<div class="bench">
|
|
362
|
-
|
|
363
|
-
<div class="stage">
|
|
364
|
-
<div class="task" id="task">
|
|
365
|
-
<div class="check">
|
|
366
|
-
<svg viewBox="0 0 16 16"><path d="M3 8.5 L6.5 12 L13 4.5"/></svg>
|
|
367
|
-
</div>
|
|
368
|
-
<span class="label">Send weekly digest</span>
|
|
369
|
-
<span class="due">Fri</span>
|
|
370
|
-
<div class="confetti c1"></div>
|
|
371
|
-
<div class="confetti c2"></div>
|
|
372
|
-
<div class="confetti c3"></div>
|
|
373
|
-
<div class="confetti c4"></div>
|
|
374
|
-
<div class="confetti c5"></div>
|
|
375
|
-
<div class="confetti c6"></div>
|
|
376
|
-
</div>
|
|
377
|
-
<div class="hint">click to toggle</div>
|
|
378
|
-
</div>
|
|
379
|
-
|
|
380
|
-
<aside class="panel">
|
|
381
|
-
<h2>Easing</h2>
|
|
382
|
-
<p>Swaps <code>--ease</code> across every transition so you can feel the difference.</p>
|
|
383
|
-
<button class="ease-btn" data-ease="linear">
|
|
384
|
-
Linear
|
|
385
|
-
<code>linear</code>
|
|
386
|
-
</button>
|
|
387
|
-
<button class="ease-btn" data-ease="cubic-bezier(0.16, 1, 0.3, 1)">
|
|
388
|
-
Ease-out
|
|
389
|
-
<code>cubic-bezier(.16, 1, .3, 1)</code>
|
|
390
|
-
</button>
|
|
391
|
-
<button class="ease-btn active" data-ease="cubic-bezier(0.34, 1.56, 0.64, 1)">
|
|
392
|
-
Spring
|
|
393
|
-
<code>cubic-bezier(.34, 1.56, .64, 1)</code>
|
|
394
|
-
</button>
|
|
395
|
-
</aside>
|
|
396
|
-
|
|
397
|
-
</div>
|
|
398
|
-
|
|
399
|
-
<section class="timeline">
|
|
400
|
-
<h2>Keyframes</h2>
|
|
401
|
-
<div class="track">
|
|
402
|
-
<div class="key k1"><em>fill</em><span>0ms</span></div>
|
|
403
|
-
<div class="key k2"><em>check</em><span>80ms</span></div>
|
|
404
|
-
<div class="key k3"><em>strike</em><span>120ms</span></div>
|
|
405
|
-
<div class="key k4"><em>confetti</em><span>200ms</span></div>
|
|
406
|
-
<div class="key k5"><em>collapse</em><span>600ms</span></div>
|
|
407
|
-
</div>
|
|
408
|
-
</section>
|
|
409
|
-
|
|
410
|
-
<section class="snippet">
|
|
411
|
-
<h2>Copy-paste CSS</h2>
|
|
412
|
-
<pre><span class="c">/* circle: clay flash, settle to olive with spring overshoot */</span>
|
|
413
|
-
<span class="k">.task.done .check</span> {
|
|
414
|
-
animation: settle 380ms <span class="v">cubic-bezier(.34,1.56,.64,1)</span> forwards;
|
|
415
|
-
}
|
|
416
|
-
<span class="k">@keyframes settle</span> {
|
|
417
|
-
0% { transform: scale(.8); background: <span class="v">#D97757</span>; }
|
|
418
|
-
55% { transform: scale(1.18); }
|
|
419
|
-
100% { transform: scale(1); background: <span class="v">#788C5D</span>; }
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
<span class="c">/* checkmark draws via stroke-dashoffset, 80ms delay */</span>
|
|
423
|
-
<span class="k">.check path</span> { stroke-dasharray: 20; stroke-dashoffset: 20;
|
|
424
|
-
transition: stroke-dashoffset 220ms var(--ease) 80ms; }
|
|
425
|
-
<span class="k">.task.done path</span> { stroke-dashoffset: 0; }
|
|
426
|
-
|
|
427
|
-
<span class="c">/* strikethrough grows left → right */</span>
|
|
428
|
-
<span class="k">.label::after</span> { width: 0; transition: width 240ms var(--ease) 120ms; }
|
|
429
|
-
<span class="k">.task.done .label::after</span> { width: 100%; }
|
|
430
|
-
|
|
431
|
-
<span class="c">/* row steps back after the celebration */</span>
|
|
432
|
-
<span class="k">.task.done</span> { max-height: 44px; opacity: .6;
|
|
433
|
-
transition-delay: 600ms; }</pre>
|
|
434
|
-
</section>
|
|
435
|
-
|
|
436
|
-
</div>
|
|
437
|
-
|
|
438
|
-
<script>
|
|
439
|
-
var task = document.getElementById('task');
|
|
440
|
-
task.addEventListener('click', function () {
|
|
441
|
-
task.classList.toggle('done');
|
|
442
|
-
});
|
|
443
|
-
|
|
444
|
-
var root = document.documentElement;
|
|
445
|
-
var buttons = document.querySelectorAll('.ease-btn');
|
|
446
|
-
buttons.forEach(function (btn) {
|
|
447
|
-
btn.addEventListener('click', function () {
|
|
448
|
-
buttons.forEach(function (b) { b.classList.remove('active'); });
|
|
449
|
-
btn.classList.add('active');
|
|
450
|
-
root.style.setProperty('--ease', btn.dataset.ease);
|
|
451
|
-
});
|
|
452
|
-
});
|
|
453
|
-
</script>
|
|
454
|
-
</body>
|
|
455
|
-
</html>
|