You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mock's SQLite fixture has no views, so ?mock=connected → SQLite cannot show this. Against a real file with a view:
Open the file from the SQLite tab.
The view is listed under Tables and counted in the Tables total.
The Views folder is always empty.
Cause
src-tauri/crates/mas-sqlite/src/schema.rs:78 returns sqlite_master.type as stored, in lower case: "table" or "view".
src/lib/datasource.ts:97 passes table_type through unchanged.
datasource.ts:106 has listViews return [].
src/components/schema/SchemaTree.tsx:336 and :583 filter with t.table_type !== "VIEW", which never matches "view".
Fix
In datasource.ts, map "view" to "VIEW" and "table" to "BASE TABLE", and have listViews return the view rows. Add a view to the mock SQLite fixture and a test for the mapping.
Activity
fix: list SQLite views under Views
feat: mock backend gaps; components go via stores (#918)