Check if the result limit has been hit

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-09-25 15:41:27 +02:00
parent 3773ccfbbf
commit 96d044941d
4 changed files with 15 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ type LeakResult = {
Duration: number;
Error: string;
Rows: Array<Record<string, string>>;
LimitHit: boolean;
};
type GithubResult = {

View File

@@ -170,6 +170,15 @@
result.LeakResult.Duration,
)}
</p>
{#if result.LeakResult.LimitHit}
<div role="alert" class="alert alert-soft my-4">
<CircleAlert size={20} />
<div>
<span class="font-semibold">Limit hit!</span> Consider refining
your search query for more specific results.
</div>
</div>
{/if}
<Rows {result} />
{/if}
</div>