Commit Graph
2362 Commits
Author SHA1 Message Date
Shivam Mishra bcd18a0bb0 feat: add audio chip 2024-11-28 17:11:24 +05:30
Shivam Mishra a565ae8cba feat: add more data 2024-11-28 15:47:50 +05:30
Shivam Mishra 2274141d99 feat: add more examples 2024-11-28 15:40:08 +05:30
Shivam Mishra d9ef6df4de feat: add image and video chip 2024-11-28 15:40:05 +05:30
Shivam Mishra 820fce8bfc feat: update layout 2024-11-28 15:05:12 +05:30
Shivam Mishra bba2befcb7 fix: extra spacing 2024-11-27 20:19:48 +05:30
Shivam Mishra 59afa50b71 feat: add text images 2024-11-27 20:19:06 +05:30
Shivam Mishra c2305a11c6 fix: condition to render files 2024-11-27 20:08:27 +05:30
Shivam Mishra 36e777aea5 feat: file icon 2024-11-27 20:06:49 +05:30
Shivam Mishra d93e2ee60a feat: add download option
TODO: Get better designs
2024-11-27 20:05:42 +05:30
Shivam Mishra 32df64c965 feat: add file icon 2024-11-27 20:05:11 +05:30
Shivam Mishra fd51a89b59 Merge branch 'develop' of github.com:chatwoot/chatwoot into feat/message-bubble 2024-11-27 19:05:23 +05:30
Shivam Mishra 226d7ceb03 feat: kickstart media bubble 2024-11-27 19:05:07 +05:30
Shivam Mishra 230279cafe feat: move padding to terminal bubble 2024-11-27 19:04:52 +05:30
Shivam Mishra a1479590e7 feat: add message id 2024-11-27 18:37:16 +05:30
Shivam Mishra ee71d6d50f feat: separate activity bubble 2024-11-27 18:35:09 +05:30
Shivam Mishra 0ae085ffbb feat: separate Base bubble
Also added a provider to inject local variant and orientation state to child components
2024-11-27 18:32:46 +05:30
Shivam Mishra 93bbcb2976 feat: capitalize sender name 2024-11-27 18:31:59 +05:30
Shivam Mishra 5a387689c7 fix: typo 2024-11-27 18:15:10 +05:30
Shivam Mishra 26501fc47c feat: add example for text with media 2024-11-27 18:14:07 +05:30
Shivam Mishra cffbc524d2 feat: move data to fixtures 2024-11-27 18:13:27 +05:30
Shivam Mishra da5a752c75 feat: add tooltip 2024-11-27 17:12:26 +05:30
Shivam Mishra 825e1b4fb3 feat: add i18n for error message 2024-11-27 17:09:03 +05:30
Shivam Mishra fe634293d8 chore: remove unused import 2024-11-27 17:06:45 +05:30
Shivam Mishra 4da133fe12 feat: add message meta component 2024-11-27 17:05:13 +05:30
Shivam Mishra 71e706a0bf feat: add in progress message 2024-11-27 16:46:46 +05:30
Shivam Mishra f8a400e704 feat: use content attributes 2024-11-27 16:33:53 +05:30
Shivam Mishra d70fa78e7d feat: show message status for outgoing messages 2024-11-27 16:27:13 +05:30
Shivam Mishra faf78bd447 feat: hide avatar for right oriented messages 2024-11-27 16:17:42 +05:30
Shivam Mishra b753d27301 feat: group when elements are in the same minute 2024-11-27 16:13:19 +05:30
Shivam Mishra caeb3bc88c feat: separate error component 2024-11-27 16:09:54 +05:30
Shivam Mishra 4dd7a5f693 feat: allow error 2024-11-27 16:07:27 +05:30
Shivam Mishra e3eca0dad8 feat: allow error variant 2024-11-27 15:56:29 +05:30
35702457ed feat: Update design for report pages (#10506)
<img width="1440" alt="Screenshot 2024-11-26 at 8 38 57 PM"
src="https://github.com/user-attachments/assets/f752157c-6134-42cb-8211-ce636ea9e4d6">
<img width="1439" alt="Screenshot 2024-11-26 at 8 40 47 PM"
src="https://github.com/user-attachments/assets/580b1f61-68bc-489b-9081-b0aeb402f31d">

---------

Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2024-11-27 18:10:15 +08:00
d569713b66 fix: Fix z-index issue on account switcher (#10505)
Co-authored-by: Pranav <pranav@chatwoot.com>
2024-11-26 19:59:16 -08:00
Sivin VargheseandGitHub b9d888d8ab feat: Add contact header components (#10498) 2024-11-25 19:59:04 -08:00
Sivin VargheseandGitHub ba1b02e274 feat: Add contact empty state components (#10499) 2024-11-25 19:50:33 -08:00
b0287fe389 feat: Add conditions row component (#10496)
---------

Co-authored-by: Pranav <pranavrajs@gmail.com>
2024-11-25 16:33:12 -08:00
c23cd094f9 feat(v4): Add filter input components (#10493)
This PR adds three components along with stories

1. MultiSelect - This is used for filter values, allowing multiple values and folding of values where there are too many items
2. SingleSelect - This is used for filter values, allows selecting and toggling a single item
3. FilterSelect - This is used for operators and others, it allows icons and labels as well as toggling them using props. The v-model for this binds just the final value unlike the previous two components with bind the entire object.

---------

Co-authored-by: Pranav <pranavrajs@gmail.com>
2024-11-25 11:52:28 -08:00
Sivin VargheseandGitHub e9ba4200b2 feat: Add custom attributes components (#10467) 2024-11-24 16:46:00 -08:00
0f659224a7 feat: async update of article [CW-3721] (#10435)
### The problem

Writing in the text editor can be very frustrating, the reason is that
the editor had a debounced save method which would push the article to
the backend and update the current state. This however is a bad idea,
since the can take anywhere between 100-300ms depending on network
conditions.

While this would be in progress, the article is still being edited by
the user. So at the end of the network request, the state returned from
the backend and the current state in the editor is diverged. But since
the update happens anyway, the editor would prepend older context.

```
Time   --> 

User Action:      [Edit 1] ---> [Edit 2] ---> [Edit 3]
Backend Save:           Save Req (Edit 1) ----> Response (Edit 1)
Resulting Editor State: [Edit 3] + [Edit 1] (Outdated state prepended)
```

### The solution

The solution is to unbind the article from the backend state, ensuring
that the article editor is the source of truth and ignoring the
responses. This pull request does this by adding an asynchronous save
functionality. The changes include adding a new `saveArticleAsync` event
and ensuring that the local state is not updated unnecessarily during
asynchronous saves.

```
Time   --> 

User Action:      [Edit 1] ---> [Edit 2] ---> [Edit 3]
Backend Save:           Save Req (Edit 1) ----> Response (ignored)
Resulting Editor State: [Edit 3] (Consistent and up-to-date)
```

Added the following two debounced methods

These complementary debounce methods prevent unnecessary re-renders
while ensuring backend is in sync. `saveArticleAsync` preserves the
editor as the source of truth, while `saveArticle` manages periodic
state updates from the backend with a delay large enough to safely
assume that the user has stopped typing
Method | Delay | Behavior
-- | -- | -- 
`saveArticleAsync` | 400ms | Sends data to backend and ignores the
response
`saveArticle` | 2.5s | Sends data and updates local state with the
backend response

### How to test

1. Remove the following line
https://github.com/chatwoot/chatwoot/blob/dc042f6ddcb4e108795ff83bb57f8d92c6a2b90a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue#L64
1. Update the latency here to 400 (P.S. the diff shows the latency to be
600, but that was added as a stop-gap solution)

https://github.com/chatwoot/chatwoot/blob/dc042f6ddcb4e108795ff83bb57f8d92c6a2b90a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue#L51
1. Set the browser network latency to Slow 3G or 3G
1. Start writing on the editor, try fixing typos with backspace or
moving around with the cursor

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Co-authored-by: Pranav <pranav@chatwoot.com>
2024-11-21 19:38:08 -08:00
Sivin VargheseandGitHub 2dae4b22a2 feat: Add Label Input components (#10480) 2024-11-21 13:57:43 -08:00
cf6ef11b9f feat: Add contact merge form component (#10478)
Co-authored-by: Pranav <pranavrajs@gmail.com>
2024-11-21 13:52:25 -08:00
497bc055a2 feat: Attributify button component (#10473)
This PR allows attributify for `variant`, `size` and `color` props. This allows using shorthands, instant of writing full props.

We also added a small computed method to ensure these does not show up
in the DOM and pollute it

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
2024-11-21 13:48:25 -08:00
Sivin VargheseandGitHub 79daf56c31 feat: Add contact note item component (#10479) 2024-11-21 13:47:57 -08:00
Shivam Mishra f2d115d2d7 fix: styling for p tag 2024-11-21 20:42:39 +05:30
Shivam MishraandGitHub 6ba5986b27 Merge branch 'develop' into feat/message-bubble 2024-11-21 20:37:29 +05:30
Shivam Mishra 2ed0d6a35d feat: don't use prose
We need to add the styling first
2024-11-21 20:35:02 +05:30
Shivam Mishra 4bb981566f fix: grouping space 2024-11-21 20:33:13 +05:30
Shivam Mishra fe4e906fc6 feat: format md 2024-11-21 20:31:42 +05:30