data-peek/seeds
Rohith Gilla 5abbbb65f4
feat: add materialized view support and connection duplication (#85)
* feat: add connection duplication, materialized view support, and autocomplete keywords

- Add duplicate button to connection dropdown for quick connection cloning
- Add materialized view support to PostgreSQL adapter with column fetching
- Display materialized views in schema explorer with teal styling and mview badge
- Add filter toggle for materialized views in schema explorer
- Add SQL keywords: MATERIALIZED, REFRESH, CONCURRENTLY, DATA for autocomplete

* test: add tests for materialized views and connection duplication

- Add TableInfo type tests for materialized_view support
- Add schema explorer filtering tests for materialized views
- Add SQL keywords tests verifying MATERIALIZED, REFRESH, CONCURRENTLY, DATA
- Add connection duplication logic tests

* fix: correct window title and add dynamic Window menu

- Change HTML title from "Electron" to "Data Peek" so windows show
  correct name in taskbar/dock when right-clicking
- Add dynamic Window menu that lists all open windows
- Windows can be focused from the menu by clicking on them
- Menu updates automatically when windows are created, closed, or focused
- Fix test import paths and use correct type values

* feat: add materialized views for enhanced data analytics

- Introduced multiple materialized views to aggregate and summarize key metrics, including monthly revenue, organization metrics, user activity, API key usage, subscription health, event analytics, feature flag rollout, and project activity.
- Each view is designed to optimize data retrieval for dashboards and reporting, improving performance and insights for users.
- Created unique and standard indexes for efficient querying of the materialized views.

* refactor: address code review feedback for materialized views PR

- Use formatted data_type instead of udt_name for materialized view columns
- Simplify isNullable check to boolean comparison only
- Extract SQL_KEYWORDS to shared constants file to eliminate duplication
- Add error handling to connection duplication with try/catch
- Add @/ alias to vitest config for test resolution

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-25 10:15:47 +05:30
..
acme_saas_mysql_seed.sql feat: Add connection editing and deletion, normalize MySQL query results to lowercase, and include a new MySQL seed file. 2025-11-29 08:33:37 +05:30
acme_saas_seed.sql feat: Add connection editing and deletion, normalize MySQL query results to lowercase, and include a new MySQL seed file. 2025-11-29 08:33:37 +05:30
backup_neondb_2025-12-19.dump chore: PSEO by cursor 2025-12-24 19:44:02 +05:30
dashboard-demo-queries.sql feat: add demo SQL queries for dashboard widgets 2025-12-17 22:01:24 +05:30
materialized_views_seed.sql feat: add materialized view support and connection duplication (#85) 2025-12-25 10:15:47 +05:30
perf-indicator-test.sql feat: add query performance indicator (#69) 2025-12-16 11:52:55 +05:30