iachat/app/helpers
Pranav cb42be8e65
feat(v4): Update the report pages to show aggregate values (#10766)
This PR updates the report pages for agents, inboxes, and teams by
replacing charts with aggregate values (under a feature flag). Users can
click on any item to view more details if needed. Most users seem to
prefer aggregate values, so this change will likely stay.

The PR also includes a few fixes:

- The summary reports now use the same logic for both the front-end and
CSV exports.
- Fixed an issue where a single quote was being added to values with
hyphens in CSV files. Now, ‘n/a’ is used when no value is available.
- Fixed a bug where the average value was calculated incorrectly when
multiple accounts were present.

These changes should make reports easier to use and more consistent.

### Agents:

<img width="1438" alt="Screenshot 2025-01-26 at 10 47 18 AM"
src="https://github.com/user-attachments/assets/bf2fcebc-6207-4701-9703-5c2110b7b8a0"
/>

### Inboxes
<img width="1438" alt="Screenshot 2025-01-26 at 10 47 10 AM"
src="https://github.com/user-attachments/assets/b83e1cf2-fd14-4e8e-8dcd-9033404a9f22"
/>


### Teams: 
<img width="1436" alt="Screenshot 2025-01-26 at 10 47 01 AM"
src="https://github.com/user-attachments/assets/96b1ce07-f557-42ca-8143-546a111d6458"
/>

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2025-01-28 09:19:18 +05:30
..
api feat(v4): Update the report pages to show aggregate values (#10766) 2025-01-28 09:19:18 +05:30
super_admin chore: Reorganize the installation config settings (#8794) 2024-01-31 16:48:42 +04:00
application_helper.rb feat: Add help URLs for features in features.yml (#9134) 2024-03-21 10:30:46 -07:00
billing_helper.rb feat: Add APIs for limit check in accounts (#7242) 2023-06-15 20:11:40 -07:00
cache_keys_helper.rb feat: IndexedDB based caching for labels, inboxes and teams [CW-50] (#6710) 2023-03-27 12:16:25 +05:30
contact_helper.rb feat: Add contact helper (#8989) 2024-03-06 17:39:39 +05:30
date_range_helper.rb fix: inconsistency in report and summary for metric counts (#6817) 2023-04-20 12:55:04 +05:30
email_helper.rb feat: Enable template variables in channel greeting messages (#6971) 2023-04-26 20:23:46 +05:30
file_type_helper.rb fix: check the content type for the file when uploading from cloud storage (#5378) 2022-10-21 18:05:36 -07:00
filter_helper.rb feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
frontend_urls_helper.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
home_helper.rb Initial Commit 2019-08-14 15:18:44 +05:30
message_format_helper.rb feat: Adds support for superscript in help center articles (#7279) 2023-06-14 15:39:00 +05:30
portal_helper.rb fix: Undefined method `length' for nil:NilClass (#8491) 2023-12-05 16:34:29 +05:30
report_helper.rb feat: Add backend APIs for the bot metrics (#9031) 2024-03-01 08:20:20 -08:00
reporting_event_helper.rb fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +05:30
timezone_helper.rb feat: Improve Report API performance (#9476) 2024-05-22 17:34:24 -07:00
widget_helper.rb chore: Enhance contact merge action for identified users (#4886) 2022-06-23 15:48:56 +05:30