feat: exclude app.appsmith.com from recent domains tracking (#41059)

## Summary
Adds filtering to exclude domains starting with "app." from the recent
domains tracking functionality.

## Changes
- Updated `isValidAppsmithDomain()` function to exclude domains that
start with "app."
- This prevents domains like `app.appsmith.com` from being tracked and
stored in recent domains

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/15966291652>
> Commit: b7f9bfa93b84592c5d2526410270799f5c44a9cd
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=15966291652&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Mon, 30 Jun 2025 07:53:35 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved domain validation to exclude domains starting with "app."
from being recognized as valid Appsmith domains.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Jacques Ikot 2025-06-30 09:15:02 +01:00 committed by GitHub
parent c17dc3aabc
commit f379f16bdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,7 @@ function isValidAppsmithDomain(domain: string): boolean {
domain.endsWith(".appsmith.com") &&
!domain.startsWith("login.") &&
!domain.startsWith("release.") &&
!domain.startsWith("app.") &&
!domain.startsWith("dev.")
);
}