Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA Nov 22 #2095

Merged
merged 8 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edition = "2021"
description = "Infinite data grid with Python, JavaScript, and SQL built-in"
repository = "https://github.com/quadratichq/quadratic"
license-file = "LICENSE"
version = "0.5.2"
version = "0.5.3"

[profile.release]
# Tell `rustc` to optimize for small code size.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.2
0.5.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quadratic",
"version": "0.5.2",
"version": "0.5.3",
"author": {
"name": "David Kircos",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion quadratic-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quadratic-api",
"version": "0.5.2",
"version": "0.5.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion quadratic-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quadratic-client",
"version": "0.5.2",
"version": "0.5.3",
"author": {
"name": "David Kircos",
"email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ self['fetch'] = new Proxy(fetch, {
apply: function (target, thisArg, args) {
const [url, config] = args;

const newConfig = config || {};
const headers = newConfig.headers || {};
const newConfig = { ...config } || {};
const headers = config?.headers ? { ...config.headers } : {};
const newHeaders = {};

// Prefix all original request headers with X-Proxy-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function javascriptConvertOutputType(
return { output: [image, 'image'], displayType: 'OffscreenCanvas' };
} else if (typeof value === 'string') {
return { output: [value, 'text'], displayType: 'string' };
} else if (value === undefined) {
} else if (value === undefined || value === null) {
return null;
} else if (typeof value === 'boolean') {
return { output: [value ? 'true' : 'false', 'logical'], displayType: 'boolean' };
Expand Down
6 changes: 4 additions & 2 deletions quadratic-client/src/routes/_dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ExclamationTriangleIcon, InfoCircledIcon } from '@radix-ui/react-icons'
import * as Sentry from '@sentry/react';
import { ApiTypes } from 'quadratic-shared/typesAndSchemas';
import { useEffect, useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import {
Link,
LoaderFunctionArgs,
Expand Down Expand Up @@ -91,10 +92,11 @@ export const loader = async ({ params, request }: LoaderFunctionArgs): Promise<L
} else if (teams.length > 0) {
initialActiveTeamUuid = teams[0].team.uuid;

// 4) there's no teams in the API, so create one and send the user to it
// 4) there's no teams in the API, so create one
} else if (teams.length === 0) {
const newTeam = await apiClient.teams.create({ name: 'My Team' });
return redirect(ROUTES.TEAM(newTeam.uuid));
// Send user to team dashboard if mobile, otherwise to a new file
return isMobile ? redirect(ROUTES.TEAM(newTeam.uuid)) : redirect(ROUTES.CREATE_FILE(newTeam.uuid));
}

// This should never happen, but if it does, we'll log it to sentry
Expand Down
2 changes: 1 addition & 1 deletion quadratic-connection/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-connection"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["David DiMaria <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion quadratic-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-core"
version = "0.5.2"
version = "0.5.3"
authors = ["Andrew Farkas <[email protected]>"]
edition = "2021"
description = "Infinite data grid with Python, JavaScript, and SQL built-in"
Expand Down
2 changes: 1 addition & 1 deletion quadratic-files/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-files"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["David DiMaria <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion quadratic-multiplayer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-multiplayer"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["David DiMaria <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion quadratic-rust-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-rust-client"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["David Figatner <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion quadratic-rust-shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quadratic-rust-shared"
version = "0.5.2"
version = "0.5.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion quadratic-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quadratic-shared",
"version": "0.5.2",
"version": "0.5.3",
"description": "Code shared between quadratic-api and quadratic-client (each app has to compile this code itself)",
"main": "index.js",
"scripts": {
Expand Down
Loading