Skip to content
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Preview a single-file data app locally with `altertable app dev --file index.tsx`. The file's `defineDataApp` scope must match the selected profile, and queries run through the CLI's loopback proxy.

### Changed

- Generate, preview, and upgrade data apps with data-app 0.74.0.

### Fixed

- Stop queries that run longer than 6 minutes from failing with `Request failed (network error): … (The operation timed out.)`. `--read-timeout` is now the only limit on query streams, and `0` means no limit.
Expand Down
2 changes: 1 addition & 1 deletion cli/scripts/smoke-data-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export async function smokeDataApp(
'@altertable/data-app-react',
'@altertable/data-app-bun',
]) {
if (manifest.dependencies?.[name] !== '0.73.0')
if (manifest.dependencies?.[name] !== '0.74.0')
throw new Error(
`Packaged starter must pin ${name} to the tested release`
);
Expand Down
6 changes: 3 additions & 3 deletions cli/src/commands/app/lib/distribution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ test('distribution embeds a deterministic starter with an exact package pin and
JSON.parse(files['package.json']!).dependencies['@altertable/data-app']
).toBe(recommendedDataAppVersion());
expect(JSON.parse(files['package.json']!).dependencies).toMatchObject({
'@altertable/data-app': '0.73.0',
'@altertable/data-app-react': '0.73.0',
'@altertable/data-app-bun': '0.73.0',
'@altertable/data-app': '0.74.0',
'@altertable/data-app-react': '0.74.0',
'@altertable/data-app-bun': '0.74.0',
});
expect(files['src/main.tsx']).toContain("from '@altertable/data-app-react'");
expect(files['src/preview.ts']).toContain(
Expand Down
16 changes: 8 additions & 8 deletions data-app/file-preview/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions data-app/file-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"dev": "data-app-preview"
},
"dependencies": {
"@altertable/data-app": "0.73.0",
"@altertable/data-app-bun": "0.73.0",
"@altertable/data-app-react": "0.73.0",
"@altertable/data-app": "0.74.0",
"@altertable/data-app-bun": "0.74.0",
"@altertable/data-app-react": "0.74.0",
"react": "19.3.0",
"react-dom": "19.3.0",
"@altertable/data-app-manifest": "0.73.0"
"@altertable/data-app-manifest": "0.74.0"
}
}
12 changes: 6 additions & 6 deletions data-app/starter/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions data-app/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"build": "bun build src/index.html --outdir=dist --production"
},
"dependencies": {
"@altertable/data-app": "0.73.0",
"@altertable/data-app-bun": "0.73.0",
"@altertable/data-app-react": "0.73.0",
"@altertable/data-app": "0.74.0",
"@altertable/data-app-bun": "0.74.0",
"@altertable/data-app-react": "0.74.0",
"react": "19.3.0",
"react-dom": "19.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions data-app/tests/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion data-app/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"typescript": "7.0.2"
},
"dependencies": {
"@altertable/data-app": "0.73.0"
"@altertable/data-app": "0.74.0"
}
}
11 changes: 4 additions & 7 deletions data-app/tests/starter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ test('request progress appears before Refresh', async ({ page }) => {
.boundingBox();
expect(label!.x + label!.width).toBeLessThan(action!.x);
release();
await expect(status).toBeEmpty();
await expect(status.getByText('Updating data')).toBeHidden();
});

test('variables sit below the header divider while actions stay in the header', async ({
Expand All @@ -350,7 +350,7 @@ test('variables sit below the header divider while actions stay in the header',
).toBe(true);
});

test('mobile header pairs scope with actions and keeps the description below', async ({
test('mobile header wraps actions below scope and keeps the description below', async ({
page,
}, testInfo) => {
await page.setViewportSize({ width: 390, height: 844 });
Expand All @@ -367,7 +367,7 @@ test('mobile header pairs scope with actions and keeps the description below', a
const actionsBox = await actions.boundingBox();
const descriptionBox = await description.boundingBox();
expect(scopeBox!.y).toBeGreaterThanOrEqual(titleBox!.y + titleBox!.height);
expect(Math.abs(scopeBox!.y - actionsBox!.y)).toBeLessThan(12);
expect(actionsBox!.y).toBeGreaterThanOrEqual(scopeBox!.y + scopeBox!.height);
expect(descriptionBox!.y).toBeGreaterThanOrEqual(
actionsBox!.y + actionsBox!.height
);
Expand Down Expand Up @@ -429,10 +429,7 @@ test('grid spans respond to their container at phone, tablet, and desktop widths
.getByTestId('spanned-grid')
.evaluate(element => getComputedStyle(element).gap);
expect(gap).toBe(`${Math.max(16, Math.min(24, width * 0.025))}px`);
const peers = await page
.getByTestId('peer-grid')
.locator(':scope > *')
.all();
const peers = await page.getByTestId('peer-grid').getByRole('region').all();
const firstPeer = await peers[0]!.boundingBox();
const lastPeer = await peers[2]!.boundingBox();
expect(primary).not.toBeNull();
Expand Down
Loading