mirror of
https://github.com/stackrender/stackrender.git
synced 2026-09-10 11:15:42 +00:00
Merging UI/UX Improvements with the main branch
This commit is contained in:
@@ -72,8 +72,7 @@ const TablesController: React.FC = ({ }) => {
|
||||
useEffect(() => searchTables(), [allTables]);
|
||||
|
||||
const addNewTable = useCallback(async () => {
|
||||
|
||||
console.log(getTableNextSequence(tables))
|
||||
|
||||
const newTableId: string = v4();
|
||||
const viewport = getViewport();
|
||||
const { x, y, zoom } = viewport;
|
||||
|
||||
@@ -42,8 +42,7 @@ export const useRenderSql = (database: DatabaseType) => {
|
||||
(formattedSqlCode)
|
||||
);
|
||||
setCircularDependency(undefined);
|
||||
} catch (error) {
|
||||
console.log (error)
|
||||
} catch (error) {
|
||||
|
||||
if ((error as CircularDependencyError)?.cycle)
|
||||
setCircularDependency((previousError) => {
|
||||
|
||||
@@ -89,8 +89,7 @@ const DatabaseProvider: React.FC<Props> = ({ children }) => {
|
||||
database = undefined as any;
|
||||
|
||||
|
||||
|
||||
console.log ( database )
|
||||
|
||||
|
||||
// Fetch all data types
|
||||
let { data: data_types, isLoading: loadingDataTypes, isFetching: fetchingDatatypes } = useQuery(toCompilableQuery(
|
||||
|
||||
@@ -549,8 +549,7 @@ export const postgresAstToField = (ast: any, data_types: DataType[], sequence: n
|
||||
const nullableConstraints: any | undefined = constraints.find((c: any) => c.type == "not null");
|
||||
const defaultValueConstraints: any | undefined = constraints.find((c: any) => c.type == "default");
|
||||
|
||||
if (defaultValueConstraints) {
|
||||
console.log(defaultValueConstraints.default)
|
||||
if (defaultValueConstraints) {
|
||||
if (defaultValueConstraints.default.type == "keyword" && defaultValueConstraints.default.keyword == "current_timestamp")
|
||||
defaultValue = TimeDefaultValues.NOW;
|
||||
|
||||
|
||||
@@ -104,8 +104,7 @@ export class StackRenderConnector implements PowerSyncBackendConnector {
|
||||
localStorage.setItem("last_upload_at", new Date().toISOString());
|
||||
window.dispatchEvent(new StorageEvent("storage", { key: "lastUploadAt" }));
|
||||
|
||||
} catch (ex: any) {
|
||||
console.debug(ex);
|
||||
} catch (ex: any) {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user