Repository navigation
feat(fetcher): add deariary_* family for diary entries - #176
Conversation
Three Safe / cached / api.deariary.com fetchers covering the auto-generated diary surface: - deariary_today — most recent entry (today's, falling back to yesterday's when today's hasn't generated yet); 6 shapes (TextBlock / Text / MarkdownTextBlock / LinkedTextBlock / Entries / Badge). - deariary_recent — newest-first list with `limit` (1..=100) + `tag` options; 8 shapes (Timeline default + Text / TextBlock / MarkdownTextBlock / LinkedTextBlock / Entries / Badge / Calendar with current month's entry days highlighted). - deariary_on_this_day — past entries from the same calendar day at 1m/3m/6m/1y/2y/3y/4y/5y anchors fetched in parallel via JoinSet, missing anchors silently skipped; 7 shapes (TextBlock default + Timeline / Text / MarkdownTextBlock / LinkedTextBlock / Entries / Badge). Shared HTTP client (`src/fetcher/deariary/client.rs`) dedups concurrent requests, caches responses for 60s, caps in-flight calls to 4, and honors Retry-After once on 429. `entry_url(date)` produces https://app.deariary.com/entries/YYYY/MM/DD for LinkedTextBlock rows. list_links rendering: add a `without_osc8` thread-local guard and apply it in runtime::render_full_into_buffer so off-screen TestBackend captures don't bake OSC 8 escape sequences into the buffer (real terminal output is unchanged). Ticks #68. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a deariary.com fetcher family with a shared HTTP client, token/caching/dedup helpers, three fetchers (today, recent, on_this_day), structured error payloads and short-circuit error rendering, off-screen OSC8 suppression, and registers the new fetchers in the fetcher registry. Changes
Sequence DiagramssequenceDiagram
participant Fetcher as Deariary<br/>Fetcher
participant Cache as In-process<br/>Cache (dedup, TTL)
participant Sem as Semaphore<br/>(max 4)
participant HTTP as Reqwest<br/>Client
participant API as deariary<br/>API
Fetcher->>Cache: cached_get_entry(token, date)
Cache->>Cache: Check cached value & in-flight slot
alt Cached hit
Cache-->>Fetcher: Return cached value
else Miss
Cache->>Sem: Acquire permit
Sem->>HTTP: send_with_retry(GET /entries/{date} with Bearer)
HTTP->>API: HTTP GET
API-->>HTTP: 200 / 404 / 429 / 5xx
alt 429
HTTP->>HTTP: Parse Retry-After (cap), sleep, retry once
HTTP->>API: Retry GET
API-->>HTTP: Response
end
alt 200
HTTP->>Cache: Store result (60s) and return
else 404
HTTP->>Cache: Store None and return
else error
HTTP-->>Fetcher: Return FetchError
end
Sem->>Sem: Release permit
end
sequenceDiagram
participant Runtime as Runtime
participant Render as render_full_into_buffer
participant OSC8 as without_osc8<br/>suppressor
participant Layout as layout::draw
participant Writer as write_row<br/>(list_links)
participant Buffer as TestBackend<br/>Buffer
Runtime->>Render: Render off-screen
Render->>OSC8: Call closure
OSC8->>OSC8: Set thread-local flag (true)
OSC8->>Layout: layout::draw()
Layout->>Writer: write_row(...)
Writer->>Writer: Check thread-local flag
alt true
Writer->>Buffer: Write text without OSC8
else false
Writer->>Buffer: Write OSC8-wrapped hyperlink
end
Layout-->>OSC8: Done
OSC8->>OSC8: Restore previous flag
OSC8-->>Render: Return
Render-->>Runtime: Off-screen buffer
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #176 +/- ##
==========================================
+ Coverage 78.73% 79.09% +0.36%
==========================================
Files 132 137 +5
Lines 26018 27838 +1820
==========================================
+ Hits 20485 22019 +1534
- Misses 5533 5819 +286
🚀 New features to boost your workflow:
|
- client.rs: doc said semaphore lets "2 in flight" but the const is 4. - recent.rs: drop the local `MAX_LIMIT` const and clamp via the shared `client::MAX_LIST_LIMIT` so the list-page upper bound has one source of truth. - today.rs: render_badge labelled the entry "today" unconditionally, which lied when today's hadn't generated yet and the fetcher fell back to yesterday's. Pass `today` from `Local::now()` into render and resolve the label as `today` / `yesterday` / raw ISO date based on `entry.date`. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/fetcher/deariary/client.rs`:
- Around line 84-108: Cache slots are currently keyed only by date/tag (via
entry_slot(date) and list_slot(tag)) which allows cross-account leakage; update
the slot key to include the token so caches are scoped per-token: change
entry_slot and list_slot to take the token (e.g., entry_slot(token, date) and
list_slot(token, tag_key)) and update all call sites (including
cached_get_entries and the single-entry path that calls entry_slot) to pass the
token; ensure the internal key/hash used by those functions incorporates the
token string (not a pointer) so entries are isolated per account.
- Around line 72-79: In resolve_token, trim whitespace from both the provided
config_token and the environment variable value before checking emptiness and
converting to String; replace the current filter(|v| !v.is_empty()) with logic
that maps config_token through str::trim and treats it as empty if trimmed is
empty, and when falling back to std::env::var("DEARIARY_TOKEN") call
.ok().map(|s| s.trim().to_string()) (or trim before is_empty check) so that
whitespace-only tokens are rejected and the function still returns
FetchError::Failed with the same message when no non-empty trimmed token exists.
In `@src/fetcher/deariary/on_this_day.rs`:
- Around line 174-183: The loop handling set.join_next() is silently ignoring
JoinSet join failures (the Err(_) arm), which can hide panics/cancellations;
update the Err(_) branch to increment error_count and set last_error (e.g., to
Some(join_err)) similar to how task-level Err(err) is handled so join failures
are surfaced—modify the match in the while let Some(joined) =
set.join_next().await block to record the join error into error_count and
last_error instead of discarding it, referencing the set.join_next() match,
hits.push((idx, entry)), error_count, and last_error symbols.
In `@src/render/list_links.rs`:
- Around line 127-134: The current without_osc8 sets OSC8_SUPPRESSED but only
restores it after f() returns, so a panic inside f() leaves the thread-local
suppressed; make it panic-safe by creating an RAII guard local to without_osc8
that captures the prior value and restores OSC8_SUPPRESSED in its Drop impl (use
the same OSC8_SUPPRESSED.with(|cell| ...) calls to save prior and set back),
then call f() while the guard is live so that if f() panics the Drop will always
run and reset the state; reference the without_osc8 function and OSC8_SUPPRESSED
variable when locating where to add the guard.
In `@src/render/mod.rs`:
- Around line 446-453: The current code always prefers
body_as_text(&payload.body) as the error message which masks real renderer/shape
mismatches for normal TextBlock payloads; change the logic in the render error
path so that you only substitute the body text when the payload actually
represents a placeholder/error/timeout (e.g., a trust placeholder) and otherwise
keep the explicit "renderer {name} cannot display {shape:?}" message.
Concretely, replace the unwrap_or_else(...) call around
body_as_text(&payload.body) with a conditional that matches payload.body (or
uses whatever is_placeholder/is_placeholder_text helper exists) to detect
placeholder cases and only then use the body text; if not a placeholder, call
render_error(frame, area, &format!("renderer {name} cannot display {shape:?}"),
theme). Ensure you reference and preserve the existing symbols body_as_text,
payload.body, TextBlock (or the placeholder variant), render_error, shape, and
name.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7a4c82cd-4a6f-46fd-9159-7cd01e8e6015
📒 Files selected for processing (9)
src/fetcher/deariary/client.rssrc/fetcher/deariary/mod.rssrc/fetcher/deariary/on_this_day.rssrc/fetcher/deariary/recent.rssrc/fetcher/deariary/today.rssrc/fetcher/mod.rssrc/render/list_links.rssrc/render/mod.rssrc/runtime.rs
- client.rs: scope cache slots per-token so a process holding multiple deariary tokens doesn't serve account A's entries to account B's widget. The token participates in the in-process key only — never written to disk or logs. - client.rs: trim whitespace in `resolve_token` for both the config value and the env var, and reject whitespace-only tokens. Avoids accidental blank-token requests when a copy/paste includes a trailing newline. - on_this_day.rs: surface JoinSet `Err(_)` (panic / cancellation) like a fetch error rather than silently dropping it. A fully-panicking task set used to return `Ok(empty)`; it now propagates the JoinError. - list_links.rs: make `without_osc8` panic-safe via a `Drop`-based RAII guard so a panic inside the closure doesn't leak the suppressed thread-local into subsequent unrelated draws on the same thread. Adds panic-restore + nested-call regression tests. CodeRabbit's fifth finding (render/mod.rs body-as-text fallback masking explicit "cannot display" warnings) is the deliberate trade-off documented in `placeholder_body`: surfacing 429 / timeout / trust placeholder text beats a generic "cannot display" warning when the mismatch is caused by a placeholder, and a real misconfiguration still shows the body inline rather than blank. Keeping current behaviour. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Addressed in 451a53c:
On the fifth finding (render/mod.rs body-as-text fallback): keeping current behaviour. It's the deliberate trade-off documented in |
… contract CodeRabbit pushed back on the body-as-text fallback in render_payload — masking the "renderer X cannot display Y" warning hides genuine misconfigurations and breaks the AGENTS.md contract that "users must be able to see what's misconfigured without crashing the splash." Revert that fallback. Instead, extend `placeholder_body` to produce shape-matching bodies for the shapes whose primary renderers carry a free-form text slot — Badge (Status::Error pill with the message as label), Ratio (gauge label slot, value=0), and Timeline (one event per line, Status::Error). 429 / timeout / trust messages now reach `status_badge` / gauges / `list_timeline` inline without going through the mismatch path. Shape-only renderers that genuinely can't carry text (chart_*, grid_*, media_*, plus Calendar / Bars) keep falling through to TextBlock; for those, `render_payload` shows the explicit "cannot display" warning, which is the right answer per the contract. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
On reflection, you're right — the AGENTS.md contract is clear ("users must see what's misconfigured") and the body-as-text fallback was too willing to hide it. Reverted in dba8572. To keep the original placeholder-visibility benefit (the 429 / trust message reaching
Shapes whose primary renderers genuinely have no slot for free-form text ( |
Restructures the placeholder pipeline so error / timeout / unknown-fetcher
/ shape-mismatch / trust-required widgets carry structured error data all
the way to render, instead of squeezing the message into a shape-coerced
TextBlock and hoping the configured renderer can read it.
Why this was needed: with the previous design, a placeholder targeting a
shape-only renderer (chart_bar, grid_calendar, grid_heatmap, media_image,
chart_sparkline, chart_line) fell through to a TextBlock body and tripped
the AGENTS.md "renderer X cannot display Y" warning — so a 429 / timeout
/ trust message reached the user only via $HOME/.splashboard/logs, not on
screen. CodeRabbit was right that surfacing the body text on every
mismatch masked genuine misconfigurations; the fix is to make the
placeholder its own first-class body variant rather than special-casing
the dispatch path.
Changes:
- payload.rs: new `Body::Error(ErrorData)` variant + `ErrorData` (kind,
message, detail) + `ErrorKind { Fetch, Timeout, UnknownFetcher,
ShapeMismatch, RequiresTrust }`.
- render/mod.rs: `Shape::Error` pseudo-shape so `shape_of` stays total.
`render_payload` short-circuits `Body::Error` to a dedicated
`render_error_body` that draws the message inline regardless of the
configured renderer, bypassing the shape × renderer dispatch entirely.
The explicit "renderer X cannot display Y" warning still fires for
genuine non-Error mismatches per the AGENTS contract.
- fetcher/mod.rs: `placeholder_body` removed. `error_placeholder` /
`timeout_placeholder` / `unknown_fetcher_placeholder` /
`shape_mismatch_placeholder` shrink to `error_payload` calls; the
`shape` parameter drops from the four signatures since the body type
no longer varies by target shape.
- trust.rs: `requires_trust_placeholder` matches the new constructor
shape and emits `Body::Error` directly.
- runtime.rs: drop the now-unused `shape` argument at every placeholder
call site (gated / unknown / fetch error / fetch timeout).
- Tests: payload round-trip, fetcher constructor coverage by ErrorKind,
runtime placeholder paths, trust placeholder, and an integration
regression that drives a Body::Error through chart_bar (the
pre-refactor failure case) to confirm the actionable message reaches
the user.
Out of scope (per discussion with the user): wrapping renderer dispatch
in `catch_unwind`. A renderer panic still aborts the splash; that's a
separate concern from how placeholders propagate.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/payload.rs (1)
68-109: Add a payload-local serde regression forBody::Error.This changes the cached payload wire format, but this file doesn’t yet lock its own
shape = "error"/ snake_casekindcontract. A small round-trip test here would catch format regressions without depending on placeholder constructors in other modules.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/payload.rs` around lines 68 - 109, Add a focused round-trip serde test for the payload-local wire format of Body::Error to lock the shape="error" contract and snake_case ErrorKind serialization: construct an ErrorData instance (populating kind, message, optional detail), wrap it in the Body::Error variant, serialize to the canonical payload wire format used elsewhere (e.g., JSON), then deserialize and assert equality; this test should live near the ErrorData/ErrorKind definitions so it exercises serde derives on ErrorData, ErrorKind and will detect regressions to their serialized shape.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/fetcher/deariary/client.rs`:
- Around line 176-195: The cache key built by entry_slot and list_slot using
format!("{token}|{date}") / format!("{token}|{tag}") can collide if token or
value contain '|' — update entry_slot and list_slot to produce collision-safe
keys by hashing the token scope (e.g., SHA-256 or HMAC of token) and combining
the fixed-length hash with the date/tag (or use a tuple/struct key type for
entry_cache/list_cache), so the token is never concatenated raw; change the key
generation in entry_slot and list_slot and keep references to entry_cache() and
list_cache() intact.
In `@src/fetcher/deariary/on_this_day.rs`:
- Around line 83-90: The cache_key implementation for on_this_day (fn
cache_key(&self, ctx: &FetchContext)) only serializes ctx.options and ignores
env-backed auth, so disk caches can be reused across different DEARIARY_TOKEN
values; update cache_key to include a stable token scope string used by the
fetcher’s env fallback (e.g., derive the token identifier from ctx.auth or read
the same env-backed auth scope used by the fetch logic) and append it to the
extra string before calling cache_key(self.name(), ctx, &extra) so different
DEARIARY_TOKEN values produce distinct keys.
---
Nitpick comments:
In `@src/payload.rs`:
- Around line 68-109: Add a focused round-trip serde test for the payload-local
wire format of Body::Error to lock the shape="error" contract and snake_case
ErrorKind serialization: construct an ErrorData instance (populating kind,
message, optional detail), wrap it in the Body::Error variant, serialize to the
canonical payload wire format used elsewhere (e.g., JSON), then deserialize and
assert equality; this test should live near the ErrorData/ErrorKind definitions
so it exercises serde derives on ErrorData, ErrorKind and will detect
regressions to their serialized shape.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: fb662afe-f06f-4fef-8777-abe0a5105ea6
📒 Files selected for processing (9)
src/fetcher/deariary/client.rssrc/fetcher/deariary/on_this_day.rssrc/fetcher/mod.rssrc/payload.rssrc/render/list_links.rssrc/render/mod.rssrc/runtime.rssrc/samples.rssrc/trust.rs
🚧 Files skipped from review as they are similar to previous changes (1)
- src/runtime.rs
…::Error wire format CodeRabbit review on 530d143: 1. Disk cache leaked across DEARIARY_TOKEN values. Each fetcher's cache_key only mixed in ctx.options, so a process that read its token from env (rather than [widget.options]) wrote to a cache key shared across accounts. Added client::cache_extra that resolves the token via the same precedence as fetch (option > env), folds it through token_scope (truncated SHA-256), and prefixes the options blob. All three fetchers now route through it. 2. entry_slot / list_slot keys built via format!("{token}|{date}") could collide if a token contained `|`. Switched to token_scope (16-hex-char SHA-256 prefix) so the in-memory slot keys can't collide regardless of token content, and the raw token doesn't appear in any cache-key string (which surfaces in tracing logs). 3. Body::Error wire format had no payload-local round-trip test, leaving cache deserialisation regressions to surface only via integration paths. Added round-trips for the full / detail-less / shape-tag / kind-naming axes in payload::tests. Token scope is intentionally a hash, not the raw token: keeps secrets out of cache filenames and tracing output without compromising the per-account partitioning. The fetch path still uses the resolved token itself; only the cache scoping is hashed. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Addressed in 761c1d1:
Token scope is intentionally a 64-bit truncation of SHA-256 (16 hex chars): plenty of entropy for distinguishing local accounts, short enough to keep cache filenames reasonable, and never the raw token. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/fetcher/deariary/client.rs`:
- Around line 92-105: cache_extra currently serializes the full raw_opts so any
options.token value leaks into cache keys; instead strip/redact the token field
from the options before serialization. Modify cache_extra to resolve the token
using resolve_token and keep the token_scope call, but deep-clone or mutate the
toml::Value from raw_opts to remove the "token" key (or replace it with a
constant placeholder) prior to toml::to_string, then format the cache string as
before; reference cache_extra, resolve_token and token_scope when locating the
change.
In `@src/fetcher/deariary/recent.rs`:
- Around line 156-166: render_body currently truncates entries to `limited`
before dispatching to all shapes, causing headline shapes (Shape::Text,
Shape::Badge, etc.) to report the truncated count; change the match so only
list/timeline renderers use the truncated `limited` slice (e.g., Shape::Entries,
Shape::TextBlock, Shape::MarkdownTextBlock, Shape::LinkedTextBlock,
Shape::Calendar? keep Calendar using full entries as it already does, and
render_timeline use limited), and pass the full entries slice or entries.len()
into headline renderers (`render_text`, `render_badge`) so they can show the
real total; update the render_body match arms to call render_text(&entries) /
render_badge(&entries) (or render_text(&limited, total_count)) and adjust those
renderers' signatures if needed.
In `@src/fetcher/deariary/today.rs`:
- Around line 117-123: latest_entry currently returns the newest available entry
unconditionally, causing stale entries to be treated as "today"; change
latest_entry (and its use of latest.date) to parse the entry date and only
accept it if it equals today or yesterday, otherwise return Ok(None).
Specifically, in latest_entry parse latest.date (e.g.,
NaiveDate::parse_from_str(&latest.date, "%Y-%m-%d") or use the existing date
type), compute Utc::today() and yesterday (or Local if the codebase uses Local),
and if parsed_date == today || parsed_date == yesterday then call
cached_get_entry(token, &latest.date).await and return that result; otherwise
return Ok(None). Ensure to handle parse errors by treating them as Ok(None) or
mapping to FetchError consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: bb40592f-dfe1-4ce3-a7df-babb96b3b275
📒 Files selected for processing (5)
src/fetcher/deariary/client.rssrc/fetcher/deariary/on_this_day.rssrc/fetcher/deariary/recent.rssrc/fetcher/deariary/today.rssrc/payload.rs
✅ Files skipped from review due to trivial changes (1)
- src/fetcher/deariary/on_this_day.rs
… today freshness CodeRabbit on 761c1d1: 1. cache_extra serialised the whole options blob — including options.token — into the intermediate string before hashing. The bearer wouldn't survive into the on-disk cache key (sha256-truncated downstream), but it would live in panic-backtrace / tracing intermediates. Strip the top-level `token` field before serialisation; the hash prefix already partitions per account. 2. recent.rs::render_body fed the truncated `limited` slice to every shape, so a `limit = 5` widget on a 23-entry cache reported "📔 5 recent" / "5 entries · latest: …" instead of the real total. limit governs how many ROWS render — not the headline count. Routed Text and Badge to the full `entries` slice; row-shaped renderers keep using `limited`. 3. today.rs::latest_entry surfaced the freshest available entry unconditionally, so a 5-day-old entry could appear under the "today" label. The fetcher's description promises "typically today's, falling back to yesterday's" — gate the lookup on a 0/1-day delta from local today and return Ok(None) past that, letting the empty-state placeholder render instead. Future-dated entries (clock skew) are also rejected. Tests: - cache_extra_strips_token_from_options_blob asserts the bearer never survives serialisation while non-token options still partition. - text_headline_reports_total_count_not_limit and the matching badge case pin the headline-vs-row count distinction. - freshness_gate_accepts_today_and_yesterday_only enumerates the (-1, 0, +1, +N) day deltas. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Addressed in 2b2e655 — all three are real bugs / leak surfaces, not just style:
|
Summary
deariary_*fetchers (Safe, cached, host-pinned toapi.deariary.com) backed by a shared HTTP client that dedups concurrent calls, caches responses for 60s, caps in-flight requests at 4, and honorsRetry-Afteronce on 429.deariary_today— most recent entry (today's, falling back to yesterday's when today's hasn't generated yet). 6 shapes.deariary_recent— newest-first list withlimit(1..=100) +tagoptions. 8 shapes including aCalendarthat highlights this month's entry days.deariary_on_this_day— same calendar day anchors at 1m / 3m / 6m / 1y / 2y / 3y / 4y / 5y ago fetched in parallel; missing anchors silently skipped. 7 shapes.LinkedTextBlockrows produce OSC 8 hyperlinks pointing athttps://app.deariary.com/entries/YYYY/MM/DD.list_linksgains awithout_osc8thread-local guard, applied inruntime::render_full_into_bufferso off-screenTestBackendcaptures don't bake OSC 8 escape sequences into the snapshot buffer (real-terminal output is unchanged).Ticks the
deariary_*checkbox in #68.deariary_todayThe most recent auto-generated deariary.com entry — typically today's, falling back to yesterday's when today's hasn't generated yet. Aggregated from external tools (GitHub, Calendar, Slack, Linear, ...); requires the Advanced plan.
text_block,text,markdown_text_block,linked_text_block,entries,badgeOptions
tokenDEARIARY_TOKENenv var.Compatible renderers
text_blockanimated_boot,animated_postfx,animated_scanlines,animated_splitflap,animated_wave,list_plaintextanimated_boot,animated_figlet_morph,animated_postfx,animated_scanlines,animated_splitflap,animated_typewriter,animated_wave,text_ascii,text_plainmarkdown_text_blocktext_markdownlinked_text_blocklist_linksentriesgrid_table, animated wrappersbadgestatus_badge, animated wrappersdeariary_recentRecent auto-generated deariary.com entries, newest first.
Timeline(default) carries the chronological ranking;TextBlock/Entries/MarkdownTextBlock/LinkedTextBlockcarry the same ranking in their respective row formats;Calendarhighlights this month's entry days;TextandBadgesummarise the headline.timeline,text,text_block,markdown_text_block,linked_text_block,entries,badge,calendarOptions
tokenDEARIARY_TOKENenv var.limittagCompatible renderers
timelinelist_timeline, animated wrapperstexttext_plain,text_ascii,animated_typewriter, animated wrapperstext_blocklist_plain, animated wrappersmarkdown_text_blocktext_markdownlinked_text_blocklist_linksentriesgrid_table, animated wrappersbadgestatus_badge, animated wrapperscalendargrid_calendar, animated wrappersdeariary_on_this_dayPast auto-generated deariary.com entries from the same calendar day, fetched in parallel for 1m / 3m / 6m / 1y / 2y / 3y / 4y / 5y ago. Anchors with no entry are silently skipped.
text_block,timeline,text,markdown_text_block,linked_text_block,entries,badgeOptions
tokenDEARIARY_TOKENenv var.Compatible renderers
Same shape × renderer matrix as
deariary_today, plustimeline→list_timeline.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningscargo test(1056 + 12 passed, 9 ignored)🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Improvements
Tests