Repository navigation
feat(connections): projects that keep one product's connections, queries and history apart - #4376
Merged
Merged
Conversation
…ies and history apart
# Conflicts: # windows/docs/decisions/README.md
… and resolve a script's connection id outside the active project
This was referenced Nov 21, 2026
# Conflicts: # apple/TablePro/Core/Services/Infrastructure/WelcomeRouter.swift # apple/TablePro/Core/Sync/SyncCoordinator.swift # apple/TablePro/Resources/Localizable.xcstrings # apple/TablePro/ViewModels/WelcomeViewModel+ConnectionCreation.swift # apple/TablePro/ViewModels/WelcomeViewModel.swift # apple/TablePro/Views/ConnectionForm/ConnectionFormCoordinator.swift # apple/TablePro/Views/ConnectionForm/Panes/AppearancePaneView.swift # apple/TablePro/Views/Welcome/WelcomeLibraryPane.swift # apple/TableProMobile/TableProMobile/Views/ConnectionListView.swift # core/crates/ffi/tests/foreign_import.rs # core/docs/decisions/README.md # linux/ARCHITECTURE.md # linux/crates/app/src/ui/session_window/import_from_app.rs # linux/crates/app/src/ui/session_window/mod.rs # linux/crates/app/src/ui/session_window/window_actions.rs # linux/crates/app/src/ui/workspace/tests/shell.rs # windows/docs/decisions/0004-app-shell.md # windows/docs/decisions/README.md # windows/src/TablePro.App.Model/ForeignImportForm.cs # windows/src/TablePro.App/Strings/en-US/Resources.resw # windows/src/TablePro.App/Views/HomeView.xaml.cs # windows/src/TablePro.App/Views/ImportFromAppDialog.cs # windows/src/TablePro.Interop/ConnectionLibrary.cs # windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
# Conflicts: # core/crates/storage/src/connections/cloud.rs # core/crates/storage/src/connections/mod.rs
… the records model
…hat a file of projects imported
# Conflicts: # core/crates/records/src/cloudkit/library/mod.rs # core/crates/records/src/schema/tests.rs # core/crates/storage/src/connections/mod.rs # core/crates/storage/src/error.rs # core/crates/storage/src/lib.rs # core/crates/storage/src/saved_queries/mod.rs # core/docs/decisions/README.md
# Conflicts: # core/crates/ffi/src/lib.rs # core/crates/ffi/src/library.rs # core/crates/ffi/tests/ai.rs # core/crates/ffi/tests/cloud_library.rs # core/crates/ffi/tests/csv_import.rs # core/crates/ffi/tests/library.rs # core/crates/ffi/tests/library_copies.rs # core/crates/ffi/tests/mcp.rs # core/crates/ffi/tests/row_edits.rs # core/crates/ffi/tests/safe_mode_gate.rs # core/crates/foreign-import/tests/review.rs # core/crates/mcp/src/tool_context.rs # core/crates/records/src/schema/tests.rs # core/crates/storage/src/connection_group.rs # core/crates/storage/src/connections/library/mod.rs # core/crates/storage/src/connections/mod.rs # core/crates/storage/src/connections/placement.rs # core/crates/storage/src/error.rs # core/crates/storage/src/lib.rs # core/crates/storage/tests/stored_formats.rs # linux/crates/app/src/services/saved_connection_editor.rs # linux/docs/storage.md # windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
…p's move refreshes the form
The iOS library moved onto the core store in #4608, so its project list moves there too: LibraryWrite and the FFI library records carry projects, and a project id no project holds stays as stored.
# Conflicts: # apple/TableProMobile/TableProMobile/CoreStore/CoreLibraryStore.swift # apple/TableProMobile/TableProMobileTests/CoreStore/CoreLibraryStoreTests.swift # core/crates/ffi/src/library_contents.rs # core/crates/ffi/tests/library_details.rs # core/crates/storage/src/connections/library/mod.rs # core/crates/storage/src/connections/store_tests.rs # core/crates/storage/src/lib.rs # windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
# Conflicts: # windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
…ion so Xcode 27.1 compiles it
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Projects for saved connections, in the macOS, iOS, Linux and Windows apps.
out_of_scope. The in-app assistant is not narrowed. Nothing an outside client could not reach before is reachable now.tablepro-recordscarriesConnectionProjectand bothprojectIdfields as pending, as 0054's frozen set has them.core/docs/decisions/0067-connection-projects.md).connection_projectkind, so a project write reaches sync as a group or tag write does.LibraryWrite,library_contentsandreplace_librarycarry the project list and bothproject_idfields, beside fix(core): replace_library refuses a file that changed since it was read, and rebuild takes over unreadable files #4617'sremovingand vouched digest. There is noprojects.json.project_idno project holds stays as stored and reads as no project, as main now keeps a group id the list lacks; deleting a project clears its members.Defects found on the way, fixed here:
macOS Tests(EditorTabDetachUITests.testDraggingATabOutOfTheStripOpensItInItsOwnWindow): a tab drag the app read after the button was up. main fixed it in fix(tab-strip): settle a tab drag the app reads after its release #4402; this merge brings it in.RecordingSyncTransport: itsIOSSyncTransportconformance moved to an extension. Xcode 27.1 fails to compile it written on the actor ("'nonisolated' on an actor") when a test that makes one lands in the same compile batch; main's own sync tests hit it too once batched with it.Tests updated on purpose, since they pin what this change alters:
ConnectionSyncSchemaTests.everyDeclaredFieldIsWritable,SyncSchemaGateTests.pendingProductionDeploy,SyncFieldParityTests.sharedRecordTypes: the new record type and fields, not yet in Production.SyncPendingDeletionsTests.eachSwitchWithholdsItsOwnRecordTypes,SyncRecordMapperConnectionTests.everyStoredPropertyIsClassified,ConnectionFormEditsCoverageTests,ConnectionCoverageFixture:projectIdand.projectclassified.SyncProjectMembershipTests.readableContentNamesTheProjectFields,projectsFollowGroupsAndTags; three cases inHistoryProjectScopeTests: rewritten over the real scope signal.WelcomeToolbarTests.itemsKeepTheirPlaces: the project pop-up leads the toolbar.ProjectMenuTests.popUpButtonShowsTheActiveScope: the pop-up's controller isProjectPopUpController, which the AppKit toolbar hosts.tablepro-recordsschema/tests.rs:project_idon a connection and a group, and a table forConnectionProject.tablepro-storagestore_tests.rsunknown_keys_survive_a_rewrite_at_every_level:project_idis a known key now, so it survives as a UUID and the unknown key isworkspace_id.tablepro-storagea_read_drops_a_project_no_project_holds_and_numbers_the_projectsis nowa_project_id_no_project_holds_stays_stored_and_reads_as_no_project.AppStateProjectTests:damagedProjectsFileDoesNotLockTheListis gone andprojectsPersistchecks the core store, since projects have no file of their own;ProjectSyncWiringTests.unreadableProjectsFileHoldsThePullis gone for the same reason;IntentProjectScopeTestsreads the project ids from the core's file.tablepro-storagea_projects_export_holds_its_members_and_no_other_project: an export of a project the library no longer holds is refused instead of widened to the whole library.ProjectSyncWiringTests: three cases that pulled projects with project sync off now run with it on, andreadableSetFollowsTheGateexpectsConnectionProjectonly while it is on.saved_queriesa_list_for_a_set_of_connections_holds_theirs_and_the_ones_with_no_connection: queries with no connection belong to every project.ui/workspace/tests/shell.rsprimary-menu action count 12 to 15; one history dialog test renamed for the reload on a switch.core/crates/mcp/tests/mcp_server.rs: the out-of-scope refusal no longer names the connection.QueryHistoryCoreMirrorTests.historyMovesInUnderItsIds(from feat(macos): saved queries and history on the core stores #4611): the core history search takes a project now, and the test passes none.ConnectionFormEditsMergeTests.tableCoversEveryWrittenProperty(from refactor(connection-form): rebuild the macOS connection editor as a sidebar window #4417):projectIdis carried over, not written by the form, asConnectionFormEditsCoverageTestshas it.TheConnectionsPageShowsOneProjectAndItsSearchStaysInside: opens the sample from Help, since feat(onboarding): setup guide, import hand-off and shortcut presets on every app #4482 took the Home sample card away.Needs the maintainer
ConnectionProject, andprojectIdonConnectionandConnectionGroup. Thenapple/scripts/export-cloudkit-schema.sh, commit the snapshot, and add the type and both fields toverifiedInProduction, all in one commit.Screenshots
The shots below predate main's Welcome rebuild (#4415): the macOS pop-up is now the first item of the AppKit toolbar, with the same menu. Fresh shots are left for a follow-up.
iOS, All Connections with the title menu:
Test plan
verify.sh --jobs 4on the mini, head 1616318 (main at 20770d4 merged in):tablepro-ffi411/411, clippy and fmt clean.tablepro-storage505/505 on 2ff932e, unchanged since; records 119, mcp 142, foreign-import 530, cli 89, session 163 on f9b385b.build-for-testingfor the generic simulator: TEST BUILD SUCCEEDED (a127965, the mock fix on top of 1616318).AppStateProjectTests,ConnectionLibraryEditingTests,ConnectionListSelectionTests,ConnectionListStateTests,ConnectionProjectEditingTests,ConnectionProjectTransferTests,CoreLibraryStoreTests,IntentProjectScopeTests,ProjectSyncWiringTests.Fixes #4307