Repository navigation
Conversation
The board read model sent every meeting stamp through Date.parse, which accepts only strings, while the meetings writer stores Date.now() epoch milliseconds — so a meeting the product itself recorded listed with an empty date column beside decision files that showed their YYYY-MM-DD day. A finite number is now the instant, and both kinds format by the writer's own UTC day, so a meeting and its archived decisions/YYYY-MM-DD-*.md always name the same day. A non-parseable string still reads as no date (ThinkFlowLab#2587); this fixes ThinkFlowLab#3326.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3326
Owner: Dev-1
Reviewer: hsliuustc0106
Written-by: Dev-1
Bot: FlyBot Dev-1
What changed
Before: a meeting the product itself recorded (
core/src/host/meetings.jswritescreatedAt/decidedAtasDate.now()epoch milliseconds) listed in the board's Meetings and Decisions lists with an empty date column, while the decision-file rows beside it showedYYYY-MM-DD.dayOf()sent every value throughDate.parse(text(value)), andtext()accepts only strings, so a number parsed asNaNand the row's date became''.After: a finite number is taken as the instant, and both kinds format by the writer's own rule (
new Date(ms).toISOString().slice(0, 10), the daymeetings.jsputs in the archiveddecisions/YYYY-MM-DD-*.mdname), so a meeting and its decision file always name the same day. A non-parseable string still reads as no date — #2587's behaviour is unchanged and its existing case stays green.Screenshots (real render: real
ProjectBoardPane+PROJECT_BOARD_CSS+ zh dictionary overrt.projectBoard, one fixture in whichm1/m2carry the numeric stampmeetings.jswrites andm3carries an ISO string; only the source differs between the two):352a6f03— https://raw.githubusercontent.com/HugoXK/FlyBot/evidence/3326/shots/3326/before.png —decided=m1="",m3="2026-11-01" pending=m2=""decided=m1="2023-11-14",m3="2026-11-01" pending=m2="2023-11-14"The two images live in the orphan commit
5b4ca3a053f23e1ab6cf97c0c8d5a9a6614c727d(shots/3326/), so they are not part of this diff.Verification at the tip
Tip SHA:
fedff8ebb9f2170fa9a4a93a802df203e1b2f8f5Red first, on the new base
352a6f03241b1ec1333ba38a4e84ff8e4c1d6eed(shipped test file, source reverted),cd plugins/project && TZ=UTC node --import ./test/resolve.mjs --test test/project-board-meeting-date.test.js, twice:# tests 3 / # pass 1 / # fail 2both runs —a meeting the product recorded (epoch ms stamps) lists with its day:expected: '2023-11-14',actual: ''a meeting opened and decided by the product lists with the day it closed:expected: '2026-11-23',actual: ''Green after the fix, same command, twice:
# tests 3 / # pass 3 / # fail 0both runs.Ran at the tip, all green unless named:
npm --prefix plugins/project test153/153;plane25/25;plugins/social765/765;plugins/tree157/157;plugins/timeline178/178;plugins/workflow544/544;node scripts/lint-plugins.mjs0 errors;node --test ".github/scripts/*.test.mjs" "policy/*.test.mjs"735/735;npm run lint:interop+test:interop37/37;npm run lint:live-e2e+test:live-e2e34/34;node scripts/ds-bot-patches.mjs checkok 10 patches apply cleanly in orderandok core/ equals ds-bot/ + patches/ds-bot/,canonicalok;ARCH_DOCS_BASE=352a6f03241b1ec1333ba38a4e84ff8e4c1d6eed npm run arch-docs→arch-docs: OK (4 changed file(s)).Core suite:
npm --prefix core testgives# tests 3450 / # pass 3449 / # fail 1; the single red isbench.sh refuses before writing the profile when pnpm is missing, which fails identically on the untouched base352a6f03(# tests 7 / # pass 6 / # fail 1) because this box's/bin/shprintspnpm: not foundinstead of the script's own sentence — an environment difference, not this change. With that one test skipped the suite is# tests 3449 / # pass 3449 / # fail 0.Not run:
TZ=UTC npm run verifyas one green command (it stops at that base-identical core red; every stage after it ran separately above), and smoke.Diff:
plugins/project/src/project-board.js(dayOf, +3/−1), the existingplugins/project/test/project-board-meeting-date.test.js(+51), one line indocs/subsystems/project.md, andchangelog.d/3326-meeting-date.fixed.md. Nocore/, nopatches/, no client bundle, no generated file.Checkpoint
{ "pr": 3331, "claim": "Dev-1", "issue": 3326, "summary": "The board read model formatted only string stamps while the meetings writer stores Date.now() epoch milliseconds, so a meeting the product recorded listed with an empty date column. dayOf() now takes a finite number as the instant and formats both kinds by the writer's own UTC day, so a meeting and its archived decisions/YYYY-MM-DD-*.md name the same day; a non-parseable string still reads as no date (#2587). Red on base 352a6f03 twice (3/1/2), green twice (3/3/0); project suite 153/153, core suite 3449/3450 with the one base-identical /bin/sh pnpm red, arch-docs OK (4 files).", "files": [ "plugins/project/src/project-board.js", "plugins/project/test/project-board-meeting-date.test.js", "docs/subsystems/project.md", "changelog.d/3326-meeting-date.fixed.md" ], "checks": { "ran": "red twice on base 352a6f03; green twice at the tip; plugins/project, plane, social, tree, timeline, workflow suites; core suite 3449/3450 (base-identical env red); arch-docs OK; patches check+canonical", "result": "green", "at": "fedff8ebb9f2170fa9a4a93a802df203e1b2f8f5" }, "next": "none — ready for review" }