Skip to content

fixed issue with the age indicator#11

Merged
olajideolamide merged 2 commits into
mainfrom
bugfix/issue-age-indicator-wrong
May 21, 2026
Merged

fixed issue with the age indicator#11
olajideolamide merged 2 commits into
mainfrom
bugfix/issue-age-indicator-wrong

Conversation

@olajideolamide
Copy link
Copy Markdown
Owner

Summary

The age indicator on the Issues view is wrong. It calculates from first occurence to last occurence. Should be first occurence to now.

How to test

View an issue detail

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Review Change Stack

Warning

Rate limit exceeded

@olajideolamide has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 53 minutes and 18 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b7f7293f-2f93-48a8-a229-4bb241108134

📥 Commits

Reviewing files that changed from the base of the PR and between ed4e098 and d6122a5.

📒 Files selected for processing (1)
  • src/Views/dex/issues_dialog_shell.php

Walkthrough

Small, focused update to issue age and last-seen metric display in the issues dialog. Age now computes from first_seen only with updated subtitle text, and last-seen removes inline styling while maintaining time-ago display.

Changes

Issue metrics display

Layer / File(s) Summary
Age and Last seen metric display
src/Views/dex/issues_dialog_shell.php
Age metric now calls dex_age(first_seen) with subtitle text changed to "first occurence → now". Last seen metric renders dex_time_ago() without the previous inline font-size styling.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A metric so slight, yet clean and bright,
First seen now shines from first to night,
Last seen unburdened, fresh and free,
From styling chains, now as can be!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fixed issue with the age indicator' directly describes the main change in the pull request, which is fixing the age calculation logic.
Description check ✅ Passed The description provides a clear summary of the problem and testing instructions, but is missing the 'Changes' section and the complete checklist required by the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bugfix/issue-age-indicator-wrong

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/Views/dex/issues_dialog_shell.php`:
- Line 123: In the Age subtitle (the div with class "dex-stat__sub") fix the
spelling and trailing space: change the text "first occurence → now " to "first
occurrence → now" by correcting "occurence" to "occurrence" and removing the
extra space after "now"; locate the element using the dex-stat__sub class to
update the string.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4de46857-e06e-4f76-947f-53ecc92d2179

📥 Commits

Reviewing files that changed from the base of the PR and between b79206d and ed4e098.

📒 Files selected for processing (1)
  • src/Views/dex/issues_dialog_shell.php

Comment thread src/Views/dex/issues_dialog_shell.php Outdated
@olajideolamide
Copy link
Copy Markdown
Owner Author

@coderabbitai resolve

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

✅ Actions performed

Comments resolved and changes approved.

@olajideolamide olajideolamide merged commit 37855d9 into main May 21, 2026
5 checks passed
@olajideolamide olajideolamide deleted the bugfix/issue-age-indicator-wrong branch May 21, 2026 10:57
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.

1 participant