repometry 0.0.0-stage → 0.2.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 (274) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -2
  3. package/package.json +64 -4
  4. package/target/main/resources/report/json/compact-json-v1.schema.json +24 -0
  5. package/target/main/resources/report/json/comparison-v1.schema.json +65 -0
  6. package/target/main/resources/report/json/config-v1.schema.json +33 -0
  7. package/target/main/resources/report/json/diff-coverage-v1.schema.json +55 -0
  8. package/target/main/resources/report/json/file-metrics-v1.schema.json +134 -0
  9. package/target/main/resources/report/json/inspection-context-v1.schema.json +172 -0
  10. package/target/main/resources/report/json/metabranch-v1.schema.json +9 -0
  11. package/target/main/resources/report/json/metric-catalog-v1.schema.json +31 -0
  12. package/target/main/resources/report/json/public-history-v1.schema.json +50 -0
  13. package/target/main/resources/report/json/pull-review-v1.schema.json +97 -0
  14. package/target/main/resources/report/json/quality-history-v1.schema.json +51 -0
  15. package/target/main/resources/report/json/report-v1.schema.json +65 -0
  16. package/target/main/resources/report/json/report-v2.schema.json +252 -0
  17. package/target/main/resources/report/json/repository-summary-v1.schema.json +181 -0
  18. package/target/main/resources/report/json/viewer-details-v1.schema.json +343 -0
  19. package/target/main/resources/report/json/viewer-inspection-v1.schema.json +13 -0
  20. package/target/main/resources/viewer/files.css +578 -0
  21. package/target/main/resources/viewer/index.html +120 -0
  22. package/target/main/resources/viewer/projects.html +52 -0
  23. package/target/main/resources/viewer/styles.css +560 -0
  24. package/target/main/resources/viewer/viewer-pulls.css +64 -0
  25. package/target/main/ts/api/gh/github.d.ts +6 -0
  26. package/target/main/ts/api/gh/github.js +92 -0
  27. package/target/main/ts/api/git/blob-batch.d.ts +10 -0
  28. package/target/main/ts/api/git/blob-batch.js +106 -0
  29. package/target/main/ts/api/git/changes.d.ts +22 -0
  30. package/target/main/ts/api/git/changes.js +108 -0
  31. package/target/main/ts/api/git/commit-metadata.d.ts +3 -0
  32. package/target/main/ts/api/git/commit-metadata.js +53 -0
  33. package/target/main/ts/api/git/git-churn.d.ts +9 -0
  34. package/target/main/ts/api/git/git-churn.js +71 -0
  35. package/target/main/ts/api/git/git-reader.d.ts +16 -0
  36. package/target/main/ts/api/git/git-reader.js +74 -0
  37. package/target/main/ts/api/git/git.d.ts +21 -0
  38. package/target/main/ts/api/git/git.js +153 -0
  39. package/target/main/ts/api/git/inspection-source.d.ts +15 -0
  40. package/target/main/ts/api/git/inspection-source.js +31 -0
  41. package/target/main/ts/api/git/local-sources.d.ts +5 -0
  42. package/target/main/ts/api/git/local-sources.js +47 -0
  43. package/target/main/ts/api/git/local.d.ts +3 -0
  44. package/target/main/ts/api/git/local.js +36 -0
  45. package/target/main/ts/api/git/metabranch-worktree.d.ts +1 -0
  46. package/target/main/ts/api/git/metabranch-worktree.js +35 -0
  47. package/target/main/ts/api/git/source-cache.d.ts +3 -0
  48. package/target/main/ts/api/git/source-cache.js +57 -0
  49. package/target/main/ts/api/import/finding-import.d.ts +9 -0
  50. package/target/main/ts/api/import/finding-import.js +227 -0
  51. package/target/main/ts/api/import/lcov-files.d.ts +5 -0
  52. package/target/main/ts/api/import/lcov-files.js +14 -0
  53. package/target/main/ts/api/import/profile-file.d.ts +4 -0
  54. package/target/main/ts/api/import/profile-file.js +17 -0
  55. package/target/main/ts/api/worker/remote-executor.d.ts +2 -0
  56. package/target/main/ts/api/worker/remote-executor.js +46 -0
  57. package/target/main/ts/api/worker/worker-protocol.d.ts +7 -0
  58. package/target/main/ts/api/worker/worker-protocol.js +102 -0
  59. package/target/main/ts/api/worker/worker.d.ts +5 -0
  60. package/target/main/ts/api/worker/worker.js +86 -0
  61. package/target/main/ts/cli/arguments.d.ts +28 -0
  62. package/target/main/ts/cli/arguments.js +111 -0
  63. package/target/main/ts/cli/config.d.ts +13 -0
  64. package/target/main/ts/cli/config.js +58 -0
  65. package/target/main/ts/cli/imports.d.ts +7 -0
  66. package/target/main/ts/cli/imports.js +30 -0
  67. package/target/main/ts/cli/main.d.ts +2 -0
  68. package/target/main/ts/cli/main.js +379 -0
  69. package/target/main/ts/cli/reporting.d.ts +18 -0
  70. package/target/main/ts/cli/reporting.js +104 -0
  71. package/target/main/ts/cli/revisions.d.ts +6 -0
  72. package/target/main/ts/cli/revisions.js +16 -0
  73. package/target/main/ts/cli/store.d.ts +13 -0
  74. package/target/main/ts/cli/store.js +39 -0
  75. package/target/main/ts/compose/analyze-snapshot.d.ts +4 -0
  76. package/target/main/ts/compose/analyze-snapshot.js +164 -0
  77. package/target/main/ts/compose/attach-churn.d.ts +2 -0
  78. package/target/main/ts/compose/attach-churn.js +50 -0
  79. package/target/main/ts/compose/diff-coverage.d.ts +20 -0
  80. package/target/main/ts/compose/diff-coverage.js +57 -0
  81. package/target/main/ts/compose/inspect.d.ts +23 -0
  82. package/target/main/ts/compose/inspect.js +45 -0
  83. package/target/main/ts/compose/plugin-list.d.ts +6 -0
  84. package/target/main/ts/compose/plugin-list.js +10 -0
  85. package/target/main/ts/compose/prepare-metabranch.d.ts +9 -0
  86. package/target/main/ts/compose/prepare-metabranch.js +17 -0
  87. package/target/main/ts/compose/review.d.ts +16 -0
  88. package/target/main/ts/compose/review.js +39 -0
  89. package/target/main/ts/compose/sources.d.ts +3 -0
  90. package/target/main/ts/compose/sources.js +30 -0
  91. package/target/main/ts/core/engine/execute.d.ts +10 -0
  92. package/target/main/ts/core/engine/execute.js +50 -0
  93. package/target/main/ts/core/engine/manifest.d.ts +4 -0
  94. package/target/main/ts/core/engine/manifest.js +105 -0
  95. package/target/main/ts/core/engine/plan.d.ts +22 -0
  96. package/target/main/ts/core/engine/plan.js +107 -0
  97. package/target/main/ts/core/engine/plugin.d.ts +59 -0
  98. package/target/main/ts/core/engine/plugin.js +4 -0
  99. package/target/main/ts/core/engine/report-products.d.ts +16 -0
  100. package/target/main/ts/core/engine/report-products.js +86 -0
  101. package/target/main/ts/core/model/changes.d.ts +8 -0
  102. package/target/main/ts/core/model/changes.js +2 -0
  103. package/target/main/ts/core/model/churn.d.ts +11 -0
  104. package/target/main/ts/core/model/churn.js +5 -0
  105. package/target/main/ts/core/model/clone-source.d.ts +16 -0
  106. package/target/main/ts/core/model/clone-source.js +15 -0
  107. package/target/main/ts/core/model/code-structure.d.ts +30 -0
  108. package/target/main/ts/core/model/code-structure.js +32 -0
  109. package/target/main/ts/core/model/comparison.d.ts +24 -0
  110. package/target/main/ts/core/model/comparison.js +1 -0
  111. package/target/main/ts/core/model/diff-coverage.d.ts +23 -0
  112. package/target/main/ts/core/model/diff-coverage.js +1 -0
  113. package/target/main/ts/core/model/finding-ignore.d.ts +8 -0
  114. package/target/main/ts/core/model/finding-ignore.js +36 -0
  115. package/target/main/ts/core/model/finding.d.ts +28 -0
  116. package/target/main/ts/core/model/finding.js +29 -0
  117. package/target/main/ts/core/model/ignore-rule.d.ts +11 -0
  118. package/target/main/ts/core/model/ignore-rule.js +1 -0
  119. package/target/main/ts/core/model/measurement.d.ts +33 -0
  120. package/target/main/ts/core/model/measurement.js +30 -0
  121. package/target/main/ts/core/model/metric-descriptor.d.ts +17 -0
  122. package/target/main/ts/core/model/metric-descriptor.js +1 -0
  123. package/target/main/ts/core/model/plugin-data.d.ts +25 -0
  124. package/target/main/ts/core/model/plugin-data.js +1 -0
  125. package/target/main/ts/core/model/pull-review.d.ts +48 -0
  126. package/target/main/ts/core/model/pull-review.js +1 -0
  127. package/target/main/ts/core/model/quality-summary.d.ts +42 -0
  128. package/target/main/ts/core/model/quality-summary.js +64 -0
  129. package/target/main/ts/core/model/report.d.ts +40 -0
  130. package/target/main/ts/core/model/report.js +5 -0
  131. package/target/main/ts/core/model/scanner-import.d.ts +39 -0
  132. package/target/main/ts/core/model/scanner-import.js +29 -0
  133. package/target/main/ts/core/model/snapshot.d.ts +15 -0
  134. package/target/main/ts/core/model/snapshot.js +51 -0
  135. package/target/main/ts/core/model/source-locator.d.ts +7 -0
  136. package/target/main/ts/core/model/source-locator.js +1 -0
  137. package/target/main/ts/core/model/source.d.ts +23 -0
  138. package/target/main/ts/core/model/source.js +1 -0
  139. package/target/main/ts/core/ports/report.d.ts +9 -0
  140. package/target/main/ts/core/ports/report.js +2 -0
  141. package/target/main/ts/core/ports/source-provider.d.ts +14 -0
  142. package/target/main/ts/core/ports/source-provider.js +5 -0
  143. package/target/main/ts/core/profile/exclusions.d.ts +11 -0
  144. package/target/main/ts/core/profile/exclusions.js +58 -0
  145. package/target/main/ts/core/profile/maintainability.d.ts +31 -0
  146. package/target/main/ts/core/profile/maintainability.js +10 -0
  147. package/target/main/ts/core/profile/profile.d.ts +4 -0
  148. package/target/main/ts/core/profile/profile.js +11 -0
  149. package/target/main/ts/core/usecases/compare.d.ts +6 -0
  150. package/target/main/ts/core/usecases/compare.js +146 -0
  151. package/target/main/ts/core/usecases/diff-coverage-policy.d.ts +6 -0
  152. package/target/main/ts/core/usecases/diff-coverage-policy.js +11 -0
  153. package/target/main/ts/core/usecases/diff-coverage.d.ts +40 -0
  154. package/target/main/ts/core/usecases/diff-coverage.js +16 -0
  155. package/target/main/ts/core/usecases/inspect.d.ts +38 -0
  156. package/target/main/ts/core/usecases/inspect.js +42 -0
  157. package/target/main/ts/core/usecases/review.d.ts +31 -0
  158. package/target/main/ts/core/usecases/review.js +129 -0
  159. package/target/main/ts/index.d.ts +35 -0
  160. package/target/main/ts/index.js +18 -0
  161. package/target/main/ts/plugin.d.ts +14 -0
  162. package/target/main/ts/plugin.js +6 -0
  163. package/target/main/ts/plugins/coverage/coverage.d.ts +25 -0
  164. package/target/main/ts/plugins/coverage/coverage.js +199 -0
  165. package/target/main/ts/plugins/coverage/diff-coverage.d.ts +7 -0
  166. package/target/main/ts/plugins/coverage/diff-coverage.js +90 -0
  167. package/target/main/ts/plugins/duplication/duplication.d.ts +4 -0
  168. package/target/main/ts/plugins/duplication/duplication.js +94 -0
  169. package/target/main/ts/plugins/language-js/babel-provider.d.ts +10 -0
  170. package/target/main/ts/plugins/language-js/babel-provider.js +47 -0
  171. package/target/main/ts/plugins/language-js/clone-candidates.d.ts +3 -0
  172. package/target/main/ts/plugins/language-js/clone-candidates.js +65 -0
  173. package/target/main/ts/plugins/language-js/code-lines.d.ts +6 -0
  174. package/target/main/ts/plugins/language-js/code-lines.js +36 -0
  175. package/target/main/ts/plugins/language-js/function-facts.d.ts +8 -0
  176. package/target/main/ts/plugins/language-js/function-facts.js +61 -0
  177. package/target/main/ts/plugins/language-js/structural-observations.d.ts +8 -0
  178. package/target/main/ts/plugins/language-js/structural-observations.js +80 -0
  179. package/target/main/ts/plugins/maintainability/maintainability.d.ts +9 -0
  180. package/target/main/ts/plugins/maintainability/maintainability.js +43 -0
  181. package/target/main/ts/plugins/maintainability/structural-smells.d.ts +3 -0
  182. package/target/main/ts/plugins/maintainability/structural-smells.js +16 -0
  183. package/target/main/ts/plugins/source/forges.d.ts +4 -0
  184. package/target/main/ts/plugins/source/forges.js +80 -0
  185. package/target/main/ts/plugins/structure/structure.d.ts +2 -0
  186. package/target/main/ts/plugins/structure/structure.js +38 -0
  187. package/target/main/ts/report/html/app/viewer-chart.d.ts +101 -0
  188. package/target/main/ts/report/html/app/viewer-chart.js +711 -0
  189. package/target/main/ts/report/html/app/viewer-commits.d.ts +36 -0
  190. package/target/main/ts/report/html/app/viewer-commits.js +280 -0
  191. package/target/main/ts/report/html/app/viewer-data.d.ts +23 -0
  192. package/target/main/ts/report/html/app/viewer-data.js +105 -0
  193. package/target/main/ts/report/html/app/viewer-files.d.ts +117 -0
  194. package/target/main/ts/report/html/app/viewer-files.js +2104 -0
  195. package/target/main/ts/report/html/app/viewer-filter.d.ts +113 -0
  196. package/target/main/ts/report/html/app/viewer-filter.js +492 -0
  197. package/target/main/ts/report/html/app/viewer-metric-registry.d.ts +70 -0
  198. package/target/main/ts/report/html/app/viewer-metric-registry.js +224 -0
  199. package/target/main/ts/report/html/app/viewer-metrics.d.ts +44 -0
  200. package/target/main/ts/report/html/app/viewer-metrics.js +172 -0
  201. package/target/main/ts/report/html/app/viewer-profile.d.ts +17 -0
  202. package/target/main/ts/report/html/app/viewer-profile.js +401 -0
  203. package/target/main/ts/report/html/app/viewer-projects.d.ts +1 -0
  204. package/target/main/ts/report/html/app/viewer-projects.js +90 -0
  205. package/target/main/ts/report/html/app/viewer-pulls.d.ts +3 -0
  206. package/target/main/ts/report/html/app/viewer-pulls.js +242 -0
  207. package/target/main/ts/report/html/app/viewer-source.d.ts +75 -0
  208. package/target/main/ts/report/html/app/viewer-source.js +313 -0
  209. package/target/main/ts/report/html/app/viewer-trends.d.ts +73 -0
  210. package/target/main/ts/report/html/app/viewer-trends.js +423 -0
  211. package/target/main/ts/report/html/app/viewer.d.ts +1 -0
  212. package/target/main/ts/report/html/app/viewer.js +735 -0
  213. package/target/main/ts/report/html/site/badges.d.ts +14 -0
  214. package/target/main/ts/report/html/site/badges.js +40 -0
  215. package/target/main/ts/report/html/site/export-site.d.ts +22 -0
  216. package/target/main/ts/report/html/site/export-site.js +150 -0
  217. package/target/main/ts/report/html/site/exported-server.d.ts +6 -0
  218. package/target/main/ts/report/html/site/exported-server.js +71 -0
  219. package/target/main/ts/report/html/site/local-server.d.ts +7 -0
  220. package/target/main/ts/report/html/site/local-server.js +65 -0
  221. package/target/main/ts/report/html/site/projects.d.ts +3 -0
  222. package/target/main/ts/report/html/site/projects.js +80 -0
  223. package/target/main/ts/report/html/site/server.d.ts +4 -0
  224. package/target/main/ts/report/html/site/server.js +65 -0
  225. package/target/main/ts/report/html/site/source-route.d.ts +6 -0
  226. package/target/main/ts/report/html/site/source-route.js +23 -0
  227. package/target/main/ts/report/json/projections/commit-summary.d.ts +12 -0
  228. package/target/main/ts/report/json/projections/commit-summary.js +124 -0
  229. package/target/main/ts/report/json/projections/components.d.ts +4 -0
  230. package/target/main/ts/report/json/projections/components.js +30 -0
  231. package/target/main/ts/report/json/projections/file-metrics.d.ts +5 -0
  232. package/target/main/ts/report/json/projections/file-metrics.js +244 -0
  233. package/target/main/ts/report/json/projections/inspection-context.d.ts +6 -0
  234. package/target/main/ts/report/json/projections/inspection-context.js +93 -0
  235. package/target/main/ts/report/json/projections/inspection-details.d.ts +11 -0
  236. package/target/main/ts/report/json/projections/inspection-details.js +70 -0
  237. package/target/main/ts/report/json/projections/metric-values.d.ts +7 -0
  238. package/target/main/ts/report/json/projections/metric-values.js +58 -0
  239. package/target/main/ts/report/json/projections/public-history.d.ts +4 -0
  240. package/target/main/ts/report/json/projections/public-history.js +17 -0
  241. package/target/main/ts/report/json/store/components.d.ts +2 -0
  242. package/target/main/ts/report/json/store/components.js +32 -0
  243. package/target/main/ts/report/json/store/local-store.d.ts +13 -0
  244. package/target/main/ts/report/json/store/local-store.js +180 -0
  245. package/target/main/ts/report/json/store/pull-review-store.d.ts +3 -0
  246. package/target/main/ts/report/json/store/pull-review-store.js +52 -0
  247. package/target/main/ts/report/json/validation/metabranch.d.ts +4 -0
  248. package/target/main/ts/report/json/validation/metabranch.js +8 -0
  249. package/target/main/ts/report/json/validation/report.d.ts +15 -0
  250. package/target/main/ts/report/json/validation/report.js +65 -0
  251. package/target/main/ts/report/json/validation/summary-validation.d.ts +4 -0
  252. package/target/main/ts/report/json/validation/summary-validation.js +28 -0
  253. package/target/main/ts/report/json/wire/compact-json.d.ts +11 -0
  254. package/target/main/ts/report/json/wire/compact-json.js +76 -0
  255. package/target/main/ts/report/json/wire/component-model.d.ts +9 -0
  256. package/target/main/ts/report/json/wire/component-model.js +1 -0
  257. package/target/main/ts/report/json/wire/domain-types.d.ts +2 -0
  258. package/target/main/ts/report/json/wire/domain-types.js +1 -0
  259. package/target/main/ts/report/json/wire/file-metrics-model.d.ts +77 -0
  260. package/target/main/ts/report/json/wire/file-metrics-model.js +1 -0
  261. package/target/main/ts/report/json/wire/inspection-context-model.d.ts +26 -0
  262. package/target/main/ts/report/json/wire/inspection-context-model.js +1 -0
  263. package/target/main/ts/report/json/wire/inspection-details-model.d.ts +82 -0
  264. package/target/main/ts/report/json/wire/inspection-details-model.js +1 -0
  265. package/target/main/ts/report/json/wire/project-model.d.ts +7 -0
  266. package/target/main/ts/report/json/wire/project-model.js +1 -0
  267. package/target/main/ts/report/json/wire/public-history-model.d.ts +42 -0
  268. package/target/main/ts/report/json/wire/public-history-model.js +6 -0
  269. package/target/main/ts/report/json/wire/pull-review-model.d.ts +7 -0
  270. package/target/main/ts/report/json/wire/pull-review-model.js +1 -0
  271. package/target/main/ts/report/json/wire/summary-model.d.ts +45 -0
  272. package/target/main/ts/report/json/wire/summary-model.js +1 -0
  273. package/target/main/ts/report.d.ts +11 -0
  274. package/target/main/ts/report.js +6 -0
@@ -0,0 +1,560 @@
1
+ /* Repometry viewer: light, flat and quiet. Every colour is a token; the dark theme follows the system. */
2
+ :root {
3
+ --branch-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='3' cy='2.25' r='1.25'/%3E%3Ccircle cx='3' cy='9.75' r='1.25'/%3E%3Ccircle cx='9' cy='3.75' r='1.25'/%3E%3Cpath d='M3 3.5v5M9 5c0 2.5-6 1.5-6 3.5'/%3E%3C/svg%3E");
4
+ color-scheme: light dark;
5
+ --page: #ffffff;
6
+ --band: #f7f8fa;
7
+ --surface: #ffffff;
8
+ --surface-2: #f3f5f7;
9
+ --ink: #0f1720;
10
+ --secondary: #5b6673;
11
+ --muted: #7d8793;
12
+ --rule: #e6e9ed;
13
+ --rule-strong: #cdd3da;
14
+ --accent: #0d8a6c;
15
+ --accent-strong: #0a6f57;
16
+ --accent-soft: #e6f4ef;
17
+ --accent-ink: #0a5a47;
18
+ --selected: #f1f7f5;
19
+ --focus: #2b7fd6;
20
+ --good: #14804a;
21
+ --bad: #c2362b;
22
+ --flag-good: #2f9445;
23
+ --flag-bad: #c63d36;
24
+ --bad-bg: #fdecea;
25
+ --bad-ink: #9f2a21;
26
+ --warn-bg: #fdf3dc;
27
+ --warn-ink: #81580a;
28
+ --notice: #81580a;
29
+ --notice-bg: #fdf3dc;
30
+ --series: #3a4654;
31
+ --series-2: #c9ced5;
32
+ --event: #b4691d;
33
+ --heat-0: #f7e08a;
34
+ --heat-1: #f5c84a;
35
+ --heat-2: #ef9b3c;
36
+ --heat-3: #e6702f;
37
+ --heat-4: #d33a2f;
38
+ --heat-ink: #3d2a05;
39
+ --neutral-0: #e3e7eb;
40
+ --neutral-1: #c4ccd4;
41
+ --neutral-2: #98a4b0;
42
+ --neutral-3: #6b7987;
43
+ --neutral-4: #435160;
44
+ --grade-a: #1f9d5a;
45
+ --grade-b: #74a83a;
46
+ --grade-c: #d9a400;
47
+ --grade-d: #ec8a2c;
48
+ --grade-f: #db4a3f;
49
+ --grade-none: #c4ccd4;
50
+ /* Lockfiles: generated, counted apart from the languages and from the ignored files' grey. */
51
+ --lockfile: #d2c3a3;
52
+ --radius: 10px;
53
+ --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
54
+ --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
55
+ --content: 92rem;
56
+ --control: 2.25rem;
57
+ --code-keyword: #9a2f6e;
58
+ --code-string: #0a6f57;
59
+ --code-number: #a5560f;
60
+ --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
61
+ --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8793' stroke-width='1.6'/%3E%3C/svg%3E");
62
+ font: 400 100%/1.5 var(--sans);
63
+ background: var(--page);
64
+ color: var(--ink);
65
+ -webkit-font-smoothing: antialiased;
66
+ }
67
+ @media (prefers-color-scheme: dark) {
68
+ :root {
69
+ --page: #0d1117;
70
+ --band: #11161d;
71
+ --surface: #131920;
72
+ --surface-2: #19212a;
73
+ --ink: #e6ebf0;
74
+ --secondary: #a2adb9;
75
+ --muted: #7b8794;
76
+ --rule: #232c36;
77
+ --rule-strong: #34404d;
78
+ --accent: #36c49b;
79
+ --accent-strong: #5bd6b0;
80
+ --accent-soft: #15302a;
81
+ --accent-ink: #bdeedd;
82
+ --selected: #16231f;
83
+ --focus: #6aaaf0;
84
+ --good: #4fcf8b;
85
+ --bad: #ff8478;
86
+ --flag-good: #5fd06a;
87
+ --flag-bad: #f0736b;
88
+ --bad-bg: #3a1c1a;
89
+ --bad-ink: #ffb1a8;
90
+ --warn-bg: #352812;
91
+ --warn-ink: #f2cd7f;
92
+ --notice: #f2cd7f;
93
+ --notice-bg: #2e2412;
94
+ --series: #c3ccd5;
95
+ --series-2: #3a4552;
96
+ --code-keyword: #e48fc4;
97
+ --code-string: #5fd0a6;
98
+ --code-number: #e5a45a;
99
+ --event: #e8a362;
100
+ --heat-0: #c9b04a;
101
+ --heat-1: #dcae3a;
102
+ --heat-2: #e08b35;
103
+ --heat-3: #e0612f;
104
+ --heat-4: #ef4c3f;
105
+ --heat-ink: #1a1203;
106
+ --neutral-0: #26303a;
107
+ --neutral-1: #384552;
108
+ --neutral-2: #52616f;
109
+ --neutral-3: #75869a;
110
+ --neutral-4: #a3b3c3;
111
+ --grade-a: #2aa766;
112
+ --grade-b: #7fae44;
113
+ --grade-c: #d1a01a;
114
+ --grade-d: #e58835;
115
+ --grade-f: #e2574c;
116
+ --grade-none: #3a4552;
117
+ --lockfile: #5e5440;
118
+ }
119
+ }
120
+ * { box-sizing: border-box; }
121
+ [hidden] { display: none !important; }
122
+ body { margin: 0; min-height: 100vh; background: var(--page); }
123
+ a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
124
+ a:hover { color: var(--accent-strong); }
125
+ :is(a, button, input, select, summary, [tabindex="0"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
126
+ h1, h2, h3, h4, p, dl, dd { margin: 0; }
127
+ h1 { font-size: 1.375rem; font-weight: 650; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
128
+ h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
129
+ h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
130
+ small { font-size: .8125rem; }
131
+ code, .commit { font-family: var(--mono); font-size: .875em; }
132
+ select, input, button { font: inherit; color: inherit; }
133
+ select, input:not([type="checkbox"]), .button {
134
+ min-height: var(--control);
135
+ padding: .3rem .65rem;
136
+ font-size: .875rem;
137
+ background: var(--surface);
138
+ border: 1px solid var(--rule-strong);
139
+ border-radius: 8px;
140
+ }
141
+ button, select { cursor: pointer; }
142
+ /* Every select draws the same chevron with the same inset, instead of each browser's own arrow. */
143
+ select { -webkit-appearance: none; appearance: none; padding-right: 2rem; background: var(--surface) no-repeat right .65rem center / .7rem var(--chevron); }
144
+ input[type="search"] { min-width: 0; max-width: 100%; }
145
+ label { display: grid; gap: .25rem; font-size: .75rem; font-weight: 500; color: var(--secondary); }
146
+ label select, label input { color: var(--ink); font-weight: 400; font-size: .875rem; }
147
+ .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
148
+ .skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: var(--surface); z-index: 5; padding: .7rem; }
149
+ .skip:focus { transform: none; }
150
+
151
+ /* Top bar */
152
+ .topbar { background: var(--band); border-bottom: 1px solid var(--rule); }
153
+ .topbar-inner { max-width: var(--content); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
154
+ .topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; padding: .875rem 0 .375rem; }
155
+ .topbar-row h1 { line-height: 1.875rem; }
156
+ /* The mark: a deep green flag (the r of repo) over three lighter green stems (the m of metrics). Its greens are its
157
+ own; the chart flags keep --flag-good. */
158
+ .brand { --brand-flag: #1f6b35; --brand-stems: #5fae6a; display: inline-flex; flex: none; width: 1.875rem; height: 1.875rem; color: var(--brand-stems); text-decoration: none; border-radius: 6px; }
159
+ @media (prefers-color-scheme: dark) { .brand { --brand-flag: #8fe08f; --brand-stems: #3f8a4c; } }
160
+ .brand-mark { width: 100%; height: 100%; fill: currentColor; }
161
+ .brand-flag { fill: var(--brand-flag); }
162
+ /* Commit picker: a trigger naming the commit, and a search popover over the whole inspected history. */
163
+ /* The commit picker ends the title row; the data download ends the tab row under it, so neither adds height. */
164
+ .commit-control { position: relative; width: clamp(16rem, 32vw, 26rem); max-width: 100%; margin-left: auto; }
165
+ /* Open, the control widens to the left and the list hangs from it: one frame, square where field and list meet. */
166
+ .commit-control.open { width: min(36rem, 100%); z-index: 20; }
167
+ .tabs-row { display: flex; align-items: center; gap: 1.5rem; }
168
+ .tabs-row .tabs { flex: 1 1 auto; min-width: 0; }
169
+ .inspection-meta { flex: none; }
170
+ .commit-field { position: relative; display: flex; align-items: center; min-height: 32px; background: var(--surface) no-repeat right .6rem center / .7rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8793' stroke-width='1.6'/%3E%3C/svg%3E"); border: 1px solid var(--rule); border-radius: 6px; cursor: text; }
171
+ .commit-field:hover { border-color: var(--rule-strong); }
172
+ .commit-control:focus-within .commit-field { border-color: var(--accent); }
173
+ .commit-control.open .commit-field { border-color: var(--rule-strong); border-bottom-color: var(--rule); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -1px 8px rgb(15 23 32 / .05); }
174
+ .commit-control .commit-search { flex: 1 1 auto; width: 100%; max-width: none; min-height: 30px; margin: 0; padding: .2rem 2rem .2rem .625rem; font: inherit; font-size: .875rem; color: var(--ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
175
+ .commit-control .commit-search:focus, .commit-control .commit-search:focus-visible { outline: none; box-shadow: none; }
176
+ .commit-control:not(.open) .commit-search { color: transparent; caret-color: transparent; }
177
+ .commit-control:not(.open) .commit-search::placeholder { color: transparent; }
178
+ .commit-entry { position: relative; display: flex; flex: 1 1 auto; align-self: stretch; min-width: 0; }
179
+ /* The branch heads the field, set off by a rule: the commits listed are its history. */
180
+ .commit-branch { display: inline-flex; align-items: center; gap: .3125rem; flex: 0 1 auto; max-width: 9rem; align-self: stretch; padding: 0 .625rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8125rem; font-weight: 500; color: var(--secondary); border-right: 1px solid var(--rule); }
181
+ .commit-branch::before { content: ""; flex: none; width: .75rem; height: .75rem; background: currentColor; -webkit-mask: var(--branch-glyph) center / contain no-repeat; mask: var(--branch-glyph) center / contain no-repeat; }
182
+ .commit-control.open .commit-branch { color: var(--muted); }
183
+ .commit-current { position: absolute; inset: 0 2rem 0 .625rem; display: flex; align-items: center; gap: .5rem; min-width: 0; overflow: hidden; pointer-events: none; font-size: .875rem; }
184
+ .commit-control.open .commit-current { display: none; }
185
+ .commit-current-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary); }
186
+ .commit-hash { flex: none; font-family: var(--mono); font-size: .8125rem; color: var(--ink); }
187
+ .commit-popover { position: absolute; top: 100%; left: 0; right: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--rule-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 32px rgb(15 23 32 / .14), 0 2px 6px rgb(15 23 32 / .06); }
188
+ .commit-options { max-height: min(24rem, 60vh); margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
189
+ .commit-option { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .625rem; row-gap: .125rem; align-items: baseline; padding: .5rem .875rem; cursor: pointer; }
190
+ .commit-option.active { background: var(--surface-2); }
191
+ .commit-option[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
192
+ .commit-option-head { display: contents; font-size: .875rem; }
193
+ .commit-option-head .commit-subject { font-size: .875rem; }
194
+ .commit-subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
195
+ .commit-tag { flex: 0 1 auto; min-width: 2.5rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .375rem; font-size: .75rem; font-weight: 500; line-height: 1.125rem; color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; }
196
+ .commit-tag-more { flex: none; min-width: 0; color: var(--secondary); background: var(--rule); }
197
+ .commit-option-meta { grid-column: 2; display: flex; align-items: center; gap: .375rem; min-width: 0; overflow: hidden; }
198
+ .commit-meta { flex: none; margin-right: .25rem; white-space: nowrap; font-size: .75rem; color: var(--muted); }
199
+ .commit-meta, .commit-option-head .commit-hash { font-family: inherit; }
200
+ .commit-option-head .commit-hash { font-family: var(--mono); font-size: .8125rem; color: var(--secondary); }
201
+ .commit-option mark { color: inherit; background: var(--warn-bg); border-radius: 2px; }
202
+ .commit-status { margin: 0; padding: .4375rem .875rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--rule); }
203
+ .inspection-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .75rem; color: var(--secondary); }
204
+ .status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); }
205
+ .inspection-meta .status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); }
206
+ .inspection-meta .status[data-status="complete"]::before { background: var(--good); }
207
+ .inspection-meta .status[data-status="partial"]::before { background: var(--grade-c); }
208
+ .download { color: var(--secondary); }
209
+ .tabs { display: flex; gap: .25rem 1.375rem; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
210
+ .tabs::-webkit-scrollbar { display: none; }
211
+ .tabs a { flex: none; display: inline-flex; align-items: center; gap: .375rem; min-height: 40px; padding: 0 .1rem; color: var(--secondary); font-size: .875rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
212
+ .tabs a:hover { color: var(--ink); }
213
+ .tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
214
+ .tab-count { min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--rule); color: var(--secondary); font-size: .75rem; font-weight: 600; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; }
215
+ .tab-count:empty { display: none; }
216
+
217
+ /* Page */
218
+ main { max-width: var(--content); margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; }
219
+ main:focus { outline: none; }
220
+ #message { color: var(--secondary); }
221
+ .detail { color: var(--secondary); font-size: .875rem; }
222
+ .empty { padding-block: 1rem; }
223
+ .card, .panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
224
+ .panel { min-width: 0; padding: 1rem 1.25rem; }
225
+ .panel > h2, .panel > h3, .fx-view .panel h2 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
226
+ .panel + .panel, .revisions { margin-top: 1rem; }
227
+ .section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .75rem; }
228
+ .section-heading h2 { margin: 0; }
229
+ .section-heading .detail { margin-top: .2rem; }
230
+ .text-link { font-size: .875rem; font-weight: 500; }
231
+
232
+ /* Overview */
233
+ .overview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 2.5rem; align-items: start; }
234
+ .overview-grid:has(> aside:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); }
235
+ .verdict-card { overflow: hidden; }
236
+ .verdicts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
237
+ .verdict {
238
+ display: flex;
239
+ align-items: center;
240
+ gap: .9rem;
241
+ min-width: 0;
242
+ min-height: 4.5rem;
243
+ padding: .875rem 1.25rem;
244
+ position: relative;
245
+ background: var(--band);
246
+ border-left: 1px solid var(--rule);
247
+ cursor: pointer;
248
+ }
249
+ .verdict:first-child { border-left: 0; }
250
+ .verdict:has(.verdict-tab[aria-selected="true"]) { background: var(--surface); box-shadow: inset 0 2px 0 var(--accent); }
251
+ .verdict:hover:not(:has(.verdict-tab[aria-selected="true"])) { background: var(--surface-2); }
252
+ .verdict-text { display: grid; justify-items: start; min-width: 0; }
253
+ /* The tab is the area's name; it stretches over the whole cell, so a click anywhere but the detail's link selects it. */
254
+ .verdict-tab { padding: 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
255
+ .verdict-tab::after { content: ""; position: absolute; inset: 0; }
256
+ .verdict-tab:focus-visible { outline: none; }
257
+ .verdict:has(.verdict-tab:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
258
+ .verdict-detail { color: var(--secondary); font-size: .875rem; overflow-wrap: anywhere; }
259
+ /* The coverage kinds beyond lines: a quieter second line under the headline's detail. */
260
+ .verdict-more { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
261
+ .verdict-more > span { white-space: nowrap; }
262
+ /* A detail that counts something leads to exactly what it counts. */
263
+ .verdict-detail a { position: relative; z-index: 1; color: inherit; text-decoration-color: var(--rule-strong); }
264
+ .verdict-detail a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
265
+ .mark { flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; font-size: 1.25rem; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
266
+ .grade { background: var(--grade-a); }
267
+ .grade[data-grade="B"] { background: var(--grade-b); }
268
+ .grade[data-grade="C"] { background: var(--grade-c); }
269
+ .grade[data-grade="D"] { background: var(--grade-d); }
270
+ .grade[data-grade="F"] { background: var(--grade-f); }
271
+ .grade[data-grade="none"] { background: var(--grade-none); }
272
+ .ring { color: var(--ink); }
273
+ .ring svg { width: 2.5rem; height: 2.5rem; }
274
+ .ring-track { fill: none; stroke: var(--rule); stroke-width: 4.5; }
275
+ .ring-arc { fill: none; stroke: var(--grade-a); stroke-width: 4.5; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 20px 20px; }
276
+ .ring-label { fill: var(--ink); font-size: 12.5px; font-weight: 650; text-anchor: middle; }
277
+ .severity { background: var(--grade-a); font-size: 1.125rem; }
278
+ .severity[data-severity="none"] { background: var(--grade-none); }
279
+ .severity[data-severity="low"] { background: var(--grade-b); }
280
+ .severity[data-severity="medium"] { background: var(--grade-c); }
281
+ .severity[data-severity="high"] { background: var(--grade-d); }
282
+ .severity[data-severity="critical"] { background: var(--grade-f); }
283
+ @media (prefers-color-scheme: dark) { .mark:not(.ring) { color: #0d1117; } }
284
+
285
+ .trend { padding: 1rem 1.25rem .5rem; }
286
+ .chart { min-width: 0; margin-top: .5rem; }
287
+ .legend { margin-top: .35rem; font-size: .8125rem; color: var(--muted); }
288
+ .lead { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .75rem .25rem .875rem; border-top: 1px solid var(--rule); }
289
+ .figure { min-width: 0; padding: .5rem 1rem; }
290
+ .figure dt { color: var(--secondary); font-size: .8125rem; }
291
+ .figure-value { margin-top: .1rem; font-size: clamp(1.5rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
292
+ .figure-delta { min-height: 1.4em; margin-top: .1rem; font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
293
+ .figure-delta[data-direction="better"] { color: var(--good); }
294
+ .figure-delta[data-direction="worse"] { color: var(--bad); }
295
+ .scope-line { margin-top: .9rem; padding-inline: .2rem; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
296
+ .scope-line + .scope-line { margin-top: .2rem; }
297
+
298
+ .overview-aside { min-width: 0; }
299
+ .overview-aside .section-heading { margin: 1rem 0 0; }
300
+ .overview-aside .section-heading h3 { font-size: 1rem; }
301
+ .overview-hotspot-list { margin: .5rem 0 0; padding: 0; list-style: none; }
302
+ .overview-hotspot-list li + li { border-top: 1px solid var(--rule); }
303
+ .overview-hotspot-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .375rem; text-decoration: none; }
304
+ .hotspot-name { min-width: 0; }
305
+ .hotspot-name strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
306
+ .overview-hotspot-list a:hover strong { text-decoration: underline; }
307
+ .hotspot-name small { display: block; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
308
+ .chip {
309
+ flex: none;
310
+ display: inline-grid;
311
+ place-items: center;
312
+ min-width: 1.75rem;
313
+ height: 1.5rem;
314
+ padding: 0 .4rem;
315
+ border-radius: 6px;
316
+ background: var(--surface-2);
317
+ color: var(--ink);
318
+ font-size: .8125rem;
319
+ font-weight: 650;
320
+ font-variant-numeric: tabular-nums;
321
+ }
322
+ .chip[data-band="0"] { background: var(--heat-0); color: var(--heat-ink); }
323
+ .chip[data-band="1"] { background: var(--heat-1); color: var(--heat-ink); }
324
+ .chip[data-band="2"] { background: var(--heat-2); color: var(--heat-ink); }
325
+ .chip[data-band="3"] { background: var(--heat-3); color: #fff; }
326
+ .chip[data-band="4"] { background: var(--heat-4); color: #fff; }
327
+
328
+ /* Charts */
329
+ .tc { display: block; overflow: visible; font-family: var(--sans); font-variant-numeric: tabular-nums; }
330
+ .tc-grid { stroke: var(--rule); stroke-width: 1; }
331
+ .tc-base { stroke: var(--rule-strong); stroke-width: 1; }
332
+ .tc-tick, .tc-label { fill: var(--muted); font-size: 13px; }
333
+ .tc-line { fill: none; stroke: var(--series); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
334
+ .tc-line-secondary { stroke: var(--series-2); stroke-width: 2; }
335
+ .trend-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin: 0; font-size: .75rem; color: var(--secondary); }
336
+ .trend-key-item { display: inline-flex; align-items: center; gap: .4rem; }
337
+ /* Each key entry switches its line: struck through and faded when off; the last line left cannot be switched off. */
338
+ button.trend-key-item { min-height: 1.75rem; padding: 0 .375rem; font: inherit; color: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer; }
339
+ button.trend-key-item:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
340
+ button.trend-key-item:disabled { cursor: default; }
341
+ button.trend-key-item[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
342
+ button.trend-key-item[aria-pressed="false"]::before { opacity: .35; }
343
+ /* With its companion alone, the line keeps the companion's grey. */
344
+ .chart-companion-only .tc-line { stroke: var(--series-2); stroke-width: 2; }
345
+ .trend-key-item::before { content: ""; width: 1rem; height: 2.5px; border-radius: 2px; background: var(--series); }
346
+ .trend-key-second::before { height: 2px; background: var(--series-2); }
347
+ .tc-tick-secondary { fill: var(--muted); }
348
+ .tc-dot { fill: var(--surface); stroke: var(--series); stroke-width: 2; }
349
+ .tc-dot-current { fill: var(--series); stroke: var(--surface); stroke-width: 2.5; }
350
+ .tc-dot-partial { fill: var(--surface); stroke-dasharray: 2 2; }
351
+ .tc-value { fill: var(--ink); font-size: 13px; font-weight: 500; paint-order: stroke; stroke: var(--surface); stroke-width: 7px; stroke-linejoin: round; }
352
+ .tc-value-current { font-size: 14px; font-weight: 650; }
353
+ .tc-bar-better { fill: var(--good); opacity: .75; }
354
+ .tc-bar-worse { fill: var(--bad); opacity: .75; }
355
+ .tc-bar-current { opacity: 1; }
356
+ .tc-xtick { stroke: var(--rule-strong); stroke-width: 1; }
357
+ .tc-missing-mark { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
358
+ .tc-profile-changed, .tc-profile-unavailable { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
359
+ .tc-profile-unavailable { stroke-dasharray: 1 4; }
360
+ .tc-zero-mark { stroke: var(--secondary); stroke-width: 2; }
361
+ .tc-guide { stroke: var(--rule-strong); stroke-width: 1; pointer-events: none; }
362
+ .chart-interactive { position: relative; }
363
+ .chart-interactive .tc { cursor: pointer; touch-action: pan-y; }
364
+ .tc-point:focus { outline: none; }
365
+ .tc-point.is-active .tc-dot { r: 5.5; stroke-width: 2.5; }
366
+ .tc-hover-dot { pointer-events: none; }
367
+ .tc:focus { outline: none; }
368
+ .tc:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
369
+ .tc-point.is-active .tc-bar { opacity: 1; }
370
+ .tc-point:focus-visible .tc-dot, .tc-point:focus-visible .tc-bar { stroke: var(--focus); stroke-width: 3; }
371
+ .tc-tip {
372
+ position: absolute; z-index: 2; pointer-events: none;
373
+ display: grid; align-content: start; min-width: 9rem; max-width: 16rem;
374
+ /* A cluster's card scrolls inside itself, not the page. */
375
+ max-height: min(22rem, 60vh); overflow-y: auto; overscroll-behavior: contain;
376
+ padding: .5rem .625rem .5625rem;
377
+ background: var(--surface); color: var(--ink);
378
+ border: 1px solid var(--rule-strong); border-radius: 6px;
379
+ box-shadow: 0 2px 10px rgb(0 0 0 / .08);
380
+ font-size: .8125rem; line-height: 1.35;
381
+ }
382
+ .tc-tip[hidden] { display: none; }
383
+ .tc-tip-entry { display: grid; gap: .125rem; }
384
+ .tc-tip-held { pointer-events: auto; }
385
+ a.tc-tip-entry { margin-inline: -.375rem; padding-inline: .375rem; border-radius: 4px; color: inherit; text-decoration: none; }
386
+ a.tc-tip-entry:hover { background: var(--surface-2); }
387
+ .tc-tip-entry + .tc-tip-entry { margin-top: .375rem; padding-top: .4375rem; border-top: 1px solid var(--rule); }
388
+ .tc-tip strong { font-weight: 600; }
389
+ .tc-tip code { color: var(--muted); font-size: .75rem; }
390
+ .tc-tip-subject { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: .8125rem; }
391
+ .tc-tip-value { margin-top: .25rem; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
392
+ .tc-tip-change { font-size: .8125rem; font-weight: 500; color: var(--secondary); }
393
+ .tc-tip-change[data-direction="better"] { color: var(--good); }
394
+ .tc-tip-change[data-direction="worse"] { color: var(--bad); }
395
+ .tc-tip-note { color: var(--secondary); }
396
+ .tc-flag-best { fill: var(--flag-good); }
397
+ .tc-flag-worst { fill: var(--flag-bad); }
398
+ .tc-tip-flag { display: flex; align-items: center; gap: .375rem; margin-top: .125rem; font-weight: 500; }
399
+ .tc-tip-flag svg { flex: none; width: .6875rem; height: .875rem; }
400
+ .spark { display: block; overflow: visible; }
401
+ .spark-line { fill: none; stroke: var(--series); stroke-width: 1.75; }
402
+ .spark-dot { fill: var(--series); }
403
+
404
+ /* Trends page */
405
+ .trend-nav { display: grid; gap: 1.125rem; }
406
+ .trend-group h3 { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 1.5rem; margin: 0 0 .3rem; padding: 0 .5rem 0 .75rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
407
+ /* A group's reading: the grade or the coverage in its colour when it earns one, the size plain. */
408
+ .trend-reading { flex: none; min-width: 1.25rem; padding: 0 .4rem; border-radius: 999px; background: var(--rule); color: var(--secondary); font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.25rem; text-align: center; text-transform: none; font-variant-numeric: tabular-nums; }
409
+ .trend-reading-grade, .trend-reading-good { color: #fff; background: var(--grade-a); }
410
+ .trend-reading-grade[data-grade="B"] { background: var(--grade-b); }
411
+ .trend-reading-grade[data-grade="C"] { background: var(--grade-c); }
412
+ .trend-reading-grade[data-grade="D"] { background: var(--grade-d); }
413
+ .trend-reading-grade[data-grade="F"] { background: var(--grade-f); }
414
+ .trend-group ul { margin: 0; padding: 0; list-style: none; }
415
+ .trend-group a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 32px; padding: 0 .5rem 0 .75rem; border-radius: 6px; color: var(--secondary); font-size: .875rem; text-decoration: none; }
416
+ .trend-group a:hover { color: var(--ink); background: var(--surface-2); }
417
+ .trend-group a[aria-current] { color: var(--ink); background: var(--surface-2); font-weight: 500; }
418
+ .trend-value { flex: none; color: var(--ink); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
419
+ .trend-select { display: none; }
420
+ .trend-main { min-width: 0; }
421
+ .trend-frame.panel { padding: 1.25rem 1.5rem 1rem; }
422
+ /* What a chart means and how to read it is set like its key: small, secondary grey. */
423
+ .trend-frame > .detail { margin: .5rem 0 0; }
424
+ .trend-frame > .detail, #trend-detail { font-size: .75rem; color: var(--secondary); }
425
+ .trend-frame-tools { display: flex; justify-content: flex-end; margin-bottom: .25rem; }
426
+ .trend-frame-tools select { min-height: 2rem; font-size: .8125rem; }
427
+ .trend-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .75rem 1.5rem; margin-bottom: 1rem; }
428
+ .trend-headline { margin: 0 0 .25rem; font-size: 1.25rem; }
429
+ .trend-head .detail { max-width: 40rem; }
430
+ .trend-head > :first-child { flex: 1 1 16rem; min-width: 0; }
431
+ .trend-period select { min-width: 11rem; }
432
+ .trend-subhead { margin-top: 1.75rem; }
433
+ .trend-main .revisions { margin-top: 2rem; }
434
+ .change[data-direction="better"] { color: var(--good); }
435
+ .change[data-direction="worse"] { color: var(--bad); }
436
+ .change:not([data-direction]) { color: var(--muted); }
437
+
438
+ .profile-event { margin-bottom: .8rem; padding: .5rem .7rem; color: var(--notice); background: var(--notice-bg); border-radius: 6px; font-size: .875rem; }
439
+ .section-intro { margin-bottom: 1rem; }
440
+
441
+ /* Components */
442
+ .component table a { overflow-wrap: anywhere; }
443
+
444
+
445
+ /* Tables */
446
+ .table-scroll { overflow: auto; max-width: 100%; }
447
+ table { width: 100%; border-collapse: collapse; font-size: .875rem; }
448
+ th, td { padding: .5rem .75rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
449
+ thead th { color: var(--secondary); font-size: .75rem; font-weight: 500; white-space: nowrap; }
450
+ tbody th { font-weight: 500; }
451
+ tbody tr:hover { background: var(--band); }
452
+ tbody tr.current { background: var(--selected); }
453
+ tbody tr:last-child > * { border-bottom: 0; }
454
+ .numeric { text-align: right; font-variant-numeric: tabular-nums; }
455
+ .commit { display: inline-flex; align-items: center; white-space: nowrap; }
456
+
457
+ /* Projects index */
458
+ .project-index tbody a { display: inline-flex; align-items: center; font-weight: 600; }
459
+ .grade-inline { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: .55rem; border-radius: 5px; color: #fff; font-size: .8125rem; font-weight: 650; vertical-align: middle; }
460
+ .project-index td:last-child { color: var(--secondary); white-space: nowrap; }
461
+
462
+ @media (max-width: 72rem) {
463
+ .overview-grid:has(> aside:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
464
+ .overview-aside { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
465
+ .overview-aside > :not(#overview-sunburst) { grid-column: 2; }
466
+ .overview-aside #overview-sunburst { grid-row: 1 / span 4; }
467
+ }
468
+ @media (max-width: 52rem) {
469
+ .verdicts { grid-auto-flow: row; }
470
+ .verdict { border-left: 0; border-top: 1px solid var(--rule); min-height: 4.5rem; }
471
+ .verdict:first-child { border-top: 0; }
472
+ .verdict:has(.verdict-tab[aria-selected="true"]) { box-shadow: inset 3px 0 0 var(--accent); }
473
+ .lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
474
+ .overview-aside { display: block; }
475
+ .trends-layout > .trend-picker { order: -1; }
476
+ .trend-nav { display: none; }
477
+ .trend-select { display: grid; }
478
+ }
479
+ @media (max-width: 40rem) {
480
+ .topbar-row { padding-top: 1rem; }
481
+ /* A phone reads the report; the raw data download belongs to a desk. */
482
+ .inspection-meta { display: none; }
483
+ .commit-control { width: 100%; margin-left: 0; }
484
+ .commit-control.open { width: 100%; }
485
+ .verdict { min-height: 3.5rem; padding-block: .625rem; gap: .75rem; }
486
+ .verdict .mark, .ring svg { width: 2.125rem; height: 2.125rem; font-size: 1.0625rem; }
487
+ h1 { font-size: 1.375rem; }
488
+ .verdict, .trend { padding-inline: 1rem; }
489
+ .figure { padding-inline: .6rem; }
490
+ .figure-value { font-size: 1.5rem; }
491
+ }
492
+
493
+ /* Links inside lists and tables read by colour; the underline appears on hover. */
494
+ :is(table, .fx-ranking, .fx-function-list, .fx-breadcrumbs, .fx-event-list) a:not(:hover) { text-decoration: none; }
495
+
496
+ /* Touch screens keep 44 px targets; a mouse gets the denser desktop rhythm. */
497
+ @media (pointer: coarse) {
498
+ :root { --control: 2.75rem; }
499
+ .tabs a { min-height: 44px; }
500
+ .trend-group a, .overview-hotspot-list a { min-height: 44px; }
501
+ th, td { padding-block: .625rem; }
502
+ }
503
+ .revisions .section-heading { margin-bottom: .25rem; }
504
+ .revisions-filter input { width: 15rem; }
505
+ .revisions th[scope="row"] { font-weight: 400; }
506
+ .revision-key { display: flex; align-items: baseline; gap: .625rem; max-width: clamp(12rem, 40vw, 34rem); }
507
+ .revision-time, .revisions td { white-space: nowrap; }
508
+ .revision-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary); }
509
+ .revisions-more { display: block; width: 100%; min-height: var(--control); margin-top: .5rem; font-size: .875rem; color: var(--secondary); background: var(--band); border: 1px solid var(--rule); border-radius: 6px; }
510
+ .revisions-more:hover { color: var(--ink); border-color: var(--rule-strong); }
511
+ .revisions table { font-variant-numeric: tabular-nums; }
512
+ .change[data-direction="same"] { color: var(--muted); }
513
+ .figure-delta:empty { display: none; }
514
+ .lead-empty { grid-column: 1 / -1; margin: 0; padding: .25rem 1rem; font-size: .875rem; color: var(--muted); }
515
+ .project-index .topbar-row { padding-bottom: .875rem; }
516
+ .project-index .section-heading { align-items: center; }
517
+ .project-filter input { width: 15rem; }
518
+ .project-sort { grid-auto-flow: column; align-items: center; gap: .5rem; }
519
+ abbr.grade-inline { text-decoration: none; cursor: help; }
520
+
521
+ /* Every disclosure draws the same chevron as the selects: pointing right while closed, down while open. */
522
+ summary { list-style: none; }
523
+ summary::-webkit-details-marker { display: none; }
524
+ details:not(.fx-columns) > summary::before { content: ""; display: inline-block; flex: none; width: .625rem; height: .625rem; margin-right: .5rem; vertical-align: .05em; background: currentColor; opacity: .7; -webkit-mask: var(--chevron-mask) center / contain no-repeat; mask: var(--chevron-mask) center / contain no-repeat; transform: rotate(-90deg); transition: transform .12s ease-out; }
525
+ details[open]:not(.fx-columns) > summary::before { transform: none; }
526
+ .fx-issue-summary::before { position: absolute; top: 50%; left: 1rem; margin: -.3125rem 0 0; }
527
+ .fx-issue-summary { position: relative; padding-left: 2.125rem; }
528
+ @media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }
529
+
530
+ /* The Overview hotspot column while the inspection loads: placeholder rows of the real rows' size, or the previous
531
+ commit's map and ranking held dimmed until the new ones arrive. */
532
+ .overview-hotspot-stub li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .375rem; }
533
+ .overview-hotspot-stub li > span:first-child { display: grid; gap: .375rem; flex: 1; }
534
+ .stub-line { display: block; width: 55%; height: .875rem; border-radius: 3px; background: var(--surface-2); }
535
+ .stub-line-short { width: 80%; height: .625rem; }
536
+ .stub-chip { flex: none; width: 2.25rem; height: 1.5rem; border-radius: 6px; background: var(--surface-2); }
537
+ .overview-stale #overview-sunburst, .overview-stale #overview-hotspot-list { opacity: .45; transition: opacity .15s .1s; }
538
+
539
+ /* The footer: where the tool lives and on what terms. Light: a hairline, no fill; at the bottom of a short page. */
540
+ body { display: flex; flex-direction: column; }
541
+ body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; padding-bottom: 4rem; }
542
+ .site-footer { margin-top: auto; }
543
+ .site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; max-width: var(--content); margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.5rem; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
544
+ .site-footer p { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; }
545
+ .site-footer a { display: inline-flex; align-items: center; gap: .4rem; color: var(--secondary); text-decoration: none; }
546
+ .site-footer a:hover { color: var(--ink); text-decoration: underline; }
547
+ .site-footer-icon { width: 1rem; height: 1rem; fill: currentColor; }
548
+
549
+ /* A security level in a list: the letter of the security mark in its grade colour. */
550
+ .chip-level { color: #fff; background: var(--grade-a); }
551
+ .chip-level[data-level="1"] { background: var(--grade-b); }
552
+ .chip-level[data-level="2"] { background: var(--grade-c); }
553
+ .chip-level[data-level="3"] { background: var(--grade-d); }
554
+ .chip-level[data-level="4"] { background: var(--grade-f); }
555
+ @media (prefers-color-scheme: dark) { .chip-level { color: #0d1117; } }
556
+ /* An area with no chart says so once, in the chart's place; the figures under it would only repeat it. */
557
+ .verdict-card:has(#trend[data-empty="true"]) .lead:has(.lead-empty) { display: none; }
558
+ /* A lead figure that counts findings, files or a function leads to them, with a quiet underline. */
559
+ .figure-value a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: .15em; }
560
+ .figure-value a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
@@ -0,0 +1,64 @@
1
+ .pull-picker { min-width: 12rem; }
2
+ .pull-picker { grid-auto-flow: column; align-items: center; gap: .5rem; }
3
+ .pull-revisions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; margin-bottom: .9rem; }
4
+ .pull-revisions time { margin-left: auto; }
5
+ .pull-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem 1.25rem; }
6
+ .pull-summary-block > .detail { margin-top: .85rem; }
7
+ .pull-fact { min-width: 0; border-top: 1px solid var(--rule); padding-top: .6rem; }
8
+ .pull-value { display: block; font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; margin: .125rem 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
9
+ .pull-gate { display: inline-block; margin-top: .4rem; font-size: .8125rem; }
10
+ .pull-gate[data-status="failed"] { background: var(--bad-bg); color: var(--bad-ink); }
11
+ .pull-section { margin-top: 1.25rem; min-width: 0; }
12
+ .pull-section h3 { margin-bottom: .4rem; }
13
+ .pull-exclusions { margin-bottom: .65rem; overflow-wrap: anywhere; }
14
+ .pull-table { table-layout: auto; }
15
+ .pull-table th, .pull-table td { min-width: 0; vertical-align: top; overflow-wrap: anywhere; }
16
+ .pull-coverage-table thead th:not(:first-child) { text-align: right; overflow-wrap: normal; }
17
+ .pull-table td.numeric { white-space: nowrap; }
18
+ .pull-missed-lines { margin-top: .15rem; font-size: .875rem; font-weight: 400; color: var(--secondary); }
19
+ .pull-missed-lines summary { align-content: center; min-height: 44px; cursor: pointer; color: var(--accent); width: fit-content; }
20
+ .pull-missed-lines span { display: block; margin-bottom: .45rem; }
21
+ .pull-gaps { margin: .25rem 0 0; padding-left: 1.25rem; color: var(--secondary); overflow-wrap: anywhere; }
22
+ .pull-trend-axis, .pull-trend-list { --label-width: 10.5rem; --result-width: 12rem; --column-gap: 1rem; }
23
+ .pull-trend-axis {
24
+ display: flex;
25
+ justify-content: space-between;
26
+ margin-inline: calc(var(--label-width) + var(--column-gap)) calc(var(--result-width) + var(--column-gap));
27
+ font-size: .8125rem;
28
+ color: var(--secondary);
29
+ }
30
+ .pull-trend-list { margin: .45rem 0 0; padding: 0; list-style: none; }
31
+ .pull-trend-row {
32
+ display: grid;
33
+ grid-template-columns: var(--label-width) minmax(0, 1fr) var(--result-width);
34
+ column-gap: var(--column-gap);
35
+ align-items: center;
36
+ padding: .55rem 0;
37
+ border-top: 1px solid var(--rule);
38
+ }
39
+ .pull-trend-subject > *, .pull-trend-result > * { display: block; }
40
+ .pull-trend-result { font-variant-numeric: tabular-nums; }
41
+ .pull-trend-track { min-width: 0; height: .7rem; background: var(--accent-soft); }
42
+ .pull-trend-bar { height: 100%; background: var(--accent); }
43
+ .pull-trend-bar[data-status="partial"] { background: repeating-linear-gradient(135deg, var(--event) 0 3px, var(--notice-bg) 3px 7px); }
44
+ .pull-trend-empty { background: none; border-bottom: 1px dashed var(--rule); }
45
+ @media (max-width: 58rem) {
46
+ .pull-trend-axis { margin-inline: 0; }
47
+ .pull-trend-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: .3rem; }
48
+ .pull-trend-result { grid-column: 2; grid-row: 1; text-align: right; }
49
+ .pull-trend-track { grid-column: 1 / -1; }
50
+ }
51
+ @media (max-width: 42rem) {
52
+ .pull-revisions time { width: 100%; margin: 0; }
53
+ .pull-picker { min-width: 0; }
54
+ .pull-summary { column-gap: .65rem; }
55
+ .pull-fact > .detail:first-child { display: block; min-block-size: 2.5em; line-height: 1.25; }
56
+ .pull-table th, .pull-table td { padding-inline: .375rem; }
57
+ }
58
+ @media (max-width: 23rem) {
59
+ .pull-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
60
+ }
61
+
62
+ .pull-heading { margin-bottom: 1rem; }
63
+ .pull-heading h2 { margin: 0; }
64
+ .pull-number { color: var(--muted); font-weight: 500; }
@@ -0,0 +1,6 @@
1
+ import type { DiffCoverageReport } from '../../core/usecases/diff-coverage.js';
2
+ import type { PullReview } from '../../core/model/pull-review.js';
3
+ import type { Report } from '../../core/model/report.js';
4
+ export declare function writeGitHubResult(report: Report): Promise<void>;
5
+ export declare function writeGitHubDiffCoverage(report: DiffCoverageReport): Promise<void>;
6
+ export declare function writeGitHubReview(report: PullReview, repository?: string): Promise<void>;