chatwoot/app/javascript/shared/helpers/specs
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
..
colorHelper.spec.js fix: Update colors in widget buttons to fix invalid colors (#6033) 2022-12-14 15:21:20 -08:00
CustomErrors.spec.js Fix: Update contact validation messages (#3500) 2021-12-03 13:19:11 +05:30
CustomEventHelper.spec.js feat: Add chatwoot:error sdk event (#3998) 2022-02-21 09:40:11 +05:30
DateHelper.spec.js fix: Update business hour calculation (#4496) 2022-04-18 18:15:20 +05:30
Emoji.spec.js fix: Avatar renders an incorrect symbol if it has emoji (#5184) 2022-08-03 14:11:33 +05:30
FileHelper.spec.js feat: Add ability to paste file/image from clipboard (#5627) 2022-10-25 13:35:11 +05:30
KeyboardHelpers.spec.js feat: Allow users to select Cmd+Enter as a hotkey (#4401) 2022-10-03 15:27:34 -07:00
MessageFormatter.spec.js chore: Use markdown-it instead of marked (#6123) 2023-03-03 13:26:54 +05:30
MessageTypeHelper.spec.js Chore: View form responses as user messages (#876) 2020-05-17 22:49:45 +05:30
ReportsDataHelper.spec.js feat: add Conversation traffic heatmap (#6508) 2023-03-07 09:01:58 +05:30
ValidatorsHelper.spec.js fix: Invalid portal domain validation (#6166) 2023-01-09 13:42:19 +05:30