feat(base): wire type field through UpdatePropertyInput + restore row invalidation

This commit is contained in:
Philipinho
2026-05-24 02:27:37 +01:00
parent a66d31178a
commit e1f862967a
2 changed files with 11 additions and 0 deletions
@@ -62,6 +62,16 @@ export function useUpdatePropertyMutation() {
};
},
);
// Path 1 (no rewrite) and Path 2 (inline rewrite): the HTTP
// response is the "cells migrated" signal — refetch row pages now.
// Path 3 sets `jobId`; we wait for the `base:schema:bumped` socket
// event instead so we don't churn pages with mid-conversion data.
if (variables.type && !result.jobId) {
queryClient.invalidateQueries({
queryKey: ["base-rows", variables.pageId],
});
}
},
onError: () => {
notifications.show({
@@ -222,6 +222,7 @@ export type UpdatePropertyInput = {
propertyId: string;
pageId: string;
name?: string;
type?: BasePropertyType;
typeOptions?: TypeOptions;
requestId?: string;
};