Skip to content

Stop Dropbox relative time showing "0y ago" for 360-364 days - #14183

Merged
omarchybot merged 1 commit into
omacom:quattrofrom
manuaudio:claude/fix-dropbox-relative-time-year
Oct 31, 2026
Merged

omarchybot merged 1 commit into
omacom:quattrofrom
manuaudio:claude/fix-dropbox-relative-time-year

Conversation

@manuaudio

Copy link
Copy Markdown
Contributor

The Dropbox panel's relativeTime computed months as floor(days / 30) and only switched to years once that reached 12, so files modified 360-364 days ago fell through to floor(days / 365) and showed "0y ago".

The month branch now runs while days < 365 and caps at 11 months, so years start at exactly "1y ago".

Tests: test/shell.d/dropbox-test.sh covers 359, 360, 364 and 365 days. The 360-day case fails before this change.

@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Fixes Dropbox file ages showing “0y ago” at 360–364 days.

  • Dropbox file ages stay in months until a full year.

Reviews (2) · Last reviewed commit: "Stop Dropbox relative time showing "0y a..." · Reviewed by Greptile

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything seems fine, ready to merge.

@omarchybot

Copy link
Copy Markdown
Collaborator

I read this against quattro but haven't verified it yet, and it has no class label yet. Two models have to agree on what an item is before anything else happens, and the second one, Codex Medium, didn't run today because the daily review budget is used up. So this is my reading alone (Claude Opus 5.5), and nothing has run on a worker.

What I found by reading: the bug is still on quattro. For 360 to 364 days, Math.floor(days / 30) is 12, which fails months < 12, and then Math.floor(days / 365) gives 0y ago. Your change fixes that boundary. The branch no longer merges cleanly, though. Since you opened it, #15326 rewrote relativeTime in shell/plugins/panels/dropbox/Model.js to go through the translator (t("dropbox.monthsAgo", "%1mo ago") and friends), so the fix has to be redone on that version.

Next: this comes round again once a second opinion is available. Then it gets classified, ported onto current quattro, and the reproduction and the dropbox tests run on a worker.

@manuaudio
manuaudio force-pushed the claude/fix-dropbox-relative-time-year branch from fff7645 to e97a6df Compare October 15, 2026 21:35
@manuaudio

Copy link
Copy Markdown
Contributor Author

I rebased this onto current quattro and kept the translated relativeTime path from #15326. Commit e97a6df now applies the 365-day boundary through dropbox.monthsAgo and the number formatter. bash test/shell.d/dropbox-test.sh passes all boundary cases; the 360-day assertion still fails with 0y ago on unmodified quattro.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 15, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for porting this onto the translated relativeTime. I've checked e97a6df against quattro (8a787b6) on a disposable Omarchy worker, and it fixes the bug. Nothing is left for you to do.

  • Reproduction: I ran my own check, separate from your test, over every age from 1 to 1100 days. On quattro, and on your head with Model.js reverted, days 360 to 364 show 0y ago. On your head they show 11mo ago, 365 shows 1y ago, and nothing else changes.
  • Tests: test/shell.d/dropbox-test.sh passes 16 of 16 at your head. With the fix reverted, the 360-day assertion fails with 0y ago. ./test/cli passes.
  • Review: I reviewed it (Claude Opus 5.5) and so did Codex Medium as a second opinion. Neither of us found a defect. Codex also confirmed that the translation keys and number formatter still work, and that fileMeta is the only caller. Codex could read my notes, so its agreement isn't fully independent. We both judged the change to be the right size: moving the boundary without the 11-month cap would show 12mo ago.

It's labelled bug, verified and ready, and now waits on the maintainer.

@omarchybot
omarchybot merged commit 2f1a2c5 into omacom:quattro Oct 31, 2026
2 checks passed
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants