From 7ade9061a89a044b6e3b560a45d5d7c52e7c6724 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma <32020192+tds-1@users.noreply.github.com> Date: Wed, 4 Feb 2026 11:27:51 +0530 Subject: [PATCH] feat: display total FAQ count in Related FAQs dialog (#13433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Display the total count of generated FAQs in the Related FAQs dialog title to give users immediate visibility into how many FAQs were generated from a document. ## Type of change Please delete options that are not relevant. - [ ] New feature (non-breaking change which adds functionality) ## Snapshots? Screenshot 2026-02-04 at 1 47 36 AM ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- > [!NOTE] > **Low Risk** > Small UI-only change using existing store metadata; risk is limited to incorrect/blank counts if `meta.totalCount` is missing or stale. > > **Overview** > Updates the `RelatedResponses` dialog to display the total related response count in the title by reading `captainResponses/getMeta.totalCount` (defaulting to 0) and appending it as `()`. > > Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 7cd67c9991faceeff33d33c319e324b1c6cf73f4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot). --- .../captain/pageComponents/document/RelatedResponses.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/document/RelatedResponses.vue b/app/javascript/dashboard/components-next/captain/pageComponents/document/RelatedResponses.vue index 6e00eda9b..9c95fd2b4 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/document/RelatedResponses.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/document/RelatedResponses.vue @@ -18,7 +18,9 @@ const dialogRef = ref(null); const uiFlags = useMapGetter('captainResponses/getUIFlags'); const responses = useMapGetter('captainResponses/getRecords'); +const meta = useMapGetter('captainResponses/getMeta'); const isFetching = computed(() => uiFlags.value.fetchingList); +const totalCount = computed(() => meta.value.totalCount || 0); const handleClose = () => { emit('close'); @@ -37,7 +39,7 @@ defineExpose({ dialogRef });