claude-dev-env 1.38.1 → 1.40.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/CLAUDE.md +10 -36
- package/_shared/pr-loop/audit-reply-template.md +147 -0
- package/_shared/pr-loop/fix-protocol.md +25 -4
- package/_shared/pr-loop/gh-payloads.md +37 -50
- package/_shared/pr-loop/scripts/code_rules_gate.py +0 -60
- package/_shared/pr-loop/scripts/config/post_audit_thread_constants.py +199 -0
- package/_shared/pr-loop/scripts/config/reviews_disabled_constants.py +8 -0
- package/_shared/pr-loop/scripts/post_audit_thread.py +1242 -0
- package/_shared/pr-loop/scripts/preflight.py +129 -2
- package/_shared/pr-loop/scripts/reviews_disabled.py +59 -0
- package/_shared/pr-loop/scripts/tests/test_code_rules_gate.py +0 -19
- package/_shared/pr-loop/scripts/tests/test_post_audit_thread.py +1116 -0
- package/_shared/pr-loop/scripts/tests/test_post_audit_thread_constants.py +127 -0
- package/_shared/pr-loop/scripts/tests/test_preflight.py +41 -0
- package/_shared/pr-loop/scripts/tests/test_reviews_disabled.py +36 -0
- package/_shared/pr-loop/state-schema.md +1 -1
- package/agents/clean-coder.md +2 -2
- package/agents/pr-description-writer.md +150 -52
- package/bin/install.mjs +6 -7
- package/bin/install.test.mjs +8 -0
- package/commands/doc-gist.md +16 -0
- package/commands/plan.md +0 -2
- package/commands/review-plan.md +1 -1
- package/docs/CODE_RULES.md +122 -2
- package/docs/PR_DESCRIPTION_GUIDE.md +127 -64
- package/hooks/blocking/bot_mention_comment_blocker.py +75 -0
- package/hooks/blocking/code_rules_enforcer.py +1143 -129
- package/hooks/blocking/convergence_gate_blocker.py +130 -0
- package/hooks/blocking/destructive_command_blocker.py +74 -0
- package/hooks/blocking/gh_body_arg_blocker.py +30 -0
- package/hooks/blocking/md_to_html_blocker.py +119 -0
- package/hooks/blocking/pr_description_enforcer.py +57 -22
- package/hooks/blocking/test_bot_mention_comment_blocker.py +131 -0
- package/hooks/blocking/test_code_rules_enforcer.py +21 -0
- package/hooks/blocking/test_code_rules_enforcer_any_exempt_files.py +70 -0
- package/hooks/blocking/test_code_rules_enforcer_any_imports_and_cast.py +92 -0
- package/hooks/blocking/test_code_rules_enforcer_banned_import_alias.py +143 -0
- package/hooks/blocking/test_code_rules_enforcer_banned_prefixes.py +152 -0
- package/hooks/blocking/test_code_rules_enforcer_bare_except.py +120 -0
- package/hooks/blocking/test_code_rules_enforcer_boundary_types.py +175 -0
- package/hooks/blocking/test_code_rules_enforcer_cap_meta.py +0 -1
- package/hooks/blocking/test_code_rules_enforcer_collection_prefix.py +50 -0
- package/hooks/blocking/test_code_rules_enforcer_docstring_format.py +255 -0
- package/hooks/blocking/test_code_rules_enforcer_inline_tuple_string_magic.py +130 -0
- package/hooks/blocking/test_code_rules_enforcer_stub_implementations.py +141 -0
- package/hooks/blocking/test_code_rules_enforcer_test_branching.py +143 -0
- package/hooks/blocking/test_code_rules_enforcer_thin_wrapper_files.py +169 -0
- package/hooks/blocking/test_code_rules_enforcer_todo_markers.py +99 -0
- package/hooks/blocking/test_code_rules_enforcer_typed_dict_pairs.py +141 -0
- package/hooks/blocking/test_convergence_gate_blocker.py +63 -0
- package/hooks/blocking/test_destructive_command_blocker.py +146 -0
- package/hooks/blocking/test_destructive_command_blocker_no_verify.py +102 -0
- package/hooks/blocking/test_gh_body_arg_blocker.py +45 -0
- package/hooks/blocking/test_md_to_html_blocker.py +317 -0
- package/hooks/blocking/test_pr_description_enforcer.py +69 -8
- package/hooks/config/any_type_config.py +7 -0
- package/hooks/config/banned_identifiers_constants.py +11 -0
- package/hooks/config/blocking_check_limits.py +38 -0
- package/hooks/config/bot_mention_comment_blocker_constants.py +20 -0
- package/hooks/config/code_rules_enforcer_constants.py +53 -0
- package/hooks/config/convergence_branch_constants.py +9 -0
- package/hooks/config/doc_gist_auto_publish_constants.py +18 -0
- package/hooks/config/html_companion_constants.py +20 -0
- package/hooks/config/inline_tuple_string_magic_constants.py +22 -0
- package/hooks/config/pr_description_enforcer_constants.py +14 -0
- package/hooks/config/test_banned_identifiers_constants.py +17 -0
- package/hooks/hooks.json +28 -20
- package/hooks/pyproject.toml +69 -0
- package/hooks/validators/mypy_integration.py +47 -1
- package/hooks/validators/run_all_validators.py +3 -3
- package/hooks/validators/test_mypy_integration.py +50 -1
- package/hooks/workflow/doc_gist_auto_publish.py +144 -0
- package/hooks/workflow/md_to_html_companion.py +365 -0
- package/hooks/workflow/test_doc_gist_auto_publish.py +117 -0
- package/hooks/workflow/test_md_to_html_companion.py +452 -0
- package/package.json +1 -1
- package/rules/gh-body-file.md +2 -0
- package/scripts/Install-SweepEmptyDirs.ps1 +111 -0
- package/scripts/check.ps1 +106 -0
- package/scripts/config/timing.py +11 -0
- package/scripts/sweep_empty_dirs.py +138 -0
- package/scripts/sync_to_cursor/rules.py +1 -1
- package/scripts/test_sweep_empty_dirs.py +183 -0
- package/skills/_shared/pr-loop/prompts/pr-consistency-audit.xml +323 -0
- package/skills/_shared/pr-loop/scripts/_cli_utils.py +22 -0
- package/skills/_shared/pr-loop/scripts/_path_resolver.py +165 -0
- package/skills/_shared/pr-loop/scripts/_xml_utils.py +20 -0
- package/skills/_shared/pr-loop/scripts/build_audit_prompt.py +182 -0
- package/skills/_shared/pr-loop/scripts/build_fix_prompt.py +185 -0
- package/skills/_shared/pr-loop/scripts/config/__init__.py +0 -0
- package/skills/_shared/pr-loop/scripts/config/path_resolver_constants.py +78 -0
- package/skills/_shared/pr-loop/scripts/init_loop_state.py +135 -0
- package/skills/_shared/pr-loop/scripts/teardown_worktrees.py +175 -0
- package/skills/_shared/pr-loop/scripts/write_audit_outcomes.py +182 -0
- package/skills/_shared/pr-loop/scripts/write_fix_outcomes.py +206 -0
- package/skills/bugteam/CONSTRAINTS.md +21 -22
- package/skills/bugteam/EXAMPLES.md +3 -3
- package/skills/bugteam/PROMPTS.md +227 -67
- package/skills/bugteam/SKILL.md +132 -455
- package/skills/bugteam/reference/README.md +1 -1
- package/skills/bugteam/reference/audit-and-teammates.md +112 -39
- package/skills/bugteam/reference/audit-contract.md +4 -22
- package/skills/bugteam/reference/copilot-gap-analysis.md +8 -5
- package/skills/bugteam/reference/design-rationale.md +2 -2
- package/skills/bugteam/reference/github-pr-reviews.md +50 -57
- package/skills/bugteam/reference/obstacles/audit-assign-ids.md +13 -0
- package/skills/bugteam/reference/obstacles/audit-capture-excerpts.md +13 -0
- package/skills/bugteam/reference/obstacles/audit-walk-categories.md +13 -0
- package/skills/bugteam/reference/obstacles/audit-write-xml.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-append-summary.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-apply-fixes.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-git-add-commit.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-git-push.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-post-reply.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-publish-summary.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-py-compile.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-read-files.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-resolve-thread.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-test-suite.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-violation-count.md +13 -0
- package/skills/bugteam/reference/obstacles/fix-write-xml.md +13 -0
- package/skills/bugteam/reference/team-setup.md +111 -9
- package/skills/bugteam/reference/teardown-publish-permissions.md +39 -8
- package/skills/bugteam/scripts/README.md +60 -0
- package/skills/bugteam/scripts/_claude_permissions_common.py +358 -0
- package/skills/bugteam/scripts/bugteam_code_rules_gate.py +976 -0
- package/skills/bugteam/scripts/bugteam_fix_hookspath.py +375 -0
- package/skills/bugteam/scripts/bugteam_preflight.py +328 -0
- package/skills/bugteam/scripts/config/bugteam_code_rules_gate_constants.py +25 -0
- package/skills/bugteam/scripts/config/bugteam_fix_hookspath_constants.py +26 -0
- package/skills/bugteam/scripts/config/bugteam_preflight_constants.py +35 -0
- package/skills/bugteam/scripts/config/claude_permissions_common_constants.py +20 -0
- package/skills/bugteam/scripts/config/probe_code_rules_enforcer_check_constants.py +12 -0
- package/skills/bugteam/scripts/config/windows_safe_rmtree_constants.py +7 -0
- package/skills/bugteam/scripts/grant_project_claude_permissions.py +175 -0
- package/skills/bugteam/scripts/probe_code_rules_enforcer_check.py +107 -0
- package/skills/bugteam/scripts/revoke_project_claude_permissions.py +220 -0
- package/skills/bugteam/scripts/test__claude_permissions_common.py +112 -0
- package/skills/bugteam/scripts/test_bugteam_code_rules_gate.py +400 -0
- package/skills/bugteam/scripts/test_bugteam_fix_hookspath.py +384 -0
- package/skills/bugteam/scripts/test_bugteam_preflight.py +309 -0
- package/skills/bugteam/scripts/test_claude_permissions_common.py +195 -0
- package/skills/bugteam/scripts/test_grant_project_claude_permissions.py +55 -0
- package/skills/bugteam/scripts/test_probe_code_rules_enforcer_check.py +76 -0
- package/skills/bugteam/scripts/test_revoke_project_claude_permissions.py +55 -0
- package/skills/bugteam/scripts/test_windows_safe_rmtree.py +108 -0
- package/skills/bugteam/scripts/windows_safe_rmtree.py +100 -0
- package/skills/bugteam/test_skill_additions.py +1 -11
- package/skills/code/SKILL.md +176 -0
- package/skills/copilot-review/SKILL.md +16 -0
- package/skills/doc-gist/SKILL.md +99 -0
- package/skills/doc-gist/references/examples/01-exploration-code-approaches.html +453 -0
- package/skills/doc-gist/references/examples/02-exploration-visual-designs.html +515 -0
- package/skills/doc-gist/references/examples/03-code-review-pr.html +638 -0
- package/skills/doc-gist/references/examples/04-code-understanding.html +491 -0
- package/skills/doc-gist/references/examples/05-design-system.html +629 -0
- package/skills/doc-gist/references/examples/06-component-variants.html +605 -0
- package/skills/doc-gist/references/examples/07-prototype-animation.html +455 -0
- package/skills/doc-gist/references/examples/08-prototype-interaction.html +396 -0
- package/skills/doc-gist/references/examples/09-slide-deck.html +592 -0
- package/skills/doc-gist/references/examples/10-svg-illustrations.html +492 -0
- package/skills/doc-gist/references/examples/11-status-report.html +528 -0
- package/skills/doc-gist/references/examples/12-incident-report.html +596 -0
- package/skills/doc-gist/references/examples/13-flowchart-diagram.html +395 -0
- package/skills/doc-gist/references/examples/14-research-feature-explainer.html +381 -0
- package/skills/doc-gist/references/examples/15-research-concept-explainer.html +368 -0
- package/skills/doc-gist/references/examples/16-implementation-plan.html +702 -0
- package/skills/doc-gist/references/examples/17-pr-writeup.html +595 -0
- package/skills/doc-gist/references/examples/18-editor-triage-board.html +573 -0
- package/skills/doc-gist/references/examples/19-editor-feature-flags.html +663 -0
- package/skills/doc-gist/references/examples/20-editor-prompt-tuner.html +722 -0
- package/skills/doc-gist/references/examples/README.md +5 -0
- package/skills/doc-gist/scripts/config/__init__.py +0 -0
- package/skills/doc-gist/scripts/config/gist_upload_constants.py +16 -0
- package/skills/doc-gist/scripts/gist_upload.py +177 -0
- package/skills/doc-gist/scripts/test_gist_upload.py +51 -0
- package/skills/findbugs/SKILL.md +96 -2
- package/skills/monitor-open-prs/SKILL.md +14 -32
- package/skills/monitor-open-prs/test_skill_contract.py +0 -11
- package/skills/pr-consistency-audit/SKILL.md +112 -0
- package/skills/pr-consistency-audit/reference/detection-rules.md +96 -0
- package/skills/pr-consistency-audit/reference/illustrations.md +78 -0
- package/skills/pr-converge/SKILL.md +229 -23
- package/skills/pr-converge/config/__init__.py +0 -0
- package/skills/pr-converge/config/constants.py +63 -0
- package/skills/pr-converge/reference/convergence-gates.md +138 -44
- package/skills/pr-converge/reference/examples.md +43 -11
- package/skills/pr-converge/reference/fix-protocol.md +6 -5
- package/skills/pr-converge/reference/ground-rules.md +5 -3
- package/skills/pr-converge/reference/multi-pr-orchestration.md +44 -19
- package/skills/pr-converge/reference/obstacles/fix-post-replies.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-publish-summary.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-push.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-read-filelines.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-reset-state.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-resolve-threads.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-spawn-clean-coder.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-stage-commit.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-trigger-bugbot.md +13 -0
- package/skills/pr-converge/reference/obstacles/fix-write-test.md +13 -0
- package/skills/pr-converge/reference/per-tick.md +107 -31
- package/skills/pr-converge/reference/state-schema.md +22 -1
- package/skills/pr-converge/reference/stop-conditions.md +9 -7
- package/skills/pr-converge/scripts/README.md +34 -46
- package/skills/pr-converge/scripts/check_bugbot_ci.py +279 -0
- package/skills/pr-converge/scripts/check_convergence.py +497 -0
- package/skills/pr-converge/scripts/check_pending_reviews.py +154 -0
- package/skills/pr-converge/scripts/config/pr_converge_constants.py +118 -0
- package/skills/pr-converge/scripts/fetch_copilot_reviews.py +134 -0
- package/skills/pr-converge/scripts/post_fix_reply.py +168 -0
- package/skills/pr-converge/scripts/test_check_bugbot_ci.py +312 -0
- package/skills/pr-converge/workflows/schedule-wakeup-loop.md +5 -12
- package/skills/qbug/SKILL.md +157 -27
- package/skills/session-log/SKILL.md +216 -114
- package/skills/session-tidy/SKILL.md +1 -1
- package/skills/skill-builder/SKILL.md +138 -56
- package/skills/skill-builder/references/delegation-map.md +72 -113
- package/skills/skill-builder/references/progressive-disclosure.md +122 -0
- package/skills/skill-builder/references/self-audit-checklist.md +92 -0
- package/skills/skill-builder/references/skill-types.md +228 -0
- package/skills/skill-builder/references/thariq-x-post-skills.json +33 -0
- package/skills/skill-builder/templates/gap-analysis.md +15 -8
- package/skills/skill-builder/workflows/improve-skill.md +86 -57
- package/skills/skill-builder/workflows/new-skill.md +80 -168
- package/skills/skill-builder/workflows/polish-skill.md +78 -54
- package/skills/structure-prompt/SKILL.md +50 -0
- package/skills/structure-prompt/reference/adversarial-tuning.md +62 -0
- package/skills/structure-prompt/reference/block-classification.md +27 -0
- package/skills/structure-prompt/reference/canonical-case.md +48 -0
- package/skills/structure-prompt/reference/citation-depth.md +70 -0
- package/skills/structure-prompt/reference/cleanup.md +33 -0
- package/skills/structure-prompt/reference/constraints.md +33 -0
- package/skills/structure-prompt/reference/directives.md +37 -0
- package/skills/structure-prompt/reference/examples.md +72 -0
- package/skills/structure-prompt/reference/instantiation.md +51 -0
- package/skills/structure-prompt/reference/output-contract.md +72 -0
- package/skills/structure-prompt/reference/per-category.md +23 -0
- package/skills/structure-prompt/reference/persona.md +38 -0
- package/skills/structure-prompt/reference/research.md +33 -0
- package/skills/structure-prompt/reference/structure.md +28 -0
- package/agents/code-standards-agent.md +0 -93
- package/agents/groq-coder.md +0 -113
- package/agents/plan-executor.md +0 -226
- package/agents/project-docs-analyzer.md +0 -53
- package/agents/project-structure-organizer-agent.md +0 -72
- package/agents/skill-to-agent-converter.md +0 -370
- package/agents/skill-writer-agent.md +0 -470
- package/agents/user-docs-writer.md +0 -67
- package/agents/workflow-visual-documenter.md +0 -82
- package/commands/readability-review.md +0 -20
- package/hooks/mypy.ini +0 -2
- package/hooks/notification/attention_needed_notify.py +0 -71
- package/hooks/notification/claude_notification_handler.py +0 -67
- package/hooks/notification/notification_utils.py +0 -267
- package/hooks/notification/subagent_complete_notify.py +0 -381
- package/hooks/notification/test_attention_needed_notify.py +0 -47
- package/hooks/notification/test_claude_notification_handler.py +0 -54
- package/hooks/notification/test_notification_utils.py +0 -91
- package/hooks/notification/test_subagent_complete_notify.py +0 -79
- package/scripts/config/groq_bugteam_config.py +0 -230
- package/scripts/config/test_groq_bugteam_config.py +0 -83
- package/scripts/config/test_spec_implementer_prompt.py +0 -32
- package/scripts/groq_bugteam.README.md +0 -131
- package/scripts/groq_bugteam.py +0 -647
- package/scripts/groq_bugteam_dotenv.py +0 -40
- package/scripts/groq_bugteam_spec.py +0 -226
- package/scripts/test_groq_bugteam.py +0 -529
- package/scripts/test_groq_bugteam_apply_fix_from_spec.py +0 -426
- package/scripts/test_groq_bugteam_dotenv.py +0 -66
- package/scripts/test_groq_bugteam_spec.py +0 -338
- package/skills/bugteam/SKILL_EVALS.md +0 -309
- package/skills/dream/SKILL.md +0 -118
- package/skills/ingest/SKILL.md +0 -40
- package/skills/npm-creator/SKILL.md +0 -187
- package/skills/readability-review/SKILL.md +0 -127
- package/skills/resume-review/SKILL.md +0 -261
- package/skills/rule-audit/SKILL.md +0 -307
- package/skills/rule-creator/SKILL.md +0 -150
- package/skills/searching-obsidian-vault/SKILL.md +0 -131
- package/skills/skill-writer/REFERENCE.md +0 -284
- package/skills/skill-writer/SKILL.md +0 -222
- package/skills/tdd-team/SKILL.md +0 -128
|
@@ -0,0 +1,573 @@
|
|
|
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 — Cycle 14 triage</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--ivory: #FAF9F5;
|
|
10
|
+
--slate: #141413;
|
|
11
|
+
--clay: #D97757;
|
|
12
|
+
--clay-d: #B85C3E;
|
|
13
|
+
--oat: #E3DACC;
|
|
14
|
+
--olive: #788C5D;
|
|
15
|
+
--gray-50: #F0EEE6;
|
|
16
|
+
--gray-200: #D1CFC5;
|
|
17
|
+
--gray-500: #87867F;
|
|
18
|
+
--gray-800: #3D3D3A;
|
|
19
|
+
--white: #ffffff;
|
|
20
|
+
--serif: ui-serif, Georgia, "Times New Roman", serif;
|
|
21
|
+
--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
22
|
+
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
23
|
+
}
|
|
24
|
+
* { box-sizing: border-box; }
|
|
25
|
+
html, body {
|
|
26
|
+
margin: 0;
|
|
27
|
+
background: var(--ivory);
|
|
28
|
+
color: var(--slate);
|
|
29
|
+
font-family: var(--sans);
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
line-height: 1.5;
|
|
32
|
+
}
|
|
33
|
+
.wrap {
|
|
34
|
+
max-width: 1180px;
|
|
35
|
+
margin: 0 auto;
|
|
36
|
+
padding: 48px 32px 64px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ---------- header ---------- */
|
|
40
|
+
header { margin-bottom: 22px; }
|
|
41
|
+
.eyebrow {
|
|
42
|
+
font-family: var(--mono);
|
|
43
|
+
font-size: 11px;
|
|
44
|
+
letter-spacing: 0.08em;
|
|
45
|
+
text-transform: uppercase;
|
|
46
|
+
color: var(--gray-500);
|
|
47
|
+
}
|
|
48
|
+
h1 {
|
|
49
|
+
font-family: var(--serif);
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
font-size: 30px;
|
|
52
|
+
letter-spacing: -0.01em;
|
|
53
|
+
margin: 6px 0 4px;
|
|
54
|
+
}
|
|
55
|
+
.sub {
|
|
56
|
+
color: var(--gray-500);
|
|
57
|
+
max-width: 620px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
.hintline {
|
|
61
|
+
font-family: var(--mono);
|
|
62
|
+
font-size: 11px;
|
|
63
|
+
color: var(--gray-500);
|
|
64
|
+
margin-top: 10px;
|
|
65
|
+
}
|
|
66
|
+
.hintline::before {
|
|
67
|
+
content: "›";
|
|
68
|
+
color: var(--clay);
|
|
69
|
+
margin-right: 6px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ---------- toolbar ---------- */
|
|
73
|
+
.toolbar {
|
|
74
|
+
position: sticky;
|
|
75
|
+
top: 0;
|
|
76
|
+
z-index: 5;
|
|
77
|
+
background: var(--ivory);
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 14px;
|
|
81
|
+
padding: 14px 0 12px;
|
|
82
|
+
margin-bottom: 14px;
|
|
83
|
+
border-bottom: 1.5px solid var(--gray-200);
|
|
84
|
+
}
|
|
85
|
+
.summary {
|
|
86
|
+
font-family: var(--mono);
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
color: var(--gray-800);
|
|
89
|
+
letter-spacing: 0.01em;
|
|
90
|
+
}
|
|
91
|
+
.summary b { color: var(--slate); font-weight: 600; }
|
|
92
|
+
.summary .dot { color: var(--gray-200); margin: 0 4px; }
|
|
93
|
+
.spacer { flex: 1; }
|
|
94
|
+
.filter-active {
|
|
95
|
+
font-family: var(--mono);
|
|
96
|
+
font-size: 11px;
|
|
97
|
+
color: var(--clay-d);
|
|
98
|
+
background: #F5E6DE;
|
|
99
|
+
border: 1.5px solid #E8C9BA;
|
|
100
|
+
border-radius: 999px;
|
|
101
|
+
padding: 4px 10px;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
.filter-active.on { display: inline-block; }
|
|
106
|
+
.filter-active:hover { border-color: var(--clay); }
|
|
107
|
+
button.primary {
|
|
108
|
+
background: var(--slate);
|
|
109
|
+
color: var(--ivory);
|
|
110
|
+
border: 1.5px solid var(--slate);
|
|
111
|
+
border-radius: 999px;
|
|
112
|
+
font-family: var(--mono);
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
padding: 9px 16px;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
letter-spacing: 0.01em;
|
|
117
|
+
}
|
|
118
|
+
button.primary:hover { background: var(--gray-800); }
|
|
119
|
+
button.primary.copied { background: var(--olive); border-color: var(--olive); }
|
|
120
|
+
button.ghost {
|
|
121
|
+
background: transparent;
|
|
122
|
+
color: var(--gray-800);
|
|
123
|
+
border: 1.5px solid var(--gray-200);
|
|
124
|
+
border-radius: 999px;
|
|
125
|
+
font-family: var(--mono);
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
padding: 9px 16px;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
button.ghost:hover { border-color: var(--gray-500); }
|
|
131
|
+
|
|
132
|
+
/* ---------- board ---------- */
|
|
133
|
+
.board {
|
|
134
|
+
display: grid;
|
|
135
|
+
grid-template-columns: repeat(4, 1fr);
|
|
136
|
+
gap: 16px;
|
|
137
|
+
align-items: start;
|
|
138
|
+
}
|
|
139
|
+
.col {
|
|
140
|
+
background: var(--white);
|
|
141
|
+
border: 1.5px solid var(--gray-200);
|
|
142
|
+
border-radius: 12px;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
min-height: 200px;
|
|
147
|
+
}
|
|
148
|
+
.col[data-col="now"] { border-top: 3px solid var(--clay); }
|
|
149
|
+
.col[data-col="next"] { border-top: 3px solid var(--olive); }
|
|
150
|
+
.col[data-col="later"] { border-top: 3px solid var(--gray-500); }
|
|
151
|
+
.col[data-col="cut"] { border-top: 3px solid var(--gray-200); }
|
|
152
|
+
.col.dragover {
|
|
153
|
+
outline: 2px dashed var(--clay);
|
|
154
|
+
outline-offset: -6px;
|
|
155
|
+
background: #FBF6F2;
|
|
156
|
+
}
|
|
157
|
+
.col-head {
|
|
158
|
+
position: sticky;
|
|
159
|
+
top: 0;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
background: var(--white);
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: baseline;
|
|
164
|
+
gap: 8px;
|
|
165
|
+
padding: 14px 14px 10px;
|
|
166
|
+
border-bottom: 1.5px solid var(--gray-50);
|
|
167
|
+
}
|
|
168
|
+
.col-head h2 {
|
|
169
|
+
font-family: var(--serif);
|
|
170
|
+
font-weight: 500;
|
|
171
|
+
font-size: 17px;
|
|
172
|
+
margin: 0;
|
|
173
|
+
letter-spacing: -0.01em;
|
|
174
|
+
}
|
|
175
|
+
.col-head .count {
|
|
176
|
+
margin-left: auto;
|
|
177
|
+
font-family: var(--mono);
|
|
178
|
+
font-size: 11px;
|
|
179
|
+
color: var(--gray-500);
|
|
180
|
+
background: var(--gray-50);
|
|
181
|
+
border: 1.5px solid var(--gray-200);
|
|
182
|
+
border-radius: 999px;
|
|
183
|
+
padding: 1px 8px;
|
|
184
|
+
min-width: 26px;
|
|
185
|
+
text-align: center;
|
|
186
|
+
}
|
|
187
|
+
.col-body {
|
|
188
|
+
padding: 10px 10px 6px;
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
gap: 8px;
|
|
192
|
+
flex: 1;
|
|
193
|
+
min-height: 60px;
|
|
194
|
+
}
|
|
195
|
+
.col-foot {
|
|
196
|
+
border-top: 1.5px solid var(--gray-50);
|
|
197
|
+
padding: 8px 14px 12px;
|
|
198
|
+
font-family: var(--mono);
|
|
199
|
+
font-size: 11px;
|
|
200
|
+
color: var(--gray-500);
|
|
201
|
+
display: flex;
|
|
202
|
+
justify-content: space-between;
|
|
203
|
+
}
|
|
204
|
+
.col-foot b { color: var(--gray-800); font-weight: 600; }
|
|
205
|
+
|
|
206
|
+
/* ---------- ticket card ---------- */
|
|
207
|
+
.ticket {
|
|
208
|
+
background: var(--white);
|
|
209
|
+
border: 1.5px solid var(--gray-200);
|
|
210
|
+
border-radius: 8px;
|
|
211
|
+
padding: 10px 11px 9px;
|
|
212
|
+
cursor: grab;
|
|
213
|
+
user-select: none;
|
|
214
|
+
transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
|
|
215
|
+
}
|
|
216
|
+
.ticket:hover { border-color: var(--gray-500); box-shadow: 0 1px 3px rgba(20,20,19,0.06); }
|
|
217
|
+
.ticket:active { cursor: grabbing; }
|
|
218
|
+
.ticket.dragging { opacity: .4; }
|
|
219
|
+
.ticket.dim { opacity: .25; }
|
|
220
|
+
.ticket-top {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
gap: 8px;
|
|
224
|
+
margin-bottom: 5px;
|
|
225
|
+
}
|
|
226
|
+
.tid {
|
|
227
|
+
font-family: var(--mono);
|
|
228
|
+
font-size: 11px;
|
|
229
|
+
color: var(--gray-500);
|
|
230
|
+
letter-spacing: 0.01em;
|
|
231
|
+
}
|
|
232
|
+
.tag {
|
|
233
|
+
font-family: var(--mono);
|
|
234
|
+
font-size: 10px;
|
|
235
|
+
text-transform: uppercase;
|
|
236
|
+
letter-spacing: 0.05em;
|
|
237
|
+
border-radius: 999px;
|
|
238
|
+
padding: 1px 7px 2px;
|
|
239
|
+
border: 1px solid transparent;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
}
|
|
242
|
+
.tag:hover { filter: brightness(0.96); }
|
|
243
|
+
.tag-bug { background: #F5E2D8; color: var(--clay-d); border-color: #E8C9BA; }
|
|
244
|
+
.tag-feat { background: #E8EDE0; color: #5C6F44; border-color: #CFDAC0; }
|
|
245
|
+
.tag-chore { background: var(--gray-50); color: var(--gray-800); border-color: var(--gray-200); }
|
|
246
|
+
.tag-debt { background: var(--gray-50); color: var(--gray-800); border-color: var(--gray-200); }
|
|
247
|
+
.est {
|
|
248
|
+
margin-left: auto;
|
|
249
|
+
font-family: var(--mono);
|
|
250
|
+
font-size: 10px;
|
|
251
|
+
color: var(--gray-500);
|
|
252
|
+
border: 1.5px solid var(--gray-200);
|
|
253
|
+
border-radius: 4px;
|
|
254
|
+
width: 18px;
|
|
255
|
+
height: 18px;
|
|
256
|
+
display: flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
justify-content: center;
|
|
259
|
+
}
|
|
260
|
+
.ttitle {
|
|
261
|
+
font-size: 13px;
|
|
262
|
+
line-height: 1.35;
|
|
263
|
+
color: var(--slate);
|
|
264
|
+
margin-bottom: 7px;
|
|
265
|
+
}
|
|
266
|
+
.ticket-bot {
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
gap: 6px;
|
|
270
|
+
}
|
|
271
|
+
.owner {
|
|
272
|
+
font-family: var(--mono);
|
|
273
|
+
font-size: 10px;
|
|
274
|
+
width: 20px;
|
|
275
|
+
height: 20px;
|
|
276
|
+
border-radius: 50%;
|
|
277
|
+
background: var(--oat);
|
|
278
|
+
color: var(--gray-800);
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
justify-content: center;
|
|
282
|
+
letter-spacing: 0.02em;
|
|
283
|
+
}
|
|
284
|
+
.owner.o2 { background: #DCE4D2; }
|
|
285
|
+
.owner.o3 { background: #ECD9CE; }
|
|
286
|
+
.owner.o4 { background: var(--gray-50); }
|
|
287
|
+
|
|
288
|
+
@media (max-width: 920px) {
|
|
289
|
+
.board { grid-template-columns: repeat(2, 1fr); }
|
|
290
|
+
}
|
|
291
|
+
</style>
|
|
292
|
+
</head>
|
|
293
|
+
<body>
|
|
294
|
+
<div class="wrap">
|
|
295
|
+
|
|
296
|
+
<header>
|
|
297
|
+
<div class="eyebrow">Birchline / editor / triage</div>
|
|
298
|
+
<h1>Cycle 14 triage</h1>
|
|
299
|
+
<p class="sub">
|
|
300
|
+
Twenty-four open Linear tickets, pre-sorted into a best guess. Drag them
|
|
301
|
+
across Now / Next / Later / Cut until the cut feels right, then copy the
|
|
302
|
+
result back into the planning doc as markdown.
|
|
303
|
+
</p>
|
|
304
|
+
<div class="hintline">drag tickets between columns · click a tag to filter</div>
|
|
305
|
+
</header>
|
|
306
|
+
|
|
307
|
+
<div class="toolbar">
|
|
308
|
+
<div class="summary" id="summary"></div>
|
|
309
|
+
<div class="spacer"></div>
|
|
310
|
+
<button class="filter-active" id="filterBadge"></button>
|
|
311
|
+
<button class="ghost" id="resetBtn">Reset</button>
|
|
312
|
+
<button class="primary" id="copyBtn">Copy as markdown</button>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div class="board" id="board"></div>
|
|
316
|
+
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
<script>
|
|
320
|
+
// ---------- data ----------
|
|
321
|
+
var COLUMNS = [
|
|
322
|
+
{ key: 'now', label: 'Now', rationale: 'Blocking the v2.4 release or actively losing user data.' },
|
|
323
|
+
{ key: 'next', label: 'Next', rationale: 'High-leverage and well-scoped — start the moment Now clears.' },
|
|
324
|
+
{ key: 'later', label: 'Later', rationale: 'Real, but can ride to a future cycle without anyone noticing.' },
|
|
325
|
+
{ key: 'cut', label: 'Cut', rationale: 'Not this quarter — close, dedupe, or push back to the requester.' }
|
|
326
|
+
];
|
|
327
|
+
|
|
328
|
+
var EST_PTS = { S: 1, M: 2, L: 3 };
|
|
329
|
+
|
|
330
|
+
// tag, est, owner, col
|
|
331
|
+
var INITIAL = [
|
|
332
|
+
{ id: 'BIR-241', title: 'Fix sync conflict toast firing twice on reconnect', tag: 'bug', est: 'M', owner: 'AK', col: 'now' },
|
|
333
|
+
{ id: 'BIR-238', title: 'Comments lost when editing offline then reloading', tag: 'bug', est: 'L', owner: 'JM', col: 'now' },
|
|
334
|
+
{ id: 'BIR-252', title: 'Billing webhook 500s on annual → monthly downgrade', tag: 'bug', est: 'M', owner: 'RS', col: 'now' },
|
|
335
|
+
{ id: 'BIR-219', title: 'Migrate workspace permissions to new ACL table', tag: 'debt', est: 'L', owner: 'AK', col: 'now' },
|
|
336
|
+
{ id: 'BIR-260', title: 'SSO login loop on Safari 17 with strict cookies', tag: 'bug', est: 'S', owner: 'TN', col: 'now' },
|
|
337
|
+
|
|
338
|
+
{ id: 'BIR-244', title: 'Inline @-mention picker in doc comments', tag: 'feat', est: 'M', owner: 'JM', col: 'next' },
|
|
339
|
+
{ id: 'BIR-231', title: 'Bulk-archive completed projects from the sidebar', tag: 'feat', est: 'S', owner: 'EL', col: 'next' },
|
|
340
|
+
{ id: 'BIR-247', title: 'Activity feed: collapse repeated edit events', tag: 'feat', est: 'M', owner: 'TN', col: 'next' },
|
|
341
|
+
{ id: 'BIR-228', title: 'Notification preferences per project', tag: 'feat', est: 'L', owner: 'EL', col: 'next' },
|
|
342
|
+
{ id: 'BIR-255', title: 'Keyboard shortcut cheat-sheet overlay (⌘/)', tag: 'feat', est: 'S', owner: 'RS', col: 'next' },
|
|
343
|
+
{ id: 'BIR-236', title: 'Empty-state illustrations for new workspaces', tag: 'chore', est: 'S', owner: 'EL', col: 'next' },
|
|
344
|
+
{ id: 'BIR-249', title: 'Audit log export to CSV for admins', tag: 'feat', est: 'M', owner: 'AK', col: 'next' },
|
|
345
|
+
|
|
346
|
+
{ id: 'BIR-213', title: 'Dark mode pass on settings + billing pages', tag: 'chore', est: 'M', owner: 'EL', col: 'later' },
|
|
347
|
+
{ id: 'BIR-258', title: 'Slack integration: post on milestone close', tag: 'feat', est: 'M', owner: 'RS', col: 'later' },
|
|
348
|
+
{ id: 'BIR-221', title: 'Replace moment.js with date-fns across web', tag: 'debt', est: 'L', owner: 'TN', col: 'later' },
|
|
349
|
+
{ id: 'BIR-263', title: 'Drag-to-reorder columns on the board view', tag: 'feat', est: 'M', owner: 'JM', col: 'later' },
|
|
350
|
+
{ id: 'BIR-209', title: 'Upgrade Postgres minor + reindex search vectors', tag: 'chore', est: 'M', owner: 'AK', col: 'later' },
|
|
351
|
+
{ id: 'BIR-251', title: 'Per-doc read receipts in the share dialog', tag: 'feat', est: 'L', owner: 'JM', col: 'later' },
|
|
352
|
+
{ id: 'BIR-240', title: 'Onboarding checklist resurfaces after dismissal', tag: 'bug', est: 'S', owner: 'TN', col: 'later' },
|
|
353
|
+
{ id: 'BIR-265', title: 'Add request-id to client error reports', tag: 'debt', est: 'S', owner: 'RS', col: 'later' },
|
|
354
|
+
|
|
355
|
+
{ id: 'BIR-198', title: 'Custom emoji reactions on comments', tag: 'feat', est: 'M', owner: 'EL', col: 'cut' },
|
|
356
|
+
{ id: 'BIR-204', title: 'Native Windows desktop wrapper', tag: 'feat', est: 'L', owner: 'TN', col: 'cut' },
|
|
357
|
+
{ id: 'BIR-217', title: 'AI summary of long comment threads', tag: 'feat', est: 'L', owner: 'JM', col: 'cut' },
|
|
358
|
+
{ id: 'BIR-233', title: 'Public roadmap page with voting', tag: 'feat', est: 'L', owner: 'RS', col: 'cut' }
|
|
359
|
+
];
|
|
360
|
+
|
|
361
|
+
var OWNER_CLASS = { AK: 'o1', JM: 'o2', RS: 'o3', TN: 'o4', EL: 'o1' };
|
|
362
|
+
|
|
363
|
+
var tickets = []; // live state
|
|
364
|
+
var activeFilter = null; // tag string or null
|
|
365
|
+
var dragId = null;
|
|
366
|
+
|
|
367
|
+
// ---------- build DOM ----------
|
|
368
|
+
var board = document.getElementById('board');
|
|
369
|
+
var colBodies = {};
|
|
370
|
+
var colCounts = {};
|
|
371
|
+
var colFoots = {};
|
|
372
|
+
|
|
373
|
+
COLUMNS.forEach(function (c) {
|
|
374
|
+
var col = document.createElement('section');
|
|
375
|
+
col.className = 'col';
|
|
376
|
+
col.dataset.col = c.key;
|
|
377
|
+
|
|
378
|
+
var head = document.createElement('div');
|
|
379
|
+
head.className = 'col-head';
|
|
380
|
+
var h2 = document.createElement('h2');
|
|
381
|
+
h2.textContent = c.label;
|
|
382
|
+
var count = document.createElement('span');
|
|
383
|
+
count.className = 'count';
|
|
384
|
+
head.appendChild(h2);
|
|
385
|
+
head.appendChild(count);
|
|
386
|
+
|
|
387
|
+
var body = document.createElement('div');
|
|
388
|
+
body.className = 'col-body';
|
|
389
|
+
|
|
390
|
+
var foot = document.createElement('div');
|
|
391
|
+
foot.className = 'col-foot';
|
|
392
|
+
|
|
393
|
+
col.appendChild(head);
|
|
394
|
+
col.appendChild(body);
|
|
395
|
+
col.appendChild(foot);
|
|
396
|
+
board.appendChild(col);
|
|
397
|
+
|
|
398
|
+
colBodies[c.key] = body;
|
|
399
|
+
colCounts[c.key] = count;
|
|
400
|
+
colFoots[c.key] = foot;
|
|
401
|
+
|
|
402
|
+
// drop targets
|
|
403
|
+
col.addEventListener('dragover', function (e) {
|
|
404
|
+
e.preventDefault();
|
|
405
|
+
e.dataTransfer.dropEffect = 'move';
|
|
406
|
+
col.classList.add('dragover');
|
|
407
|
+
});
|
|
408
|
+
col.addEventListener('dragleave', function (e) {
|
|
409
|
+
if (!col.contains(e.relatedTarget)) col.classList.remove('dragover');
|
|
410
|
+
});
|
|
411
|
+
col.addEventListener('drop', function (e) {
|
|
412
|
+
e.preventDefault();
|
|
413
|
+
col.classList.remove('dragover');
|
|
414
|
+
if (!dragId) return;
|
|
415
|
+
var t = tickets.find(function (x) { return x.id === dragId; });
|
|
416
|
+
if (t && t.col !== c.key) { t.col = c.key; render(); }
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
function makeCard(t) {
|
|
421
|
+
var card = document.createElement('article');
|
|
422
|
+
card.className = 'ticket';
|
|
423
|
+
card.draggable = true;
|
|
424
|
+
card.dataset.id = t.id;
|
|
425
|
+
if (activeFilter && t.tag !== activeFilter) card.classList.add('dim');
|
|
426
|
+
|
|
427
|
+
var top = document.createElement('div');
|
|
428
|
+
top.className = 'ticket-top';
|
|
429
|
+
var tid = document.createElement('span');
|
|
430
|
+
tid.className = 'tid';
|
|
431
|
+
tid.textContent = t.id;
|
|
432
|
+
var tag = document.createElement('button');
|
|
433
|
+
tag.type = 'button';
|
|
434
|
+
tag.className = 'tag tag-' + t.tag;
|
|
435
|
+
tag.textContent = t.tag;
|
|
436
|
+
tag.addEventListener('click', function (e) {
|
|
437
|
+
e.stopPropagation();
|
|
438
|
+
activeFilter = (activeFilter === t.tag) ? null : t.tag;
|
|
439
|
+
render();
|
|
440
|
+
});
|
|
441
|
+
var est = document.createElement('span');
|
|
442
|
+
est.className = 'est';
|
|
443
|
+
est.textContent = t.est;
|
|
444
|
+
top.appendChild(tid);
|
|
445
|
+
top.appendChild(tag);
|
|
446
|
+
top.appendChild(est);
|
|
447
|
+
|
|
448
|
+
var title = document.createElement('div');
|
|
449
|
+
title.className = 'ttitle';
|
|
450
|
+
title.textContent = t.title;
|
|
451
|
+
|
|
452
|
+
var bot = document.createElement('div');
|
|
453
|
+
bot.className = 'ticket-bot';
|
|
454
|
+
var owner = document.createElement('span');
|
|
455
|
+
owner.className = 'owner ' + (OWNER_CLASS[t.owner] || 'o1');
|
|
456
|
+
owner.textContent = t.owner;
|
|
457
|
+
bot.appendChild(owner);
|
|
458
|
+
|
|
459
|
+
card.appendChild(top);
|
|
460
|
+
card.appendChild(title);
|
|
461
|
+
card.appendChild(bot);
|
|
462
|
+
|
|
463
|
+
card.addEventListener('dragstart', function (e) {
|
|
464
|
+
dragId = t.id;
|
|
465
|
+
card.classList.add('dragging');
|
|
466
|
+
e.dataTransfer.effectAllowed = 'move';
|
|
467
|
+
e.dataTransfer.setData('text/plain', t.id);
|
|
468
|
+
});
|
|
469
|
+
card.addEventListener('dragend', function () {
|
|
470
|
+
dragId = null;
|
|
471
|
+
card.classList.remove('dragging');
|
|
472
|
+
document.querySelectorAll('.col.dragover').forEach(function (el) {
|
|
473
|
+
el.classList.remove('dragover');
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
return card;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
function render() {
|
|
481
|
+
COLUMNS.forEach(function (c) { colBodies[c.key].innerHTML = ''; });
|
|
482
|
+
var counts = {};
|
|
483
|
+
var pts = {};
|
|
484
|
+
COLUMNS.forEach(function (c) { counts[c.key] = 0; pts[c.key] = 0; });
|
|
485
|
+
|
|
486
|
+
tickets.forEach(function (t) {
|
|
487
|
+
colBodies[t.col].appendChild(makeCard(t));
|
|
488
|
+
counts[t.col] += 1;
|
|
489
|
+
pts[t.col] += EST_PTS[t.est] || 0;
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
COLUMNS.forEach(function (c) {
|
|
493
|
+
colCounts[c.key].textContent = counts[c.key];
|
|
494
|
+
colFoots[c.key].innerHTML = 'estimate <b>' + pts[c.key] + ' pt' + (pts[c.key] === 1 ? '' : 's') + '</b>';
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
var summary = document.getElementById('summary');
|
|
498
|
+
summary.innerHTML = COLUMNS.map(function (c) {
|
|
499
|
+
return '<b>' + counts[c.key] + '</b> ' + c.key;
|
|
500
|
+
}).join('<span class="dot">·</span>');
|
|
501
|
+
|
|
502
|
+
var badge = document.getElementById('filterBadge');
|
|
503
|
+
if (activeFilter) {
|
|
504
|
+
badge.textContent = 'filter: ' + activeFilter + ' ×';
|
|
505
|
+
badge.classList.add('on');
|
|
506
|
+
} else {
|
|
507
|
+
badge.classList.remove('on');
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
document.getElementById('filterBadge').addEventListener('click', function () {
|
|
512
|
+
activeFilter = null;
|
|
513
|
+
render();
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
// ---------- export ----------
|
|
517
|
+
function buildMarkdown() {
|
|
518
|
+
var lines = [];
|
|
519
|
+
lines.push('# Birchline — Cycle 14 triage');
|
|
520
|
+
lines.push('');
|
|
521
|
+
COLUMNS.forEach(function (c) {
|
|
522
|
+
var rows = tickets.filter(function (t) { return t.col === c.key; });
|
|
523
|
+
var pts = rows.reduce(function (s, t) { return s + (EST_PTS[t.est] || 0); }, 0);
|
|
524
|
+
lines.push('## ' + c.label + ' (' + rows.length + ' · ' + pts + ' pts)');
|
|
525
|
+
lines.push('');
|
|
526
|
+
lines.push('_' + c.rationale + '_');
|
|
527
|
+
lines.push('');
|
|
528
|
+
rows.forEach(function (t) {
|
|
529
|
+
lines.push('- **' + t.id + '** ' + t.title + ' — ' + t.tag + ', ' + t.est + ', ' + t.owner);
|
|
530
|
+
});
|
|
531
|
+
lines.push('');
|
|
532
|
+
});
|
|
533
|
+
return lines.join('\n');
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
var copyBtn = document.getElementById('copyBtn');
|
|
537
|
+
var copyTimer = null;
|
|
538
|
+
copyBtn.addEventListener('click', function () {
|
|
539
|
+
var md = buildMarkdown();
|
|
540
|
+
function flash() {
|
|
541
|
+
copyBtn.textContent = 'Copied ✓';
|
|
542
|
+
copyBtn.classList.add('copied');
|
|
543
|
+
clearTimeout(copyTimer);
|
|
544
|
+
copyTimer = setTimeout(function () {
|
|
545
|
+
copyBtn.textContent = 'Copy as markdown';
|
|
546
|
+
copyBtn.classList.remove('copied');
|
|
547
|
+
}, 1200);
|
|
548
|
+
}
|
|
549
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
550
|
+
navigator.clipboard.writeText(md).then(flash, flash);
|
|
551
|
+
} else {
|
|
552
|
+
var ta = document.createElement('textarea');
|
|
553
|
+
ta.value = md;
|
|
554
|
+
document.body.appendChild(ta);
|
|
555
|
+
ta.select();
|
|
556
|
+
try { document.execCommand('copy'); } catch (e) {}
|
|
557
|
+
document.body.removeChild(ta);
|
|
558
|
+
flash();
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
document.getElementById('resetBtn').addEventListener('click', function () {
|
|
563
|
+
tickets = INITIAL.map(function (t) { return Object.assign({}, t); });
|
|
564
|
+
activeFilter = null;
|
|
565
|
+
render();
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
// ---------- init ----------
|
|
569
|
+
tickets = INITIAL.map(function (t) { return Object.assign({}, t); });
|
|
570
|
+
render();
|
|
571
|
+
</script>
|
|
572
|
+
</body>
|
|
573
|
+
</html>
|