Skip to content

Commit e0a9a04

Browse files
authored
Merge pull request #2802 from quadratichq/qa
QA Apr 24
2 parents e8aaa95 + bd51cb9 commit e0a9a04

File tree

121 files changed

+1348
-1519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1348
-1519
lines changed

.github/workflows/production-github-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77

88
jobs:
99
github_release:
10-
name: github_release
10+
name: Github Release
11+
permissions:
12+
contents: write
1113
runs-on: blacksmith-2vcpu-ubuntu-2204
1214
concurrency:
1315
group: production-github-release

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.14
1+
0.7.0

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quadratic",
3-
"version": "0.6.14",
3+
"version": "0.7.0",
44
"author": {
55
"name": "David Kircos",
66
"email": "david@quadratichq.com",

quadratic-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quadratic-api",
3-
"version": "0.6.14",
3+
"version": "0.7.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

quadratic-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quadratic-client",
3-
"version": "0.6.14",
3+
"version": "0.7.0",
44
"author": {
55
"name": "David Kircos",
66
"email": "david@quadratichq.com",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"0.6.14"}
1+
{"version":"0.7.0"}

quadratic-client/src/app/actions/actions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export enum Action {
152152
RenameTable = 'rename_table',
153153
ToggleTableName = 'toggle_table_name',
154154
ToggleTableColumns = 'toggle_table_columns',
155-
ToggleTableUI = 'toggle_table_ui',
156155
DeleteDataTable = 'delete_table',
157156
CodeToDataTable = 'code_to_data_table',
158157
SortTable = 'table_sort',

quadratic-client/src/app/actions/dataTableSpec.ts

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ type DataTableSpec = Pick<
5757
| Action.HideTableColumn
5858
| Action.ShowAllColumns
5959
| Action.EditTableCode
60-
| Action.ToggleTableUI
6160
>;
6261

6362
export const getTable = (): JsRenderCodeCell | undefined => {
@@ -147,19 +146,14 @@ const isAlternatingColorsShowing = (): boolean => {
147146

148147
const isReadOnly = (): boolean => {
149148
const table = getTable();
150-
return !!table?.readonly;
149+
return !!table?.is_code;
151150
};
152151

153152
const isWithinTable = (): boolean => {
154153
// getRow() returns zero if outside of the table
155154
return !!getRow() || getColumn() !== undefined;
156155
};
157156

158-
const isTableUIShowing = (): boolean => {
159-
const table = getTable();
160-
return !!table?.show_ui;
161-
};
162-
163157
const isTableNameShowing = (): boolean => {
164158
const table = getTable();
165159
return !!table?.show_name;
@@ -438,21 +432,6 @@ const editTableCode = () => {
438432
}
439433
};
440434

441-
export const toggleTableUI = () => {
442-
pixiAppSettings.setContextMenu?.({});
443-
444-
const table = getTable();
445-
if (table) {
446-
quadraticCore.dataTableMeta(
447-
sheets.current,
448-
table.x,
449-
table.y,
450-
{ showUI: !table.show_ui },
451-
sheets.getCursorPosition()
452-
);
453-
}
454-
};
455-
456435
export const toggleTableColumns = () => {
457436
pixiAppSettings.setContextMenu?.({});
458437

@@ -505,7 +484,7 @@ export const dataTableSpec: DataTableSpec = {
505484
Icon: FileRenameIcon,
506485
isAvailable: () => {
507486
const table = getTable();
508-
return !!table?.show_ui && !!table?.show_name;
487+
return !!table?.show_name;
509488
},
510489
run: renameTable,
511490
},
@@ -642,11 +621,6 @@ export const dataTableSpec: DataTableSpec = {
642621
Icon: EditIcon,
643622
run: editTableCode,
644623
},
645-
[Action.ToggleTableUI]: {
646-
label: () => 'Show table UI',
647-
checkbox: isTableUIShowing,
648-
run: toggleTableUI,
649-
},
650624
[Action.ToggleTableColumns]: {
651625
label: () => 'Show column names',
652626
isAvailable: () => !isCodeCell('Python') && !isCodeCell('Formula'),

quadratic-client/src/app/ai/hooks/useAIModel.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export function useAIModel(): [ModelKey, SetValue<ModelKey>, ModelConfig, boolea
1919
if (version !== DEFAULT_MODEL_VERSION) {
2020
window.localStorage.setItem(MODEL_LOCAL_STORAGE_KEY, JSON.stringify(DEFAULT_MODEL));
2121
window.localStorage.setItem(MODEL_VERSION_LOCAL_STORAGE_KEY, JSON.stringify(DEFAULT_MODEL_VERSION));
22+
23+
const modelConfig = MODELS_CONFIGURATION[DEFAULT_MODEL];
24+
if ('thinkingToggle' in modelConfig) {
25+
window.localStorage.setItem(THINKING_TOGGLE_LOCAL_STORAGE_KEY, JSON.stringify(!!modelConfig.thinking));
26+
}
2227
}
2328
}, [version]);
2429

0 commit comments

Comments
 (0)