Merging UI/UX Improvements with the main branch

This commit is contained in:
KarimTamani
2025-09-26 20:52:12 +01:00
parent 1348262649
commit 6bb10b86f2
6 changed files with 11 additions and 46 deletions
+6 -36
View File
@@ -12118,10 +12118,9 @@
}
},
"node_modules/postcss": {
"version": "8.4.38",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",
"integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==",
"dev": true,
"version": "8.5.6",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
"integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
"funding": [
{
"type": "opencollective",
@@ -12137,11 +12136,10 @@
}
],
"license": "MIT",
"peer": true,
"dependencies": {
"nanoid": "^3.3.7",
"picocolors": "^1.0.0",
"source-map-js": "^1.2.0"
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
@@ -13847,34 +13845,6 @@
}
}
},
"node_modules/vite/node_modules/postcss": {
"version": "8.5.6",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
"integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"dependencies": {
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
}
},
"node_modules/void-elements": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
@@ -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;
+1 -2
View File
@@ -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(
+1 -2
View File
@@ -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;
+1 -2
View File
@@ -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;
}
}