Skip to content

Project gridlines: Current Date line defaults to solid Automatic (#1688) - #1861

Merged
yeroo merged 2 commits into
mainfrom
issue-1688-project-gridlines-the-current-da
Nov 4, 2026
Merged

yeroo merged 2 commits into
mainfrom
issue-1688-project-gridlines-the-current-da

Conversation

@yeroo

@yeroo yeroo commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Closes #1688.

What changed

  • Line::CurrentDate.default_style() is now Gridline::solid() (Automatic colour) instead of none, so a plan without gridline settings draws a Current Date line wherever its CurrentDate option is set, in the suite chart and yppxy, as Project 2024 does. A Current Date: None is now stored as a real setting and round-trips through formatting.xml. Status Date, Project Start and Finish stay none.
  • Style: solid, per the owner's newer Project 2024 capture and CUS-283 (rather than the issue's original short-dashed proposal). The green of that capture is not measured in this repo, so the colour is Automatic; drawing the measured green is a follow-up.
  • Side effects (documented in CLAUDE.md): every MSPDI Project wrote carries CurrentDate, so existing plans now show the line; a new docxy plan has no CurrentDate, so it draws none until one is set; an older build's stored solid-Automatic Current Date is now the default and is dropped on next save; a plugin's null for Current Date now means solid (send {"type":"none"} to turn it off).

Tests

  • projcore: defaults pinned, none stored and round-tripped through formatting.xml; interval test switched to Dotted.
  • suite gantt/tests.rs and yppxy: a_plan_with_a_current_date_draws_its_line_by_default.
  • cargo test -p projcore -p yppxy, cargo test --bin suite, clippy on projcore/yppxy.

Review

revmux round 1: 0 Major, 3 Minor + 2 Immaterial (docs, test names, an assert message), all fixed in fe5e932.
review stopped: round 1 had no Major; all findings fixed

🤖 Generated with Claude Code

https://claude.ai/code/session_01HSDL3oGXV3MLh5XAYGtSLt

yeroo and others added 2 commits November 4, 2026 12:23
Project 2024 draws a Current Date line on a new plan, but the model's
default was none, so a plan without gridlines drew none and a
"Current Date: None" could not be stored. The default is now a solid
line in the host's colour (Project's green is unmeasured); Status Date,
Project Start and Finish stay none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSDL3nzt9KmfLuszLERCMF
Docs no longer claim every default is what the hosts drew before the
model; Current Date's default is Project's, and it draws only where the
plan's CurrentDate option is set. Note that the default moved without a
format marker (an older stored solid Current Date is now dropped on
save, a plugin's null now means solid). Test names follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HSDL3nzt9KmfLuszLERCMF
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yeroo
yeroo merged commit 3ca6955 into main Nov 4, 2026
14 checks passed
@yeroo
yeroo deleted the issue-1688-project-gridlines-the-current-da branch November 4, 2026 09:53
@yeroo

yeroo commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Merged automatically (auto-merge is on for this checkout): review stopped: round 1 had no Major; all findings fixed; merge rounds: none; whole suite on fe5e932 counted as passing (2739 passed, 1 failed: convert_child::tests::a_child_that_dies_is_a_load_error_not_a_crash, the known local memory-pressure flake; this change does not touch convert_child.rs and CI is green, 14/14); merge-check ok.

Follow-up: #1862 (draw the Automatic Current Date line in Project's measured green), filed as its own issue. No disputed or deferred review findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project gridlines: the Current Date line's default is Project's (short-dashed, Automatic), not none

2 participants