iachat/app
Shivam Mishra c88792f4a3
feat: add Conversation traffic heatmap (#6508)
* feat: add heatmap component

* feat: add heatmap component

* feat: add dummy heatmap

* refactor: compact tiles

* feat: allow hour

* feat: wire up heatmap query

* feat: allow arbritrary number of weeks

* feat: update position of the widget

* chore: update heatmap title

* refactor: move traffic heatmap to overview

* chore: add comment for perf

* feat: add reconcile logic for heatmap fetching

Fetching the data for the last 6 days all the time is wasteful
So we fetch only the data for today and reconcile it with the data we already have

* refactor: re-org code for new utils

* feat: add translations

* feat: translate days of the week

* chore: update chatwoot utils

* feat: add markers to heatmap

* refactor: update class names

* refactor: move flatten as a separate method

* test: Heatmap Helpers

* chore: add comments

* refactor: method naming

* refactor: use heatmap-level mixin

* refactor: cleanup css

* chore: remove log

* refactor: reports.js to use object instead of separate params

* refactor: report store to use new API design

* refactor: rename HeatmapHelper -> ReportsDataHelper

* refactor: separate clampDataBetweenTimeline

* feat: add tests

* fix: group by hour

* feat: add scroll for smaller screens

* refactor: add base data to reconcile with

* fix: tests

* fix: overflow only on smaller screens

* feat: translate tooltip

* refactor: simplify reconcile

* chore: add docs

* chore: remoev heatmap from account report

* feat: let Heatmap handle loading state

* chore: Apply suggestions from code review

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>

* feat: update css

* refactor: color assignment to range

* feat: add short circuit

* Update app/javascript/dashboard/routes/dashboard/settings/reports/components/Heatmap.vue

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
2023-03-07 09:01:58 +05:30
..
actions chore: Ability to Disable Gravatars (#5027) 2022-07-21 19:27:12 +02:00
assets feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
builders feat: add Conversation traffic heatmap (#6508) 2023-03-07 09:01:58 +05:30
channels chore: Sentry issues (#4623) 2022-05-06 14:50:55 +05:30
controllers Fallback name branch (#6591) 2023-03-03 12:26:59 +05:30
dashboards feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
dispatchers Chore: clean up Reporting Events (#4044) 2022-02-28 18:16:12 +05:30
drops feat: Add support for template variables in messages content (#6215) 2023-01-10 16:00:34 +05:30
fields feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
finders chore: Support plus forwarding in email channel (#6482) 2023-03-01 15:42:48 +05:30
helpers chore: Support plus forwarding in email channel (#6482) 2023-03-01 15:42:48 +05:30
javascript feat: add Conversation traffic heatmap (#6508) 2023-03-07 09:01:58 +05:30
jobs fix: migration script to run on all reporting events (#6590) 2023-03-02 19:03:31 +05:30
listeners fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +05:30
mailboxes chore: Refactor code in ApplicationMailbox (#5857) 2023-01-17 17:30:03 +05:30
mailers Fix: product#804: email sender improvement (#6579) 2023-03-02 10:57:14 +05:30
models fix: Add a check for automation_created message in FIRST_REPLY_CREATED event (#6618) 2023-03-06 17:47:35 +05:30
policies Added one more endpoint to attach tempfile and get logo (#6407) 2023-02-09 14:05:45 +05:30
presenters fix: Add missing timestamp in the real-time event (#6349) 2023-01-25 15:21:41 -08:00
services Exception tracker with account (#6603) 2023-03-03 12:14:44 +05:30
views feat: Revamps search to use new search API's (#6582) 2023-03-03 20:58:21 +05:30
workers fix: Update auto reply and hide reply time for email inbox (#3985) 2022-02-15 17:11:28 +05:30
test-matchers.js Initial testing with jest (#133) 2019-10-15 00:18:46 +05:30