Skip to content

Conversation

@nichenqin
Copy link
Contributor

No description provided.

@nichenqin nichenqin changed the title refactor: refactoring core and make create table work refactor: refactoring core Dec 19, 2025
@nichenqin nichenqin marked this pull request as draft December 19, 2025 12:06
@nichenqin nichenqin force-pushed the refactor/core branch 3 times, most recently from 8eb3533 to e4bac47 Compare December 20, 2025 05:31
@nichenqin nichenqin added the preview This issue is already ready for preview label Dec 20, 2025
@nichenqin nichenqin force-pushed the refactor/core branch 3 times, most recently from 67db766 to 792f8d4 Compare December 20, 2025 12:04
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@nichenqin nichenqin force-pushed the refactor/core branch 2 times, most recently from fe5003c to a8b6afb Compare December 21, 2025 02:30
@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ❌ Failed

1 similar comment
@github-actions
Copy link

Deployment Status: ❌ Failed

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

7 similar comments
@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

@github-actions
Copy link

Deployment Status: ✅ Success
🔗 Preview URL: https://pr-2307.sealoshzh.site

- Move leading space into orderByRef to avoid trailing space when empty
- Update inline snapshots in ComputedFieldUpdater.spec.ts
… and analysis

- Added `sql-formatter` dependency for SQL formatting.
- Implemented `ExplainResultPanel` component for displaying SQL explain results.
- Enhanced `RecordCreateDialog` and `RecordUpdateDialog` to include explain functionality.
- Introduced command explain service and analyzers for create, update, and delete operations.
- Updated HTTP contract to include explain endpoints for create, update, and delete commands.
- Registered command explain module in the container node setup.
nichenqin and others added 16 commits January 7, 2026 23:44
- Refactored CSS variables for improved color consistency and accessibility.
- Introduced new background patterns and glassmorphism effects in styles.
- Updated UI components in PlaygroundShell, ExplainResultPanel, and TableMetaPage for better visual hierarchy and responsiveness.
- Enhanced DataTable with pinned column support and improved styling.
- Added animations for various UI elements to enhance user experience.
- Improved ScrollArea component to support horizontal and vertical scrolling.
Add comprehensive unit tests for all field schema rules using PGlite
as an embedded PostgreSQL database. Tests verify:
- up() creates expected schema elements and isValid() returns true
- down() removes schema elements and isValid() returns false

Rules tested:
- ColumnExistsRule, ColumnUniqueConstraintRule, NotNullConstraintRule
- FkColumnRule, ForeignKeyRule, IndexRule, UniqueIndexRule
- OrderColumnRule, LinkValueColumnRule, GeneratedColumnRule
- JunctionTableExistsRule and related rules
- FieldMetaRule, ReferenceRule

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
… operator type inference

- Add isConditionalRollupField predicate to fieldPredicates.ts
- Add conditionalRollup handling in resolveColumnType (same as rollup)
- Fix comparison/logical operators to always return single boolean value
  (not array even when comparing array fields - matches SQL layer behavior)
- Enhance normalizeLinkRawValue to handle escaped quotes in JSON strings
- Update all formula-sql-pg snapshots to reflect the fixes
- Added a new adapter for PostgreSQL table repository, including necessary configurations and types.
- Implemented various utility functions and query builders to enhance database interactions.
- Updated existing packages to integrate with the new adapter, ensuring compatibility and improved functionality.
- Removed obsolete files and configurations from the previous adapter to streamline the codebase.
- Introduced mechanisms in HybridWithOutboxStrategy and SyncInTransactionStrategy to track updated fields and filter them out in subsequent stages, preventing redundant updates.
- Updated RecordUpdateBuilder to include computed update impact for better propagation planning.
- Refactored related tests to ensure correct behavior of new update logic.
- Added exclusion patterns to the ESLint configuration to prevent linting of unnecessary directories.
- Simplified type imports in ComputedUpdatePlanner for better readability.
- Introduced unit tests for ComputedUpdatePlanner to validate update planning logic, ensuring correct behavior in various scenarios.
- Adjusted ComputedUpdateWorker to handle change types more effectively during update stages.
- Added a new test to verify that the ComputedUpdateWorker correctly downgrades the changeType from 'insert' to 'update' during the planning of subsequent async stages.
- Updated type imports for better clarity and consistency across the test files.
- Adjusted type import in ComputedUpdateWorker to use named imports for improved readability.
…onents

- Added a new context menu component using Radix UI for improved user interactions in the playground.
- Updated various UI components to utilize the new context menu, including data tables and sidebar elements.
- Enhanced styling and layout of the playground header, base page, and table cards for better visual consistency.
- Introduced new dependencies for context menu functionality and updated existing packages to ensure compatibility.
- Introduced advisory locks for computed updates to manage concurrency, preventing conflicts during record updates.
- Added configuration options for lock settings, including maximum record locks and lock modes.
- Enhanced the ComputedFieldUpdater to acquire locks before executing update plans, ensuring serialized access to resources.
- Updated explain command analyzers to include computed update lock information in the output.
- Added utility functions to build and manage lock information for better integration with existing explain functionality.
- Enhanced tests for the ComputedUpdateWorker and related components to validate lock behavior and ensure correct handling of concurrent updates.
- Implemented a dialog for setting and testing a PostgreSQL database URL in the Playground.
- Introduced local storage management for persisting the database URL across sessions.
- Enhanced the SchemaCheckPanel to utilize the database URL for schema validation.
- Added API endpoint for checking database connection validity.
- Updated UI components to reflect database connection status and provide user feedback.
- Refactored related components to support the new database URL functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants