GitHub user MelikHajlawi created a discussion: feat(TableSelector): show 
warning when table list is truncated due to API page limit

The `useTables` hook computes a `hasMore` flag when the backend has more tables
than the current API response includes. However, this flag was never displayed 
to
the user — the table list appeared complete when it was actually truncated.

This PR adds a visible warning message below the table selector when `hasMore`
is true, so users know to search/filter to find additional tables.

## Changes
- `src/components/TableSelector/index.tsx`:
  - Read `data?.hasMore` from the `useTables` result
  - Render a `TruncationMessage` below the Select when `hasMore` is true

## Testing
1. Connect a database with a schema containing more than 100 tables
2. Open SQL Lab and select that database and schema
3. Verify the warning "Not all tables are shown. Type to search for more 
tables." appears below the table selector
4. With fewer than the limit, verify no message appears

Fixes #[40407]

GitHub link: https://github.com/apache/superset/discussions/40408

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to