iachat/app/views/api/v1/models
Shivam Mishra eafd3ae44d
feat: new re-authorization flow for Microsoft (#9510)
This PR adds a cleaner re-authorization flow to Microsoft. This PR has
the following changes

1. Use `reauthorization_required` value for Microsoft Channel
2. Refactor `InboxReconnectionRequired` to reuse the `banner` component
3. Refactor `microsoft/Reauthorize.vue` to reuse
`InboxReconnectionRequired` component
4. Update `reauthorizable.rb` to update cache keys if the model has an
inbox
5. Update `microsoft/callbacks_controller.rb` to handle the
reauthorization case with a redirect to the inbox settings page if the
inbox already exists at the time of authorization.

## How Has This Been Tested?

- [x] Local Instance
- [ ] Staging Instance
- [x] Unit tests

## Pending Tasks

- [ ] ~Success Toast~ will do this in a follow-up PR with the screen

## Demo

The following video shows the whole process of creation and
re-authorization of the Microsoft channel


https://www.loom.com/share/e5cd9bd4439c4741b0dcfe66d67f88b3?sid=100f3642-43e4-46b3-8123-88a5dd9d8509

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2024-05-23 16:03:40 +05:30
..
_account.json.jbuilder feat: API changes to support multi step user signup (#8933) 2024-02-20 16:48:51 +05:30
_agent_bot.json.jbuilder feat: Add native support for CSML in agent_bot API (#4913) 2022-06-23 19:17:46 +05:30
_agent.json.jbuilder chore: Improve n+1 queries (#4202) 2022-03-17 15:57:32 +05:30
_app.json.jbuilder fix: Allow integration apps to be listed by an agent (#6587) 2023-03-02 13:02:21 +05:30
_campaign.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
_contact_inbox.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
_contact.json.jbuilder perf: Remove unwanted conversation count query (#8372) 2023-11-17 16:40:40 -08:00
_conversation.json.jbuilder feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
_csat_survey_response.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
_custom_attribute_definition.json.jbuilder feat: Support Regex validation for custom attributes (#7856) 2024-01-23 18:01:57 +04:00
_custom_filter.json.jbuilder fix: Revert the changes for SyncCustomFilterCountJob (#8238) 2023-10-27 10:45:48 -07:00
_dashboard_app.json.jbuilder feat: Allow users to create dashboard apps to give agents more context (#4761) 2022-06-01 11:13:10 +05:30
_hook.json.jbuilder fix: Update email alerts for Slack integration (#7739) 2023-08-17 11:46:37 -07:00
_inbox.json.jbuilder feat: new re-authorization flow for Microsoft (#9510) 2024-05-23 16:03:40 +05:30
_macro.json.jbuilder chore: Macros enhancement (#5609) 2022-10-20 19:41:48 -07:00
_message.json.jbuilder feat: Read/Delivery status for Whatsapp Cloud API (#5157) 2022-11-29 15:51:37 +03:00
_note.json.jbuilder fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560) 2022-10-05 17:24:34 -07:00
_portal_config.json.jbuilder chore: Add missing locale info in portal API (#5177) 2022-08-03 10:33:48 +05:30
_response_source.json.jbuilder chore: Refactor Response Bot Data Schema (#8011) 2023-10-01 19:31:38 -07:00
_team.json.jbuilder chore: Improve search, list performance of contact/conversation APIs (#2696) 2021-07-23 18:39:24 +05:30
_user.json.jbuilder chore: Cleanup feature flags (#6096) 2022-12-19 22:38:30 +05:30
_widget_message.json.jbuilder feat: Add a pre-chat form on widget (#1769) 2021-02-16 00:14:13 +05:30