Only claim a derived boundary is a source's when boundaryMs treats it that way
The day-precision note ("The source gave a date but no time of day, so this
counts down to that day's server reset...") rendered for any event with
endPrecision "day" and a stated end, with no check on where the date came
from. For a reader's own event that is false three times over: there is no
source (sourceUrl is null, sourceId is "you"), nobody gave a date — for a
repeating occurrence with no stated end the app derived it from the interval
— and it does not count down to a server reset, since boundaryMs only applies
that shift when extractionMethod === "parser". Gated the note on the same
condition so the copy and the countdown agree.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
d1ffac4b9f
commit
d433eeee50
@@ -281,7 +281,16 @@ export function EventDetail({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{event.endPrecision === "day" && event.endsAt !== null && (
|
||||
{/* Gated on the same condition `boundaryMs` uses to apply the reset
|
||||
shift, so the copy never claims a countdown the clock is not
|
||||
actually running. A reader's own event is day-precision exactly as
|
||||
often as a parsed one, but `extractionMethod` is "manual" — there
|
||||
is no source to have "given" a date, and `readerInstant` already
|
||||
resolved it to the instant they meant rather than a placeholder
|
||||
`boundaryMs` has to reinterpret. */}
|
||||
{event.endPrecision === "day" &&
|
||||
event.endsAt !== null &&
|
||||
event.extractionMethod === "parser" && (
|
||||
<p className="mt-3 text-xs leading-relaxed text-faint">
|
||||
The source gave a date but no time of day, so this counts down to
|
||||
that day's {REGION_LABEL[region]} server reset — where these usually land, but a
|
||||
|
||||
Reference in New Issue
Block a user