iachat/app/javascript/dashboard
Sivin Varghese cb65d615ea
chore: Add auto-refresh and self-hosted redirect logic to the billing page (#12615)
# Pull Request Template

## Description

This PR includes billing page improvements with the following updates:

### Self-hosted Users

* Automatically redirected to the dashboard when accessing the billing
page.

### Cloud Users – No Billing Plan (First Visit)

* Shows a loading spinner with the `Your billing account is being
configured. Please refresh the page and try again.` message.
* Automatically refreshes the page after 5 seconds to check for billing
setup.

### Cloud Users – No Billing Plan (After Refresh)

* Prevents infinite refresh loops using `sessionStorage` tracking.
* Displays the standard `Your billing account is being configured.
Please refresh the page and try again.` message without further refresh
attempts.
* Cleans up session flags for future visits.

### Cloud Users – With Billing Plan

* Displays the existing billing page normally with no refresh or
redirection logic.


Fixes
https://linear.app/chatwoot/issue/CW-5559/your-billing-page-is-being-set-up-message-on-billing-page-is-confusing

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

### Loom video

https://www.loom.com/share/d0ea13d6b90b4ab1acbc581b524f6382?sid=d3dd19f3-85aa-4127-9233-7eecb1be0884

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2025-10-09 10:57:30 -07:00
..
api feat: Add UI for custom tools (#12585) 2025-10-06 09:05:54 -07:00
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components fix: Rendering on email without html content (#12561) 2025-10-01 13:43:05 +05:30
components-next feat: Add UI for custom tools (#12585) 2025-10-06 09:05:54 -07:00
composables feat: allow quoted email thread in reply (#12545) 2025-09-30 17:47:09 +05:30
constants chore: Enable flexible whatsapp onboarding (Manual + Embedded Signup) options (#12344) 2025-09-15 19:59:56 +05:30
helper fix: Rendering on email without html content (#12561) 2025-10-01 13:43:05 +05:30
i18n chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
mixins chore: Default file limits for private notes and reset attachment on mode switch (#12310) 2025-08-27 11:56:07 +05:30
modules feat(ee): Setup advanced, performant message search (#12193) 2025-08-28 10:10:28 +05:30
routes chore: Add auto-refresh and self-hosted redirect logic to the billing page (#12615) 2025-10-09 10:57:30 -07:00
store fix(filters): correct null matching logic [CW-5741] (#12627) 2025-10-09 18:19:20 +05:30
App.vue feat: Agent language settings (#11222) 2025-09-09 14:27:36 +05:30
featureFlags.js feat: Improve captain conversation handling (#12599) 2025-10-06 10:51:58 -07:00