Skip to content

Commit e961edd

Browse files
authored
Add several new enhancements (#340)
Signed-off-by: Nik Nasr <[email protected]>
1 parent f43063b commit e961edd

File tree

107 files changed

+3262
-779
lines changed

Some content is hidden

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

107 files changed

+3262
-779
lines changed

apps/web-ui/app/root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
} from '@restate/features/overview-route';
3535
import { Spinner } from '@restate/ui/loading';
3636
import {
37-
DeleteInvocation,
37+
InvocationActions,
3838
INVOCATION_QUERY_NAME,
3939
InvocationPanel,
4040
} from '@restate/features/invocation-route';
@@ -242,7 +242,7 @@ export default function App() {
242242
<ServicePlayground />
243243
<InvocationPanel />
244244
<StatePanel />
245-
<DeleteInvocation />
245+
<InvocationActions />
246246
<Support />
247247
</EditState>
248248
</RestateContextProvider>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { invocations } from '@restate/features/invocations-route';
22

33
export default invocations.Component;
4+
export const clientLoader = invocations.clientLoader;
5+
export const shouldRevalidate = invocations.shouldRevalidate;
46
export function meta() {
57
return [{ title: 'Restate - Invocations' }];
68
}

apps/web-ui/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"jsx": "react-jsx",
88
"moduleResolution": "bundler",
99
"resolveJsonModule": true,
10-
"target": "ES2019",
10+
"target": "ES2020",
1111
"strict": true,
1212
"allowJs": true,
1313
"forceConsistentCasingInFileNames": true,

libs/data-access/admin-api-fixtures/src/lib/adminApiDb.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const adminApiDb = factory({
1818
input_description: () =>
1919
'one of ["none", "value of content-type \'application/json\'"]',
2020
output_description: () => "value of content-type 'application/json'",
21+
public: () => faker.datatype.boolean(),
2122
},
2223
service: {
2324
id: primaryKey<number>(() => faker.number.int()),
@@ -33,7 +34,9 @@ export const adminApiDb = factory({
3334
revision: () => faker.number.int(),
3435
idempotency_retention: () => '1Day',
3536
workflow_completion_retention: () => '1Day',
37+
journal_retention: () => '1Day',
3638
public: () => faker.datatype.boolean(),
39+
enable_lazy_state: () => faker.datatype.boolean(),
3740
},
3841
deployment: {
3942
id: primaryKey(() => `dp_${faker.string.nanoid(27)}`),

libs/data-access/admin-api-fixtures/src/lib/adminApiMockHandlers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,14 @@ const registerDeploymentHandler = http.post<
8989
ty: service.ty,
9090
idempotency_retention: service.idempotency_retention,
9191
workflow_completion_retention: service.idempotency_retention,
92+
journal_retention: service.journal_retention,
93+
enable_lazy_state: service.enable_lazy_state,
9294
handlers: service.handlers.map((handler) => ({
9395
name: handler.name,
9496
ty: handler.ty,
9597
input_description: handler.input_description,
9698
output_description: handler.output_description,
99+
public: true,
97100
})),
98101
})),
99102
});
@@ -132,6 +135,7 @@ const registerDeploymentHandler = http.post<
132135
ty: handler.ty,
133136
input_description: handler.input_description,
134137
output_description: handler.output_description,
138+
public: true,
135139
})),
136140
})),
137141
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
[
4+
"@nx/react/babel",
5+
{
6+
"runtime": "automatic",
7+
"useBuiltIns": "usage"
8+
}
9+
]
10+
],
11+
"plugins": []
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# admin-api-hooks
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test admin-api-hooks` to execute the unit tests via [Vitest](https://vitest.dev/).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const nx = require('@nx/eslint-plugin');
2+
const baseConfig = require('../../../eslint.config.js');
3+
4+
module.exports = [
5+
...baseConfig,
6+
...nx.configs['flat/react'],
7+
{
8+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
9+
// Override or add rules here
10+
rules: {},
11+
},
12+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "admin-api-hooks",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "libs/data-access/admin-api-hooks/src",
5+
"projectType": "library",
6+
"tags": [],
7+
"// targets": "to see all targets run: nx show project admin-api-hooks --web",
8+
"targets": {}
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/hooks';

0 commit comments

Comments
 (0)