Skip to content

fix: display total enquiry count in dashboard Enquiries tab title#2689

Merged
Armanul46 merged 1 commit intosovware:developmentfrom
RabbiIslamRony:fix/dashboard-enquiry-count
Feb 9, 2026
Merged

fix: display total enquiry count in dashboard Enquiries tab title#2689
Armanul46 merged 1 commit intosovware:developmentfrom
RabbiIslamRony:fix/dashboard-enquiry-count

Conversation

@RabbiIslamRony
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

The "Enquiries" tab on the user dashboard did not display the total enquiry count next to its title, unlike the "My Listings" tab which shows its count (e.g. My Listings (12)).

Solution

The total enquiry count is now fetched using:
ATBDP()->formgent->get_kpis()

The count is appended to the tab title using the same sprintf pattern, resulting in:
Enquiries (5)

Before
https://share.cleanshot.com/LqhyvwK1
After
https://prnt.sc/s1yd7AcKNI3P

Changed File

  • includes/model/ListingDashboard.php

Notes

  • Guarded inside the existing $is_formgent_active check
  • No effect when FormGent is inactive
  • Read-only operation
  • No side effects on other dashboard tabs

Any linked issues

Fixes #

Checklist

The Enquiries tab was missing the count badge that other tabs (e.g. My Listings) already displayed. Fetch the total from ATBDP()->formgent->get_kpis() and append it using the same sprintf pattern.
@coderabbitai
Copy link

coderabbitai bot commented Feb 9, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@Armanul46 Armanul46 merged commit 4792828 into sovware:development Feb 9, 2026
2 checks passed
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.

2 participants

Comments