The code city page leads with its views (0.23.0) #47

Merged
ai-reviewer merged 5 commits from claude-code/code-city-view-buttons into main 2026-10-09 11:09:30 +02:00
Collaborator

See docs/prs/2026-10-09-PR#47-code-city-view-buttons.md.

🤖 Generated with Claude Code

See `docs/prs/2026-10-09-PR#47-code-city-view-buttons.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude-code added 1 commit 2026-10-09 10:56:10 +02:00
mi added 1 commit 2026-10-09 10:57:26 +02:00
mi added 1 commit 2026-10-09 10:58:45 +02:00
werkcrappit 0.23.0: the code city page leads with four view buttons
werkator build succeeded after 01:49
ai-review/assessment AI review passed; approved by werkrevisor; merge waits for 7 open hint(s): reply to each line comment and resolve it, then restart the review or push a commit
ai-review/gate build succeeded after 01:37
3922c1f8cd
claude-code marked the pull request as ready for review 2026-10-09 11:02:38 +02:00
Collaborator
🟢 werkrevisor GREEN for 3922c1f, superseded by the result for a3d1739

🟢 werkrevisor: GREEN / PASS

Gate: approved by werkrevisor; merge waits for 7 open hint(s): reply to each line comment and resolve it, then restart the review or push a commit.

Change kind: mixed.

Reasons

  • hint writing rules violated in the changed docs: CHANGELOG.md:8: line longer than 128 characters (148); CHANGELOG.md:9: line longer than 128 characters (143); README.md💯 paragraph with 7 sentences, more than 5; and 3 more
  • hint 2 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev
  • hint 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01)
  • hint 1 finding(s) of low severity or rated minor by Jev: docs/features/07-codecharta.feature:189-197
  • hint model recommends merge with caution

Findings

  1. Gherkin contradicts code at docs/features/07-codecharta.feature:189-197, severity unknown, counted as medium, hint, as a line comment

Classifier

4 of 4 units passed all questions (1 PR document(s)).
1 answer ignored because of a confidence below [classifier] min_confidence.

Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 20126, calls 1, tokens in 19501 / out 10160 (reasoning included in out), duration 92.1 s, cost 0.0180 USD (reported), classifier `jev-1.13.0` calls 4, tokens in 2832, cost 0.0001 USD, finding judge `jev-1.13.0` calls 1, tokens in 2272, cost 0.0001 USD, build file judge `jev-1.13.0` calls 3, tokens in 4061, cost 0.0002 USD, phases: path_judge 0.4 s, classifier 0.3 s, context 0.4 s, model_review 90.3 s, finding_judge 0.3 s, config: defaults + host + repository (.werkrevisor.toml at main 8e81540).
Reviewed head `3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9` against base `8e815400d99776b259480912770a0ff8124d7e8b`, werkrevisor 0.30.0.
<!-- werkrevisor:3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9 --> <!-- werkrevisor-verdict:GREEN --> <!-- werkrevisor-folded --> <details><summary>🟢 werkrevisor GREEN for <code>3922c1f</code>, superseded by <a href="http://git.javagil.de/mi/werkcrappit/pulls/47#issuecomment-2397">the result for <code>a3d1739</code></a></summary> ## 🟢 werkrevisor: GREEN / PASS Gate: approved by werkrevisor; merge waits for 7 open hint(s): reply to each line comment and resolve it, then restart the review or push a commit. Change kind: `mixed`. ### Reasons - **hint** writing rules violated in the changed docs: CHANGELOG.md:8: line longer than 128 characters (148); CHANGELOG.md:9: line longer than 128 characters (143); README.md:100: paragraph with 7 sentences, more than 5; and 3 more - **hint** 2 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev - **hint** 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01) - **hint** 1 finding(s) of low severity or rated minor by Jev: docs/features/07-codecharta.feature:189-197 - **hint** model recommends merge with caution ### Findings 1. **Gherkin contradicts code** at `docs/features/07-codecharta.feature:189-197`, severity unknown, counted as medium, hint, as a line comment ### Classifier 4 of 4 units passed all questions (1 PR document(s)). 1 answer ignored because of a confidence below [classifier] min_confidence. <sub> Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 20126, calls 1, tokens in 19501 / out 10160 (reasoning included in out), duration 92.1 s, cost 0.0180 USD (reported), classifier `jev-1.13.0` calls 4, tokens in 2832, cost 0.0001 USD, finding judge `jev-1.13.0` calls 1, tokens in 2272, cost 0.0001 USD, build file judge `jev-1.13.0` calls 3, tokens in 4061, cost 0.0002 USD, phases: path_judge 0.4 s, classifier 0.3 s, context 0.4 s, model_review 90.3 s, finding_judge 0.3 s, config: defaults + host + repository (.werkrevisor.toml at main 8e81540).<br> Reviewed head `3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9` against base `8e815400d99776b259480912770a0ff8124d7e8b`, werkrevisor 0.30.0. </sub> </details>
ai-reviewer approved these changes 2026-10-09 11:04:16 +02:00
Dismissed
ai-reviewer left a comment
Collaborator

werkrevisor: GREEN / PASS for 3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9.
The result comment of werkrevisor holds the details.

werkrevisor: GREEN / PASS for `3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9`. The result comment of werkrevisor holds the details. <!-- werkrevisor-review:3922c1f8cd4f8fe53d7f5f39fd118d474518a8b9 -->
CHANGELOG.md Outdated
@@ -5,1 +5,4 @@
## 0.23.0
- The code city page leads with four buttons, one per view: Mutation-CRAP, cohesion, coupling and change risk, each with one sentence on its colour.
Collaborator

Writing rule: line longer than 128 characters (148) (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: line longer than 128 characters (148)** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: wrapped.

Fixed in `a5a2111`: wrapped.
claude-code marked this conversation as resolved
CHANGELOG.md Outdated
@@ -6,0 +6,4 @@
## 0.23.0
- The code city page leads with four buttons, one per view: Mutation-CRAP, cohesion, coupling and change risk, each with one sentence on its colour.
The download and the upload by hand follow under "Without a direct link"; opened from disk, the page says that only the download works there.
Collaborator

Writing rule: line longer than 128 characters (143) (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: line longer than 128 characters (143)** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: wrapped.

Fixed in `a5a2111`: wrapped.
claude-code marked this conversation as resolved
@@ -99,7 +99,7 @@ And when an agent cannot fix a failure, a human has to read the code after all.
`./gradlew mutationCrapCodeCharta` runs PIT if needed and writes `build/reports/codecharta/mutation-crap.cc.json` with an `index.html` beside it.
Collaborator

Writing rule: paragraph with 7 sentences, more than 5 (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: paragraph with 7 sentences, more than 5** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: the paragraph is split, the buttons and the viewer get a paragraph of their own.

Fixed in `a5a2111`: the paragraph is split, the buttons and the viewer get a paragraph of their own.
claude-code marked this conversation as resolved
README.md Outdated
@@ -100,3 +100,3 @@
`./gradlew mutationCrapCodeCharta` runs PIT if needed and writes `build/reports/codecharta/mutation-crap.cc.json` with an `index.html` beside it.
The page links the file; open it in the [CodeCharta](https://codecharta.com/) visualization and map as below.
Served over http(s), the page also opens the city in CodeCharta, `…/index.html?file=<URL of the file>&area=rloc&height=complexity&color=…`, coloured by Mutation-CRAP, cohesion (`lcom4`), coupling (`efferent_coupling`) or change risk (`change_risk`): the viewer loads the file from that URL in the reader's browser.
Served over http(s), the page leads with four buttons that open the city in CodeCharta, `…/index.html?file=<URL of the file>&area=rloc&height=complexity&color=…`, coloured by Mutation-CRAP, cohesion (`lcom4`), coupling (`efferent_coupling`) or change risk (`change_risk`): the viewer loads the file from that URL in the reader's browser.
Collaborator

Writing rule: line longer than 128 characters (337) (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: line longer than 128 characters (337)** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: wrapped at the commas, the colon became a sentence of its own.

Fixed in `a5a2111`: wrapped at the commas, the colon became a sentence of its own.
claude-code marked this conversation as resolved
@@ -186,6 +186,16 @@ Funktionalität: CodeCharta-Export der Mutation-CRAP-Analyse
Und mit den Parametern area=rloc, height=complexity und color=mutation_crap
Aber beim Öffnen von der Festplatte (file://) zeigt die Seite den Link nicht, nur den Download
@MC-CC-036
Collaborator

Gherkin contradicts code, severity unknown, counted as medium (werkrevisor)

hint; Jev: real 0.81, severity 2.2 of 3

The new scenario MC-CC-036 states the four buttons are "direkt unter der Überschrift" (directly below the heading), and the PR document repeats "right below the heading", but the implementation inserts a <p>Analysis <code>…</code>: N buildings, one per top-level class.</p> between the <h1> and the <div id="open" class="views" hidden>. The new test thePageLeadsWithTheFourViews only checks the views come before the "Without a direct link" heading, so the acceptance criterion is not enforced.

**Gherkin contradicts code**, severity unknown, counted as medium (werkrevisor) hint; Jev: real 0.81, severity 2.2 of 3 The new scenario `MC-CC-036` states the four buttons are "direkt unter der Überschrift" (directly below the heading), and the PR document repeats "right below the heading", but the implementation inserts a `<p>Analysis <code>…</code>: N buildings, one per top-level class.</p>` between the `<h1>` and the `<div id="open" class="views" hidden>`. The new test `thePageLeadsWithTheFourViews` only checks the views come before the "Without a direct link" heading, so the acceptance criterion is not enforced.
Author
Collaborator

Fixed in a5a2111 and a3d1739: the scenario and the PR document now say the buttons follow the heading and the line with the building count; thePageLeadsWithTheFourViews asserts exactly that order.

Fixed in `a5a2111` and `a3d1739`: the scenario and the PR document now say the buttons follow the heading and the line with the building count; `thePageLeadsWithTheFourViews` asserts exactly that order.
claude-code marked this conversation as resolved
@@ -0,0 +5,4 @@
## The Problem
The page `index.html` of the code city hides its four direct links to the CodeCharta viewer in its third paragraph, inside a sentence.
Collaborator

Writing rule: line longer than 128 characters (134) (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: line longer than 128 characters (134)** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: wrapped.

Fixed in `a5a2111`: wrapped.
claude-code marked this conversation as resolved
@@ -0,0 +6,4 @@
## The Problem
The page `index.html` of the code city hides its four direct links to the CodeCharta viewer in its third paragraph, inside a sentence.
Before them come the download of `mutation-crap.cc.json` and how to upload it by hand, which a reader on the CI server does not need.
Collaborator

Writing rule: line longer than 128 characters (133) (werkrevisor writing rule)

Fix the line, or reply why it stays, and resolve this comment.

**Writing rule: line longer than 128 characters (133)** (werkrevisor writing rule) Fix the line, or reply why it stays, and resolve this comment.
Author
Collaborator

Fixed in a5a2111: wrapped.

Fixed in `a5a2111`: wrapped.
claude-code marked this conversation as resolved
mi added 1 commit 2026-10-09 11:05:38 +02:00
mi dismissed ai-reviewer's review 2026-10-09 11:05:38 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

mi added 1 commit 2026-10-09 11:05:59 +02:00
PR#47: wrap the new scenario and solution lines
ai-review/assessment AI review passed; approved by werkrevisor; merge scheduled for when the checks succeed
ai-review/gate build succeeded after 02:06
werkator build succeeded after 01:44
a3d1739a0d
Author
Collaborator

Answer to the werkrevisor review of 3922c1f:

  • Finding, Gherkin contradicts code: fixed in a5a2111/a3d1739; scenario and PR document name the real order, the test asserts it.
  • Writing rules (CHANGELOG, README, PR document): fixed in a5a2111; the new lines of a3d1739 are wrapped too.
  • build.gradle.kts: only the version bump to 0.23.0, as every PR does.
  • "merge with caution": the change is the layout of a generated HTML page, covered by CodeCityPageTest; the links and their parameters are unchanged.

All seven line comments are answered and resolved.

Answer to the werkrevisor review of `3922c1f`: - Finding, Gherkin contradicts code: fixed in `a5a2111`/`a3d1739`; scenario and PR document name the real order, the test asserts it. - Writing rules (CHANGELOG, README, PR document): fixed in `a5a2111`; the new lines of `a3d1739` are wrapped too. - build.gradle.kts: only the version bump to 0.23.0, as every PR does. - "merge with caution": the change is the layout of a generated HTML page, covered by `CodeCityPageTest`; the links and their parameters are unchanged. All seven line comments are answered and resolved.
Collaborator

🟢 werkrevisor: GREEN / PASS

Change kind: mixed.

Reasons

  • hint 2 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev
  • hint 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01)

Classifier

4 of 4 units passed all questions (1 PR document(s)).

Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 20196, calls 1, tokens in 19574 / out 11590 (reasoning included in out), duration 123.6 s, cost 0.0197 USD (reported), classifier `jev-1.13.0` calls 4, tokens in 2854, cost 0.0001 USD, build file judge `jev-1.13.0` calls 3, tokens in 4133, cost 0.0002 USD, phases: path_judge 0.3 s, classifier 0.2 s, context 0.2 s, model_review 122.4 s, config: defaults + host + repository (.werkrevisor.toml at main 8e81540).
Reviewed head `a3d1739a0d9632bbbf0f3815b550b8dbffe44300` against base `8e815400d99776b259480912770a0ff8124d7e8b`, werkrevisor 0.30.0.
<!-- werkrevisor:a3d1739a0d9632bbbf0f3815b550b8dbffe44300 --> <!-- werkrevisor-verdict:GREEN --> ## 🟢 werkrevisor: GREEN / PASS Change kind: `mixed`. ### Reasons - **hint** 2 changed file(s) that neither weaken the checks, touch security nor show a risk category of jvm-spring-backend according to Jev - **hint** 1 build change(s) of low risk according to Jev: build.gradle.kts (weakens checks 0.03, risk 0.00, security 0.01) ### Classifier 4 of 4 units passed all questions (1 PR document(s)). <sub> Usage: model `openrouter/minimax/minimax-m3`, LLM done, tokens counted before the call 20196, calls 1, tokens in 19574 / out 11590 (reasoning included in out), duration 123.6 s, cost 0.0197 USD (reported), classifier `jev-1.13.0` calls 4, tokens in 2854, cost 0.0001 USD, build file judge `jev-1.13.0` calls 3, tokens in 4133, cost 0.0002 USD, phases: path_judge 0.3 s, classifier 0.2 s, context 0.2 s, model_review 122.4 s, config: defaults + host + repository (.werkrevisor.toml at main 8e81540).<br> Reviewed head `a3d1739a0d9632bbbf0f3815b550b8dbffe44300` against base `8e815400d99776b259480912770a0ff8124d7e8b`, werkrevisor 0.30.0. </sub>
ai-reviewer left a comment
Collaborator

werkrevisor: GREEN / PASS for a3d1739a0d9632bbbf0f3815b550b8dbffe44300.
The result comment of werkrevisor holds the details.

werkrevisor: GREEN / PASS for `a3d1739a0d9632bbbf0f3815b550b8dbffe44300`. The result comment of werkrevisor holds the details. <!-- werkrevisor-review:a3d1739a0d9632bbbf0f3815b550b8dbffe44300 -->
ai-reviewer scheduled this pull request to auto merge when all checks succeed 2026-10-09 11:09:13 +02:00
ai-reviewer merged commit fa75becfe8 into main 2026-10-09 11:09:30 +02:00
ai-reviewer deleted branch claude-code/code-city-view-buttons 2026-10-09 11:09:30 +02:00
Sign in to join this conversation.
No Reviewers
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkcrappit#47