Skip to content

Commit f4749c6

Browse files
asutulajoewagner
andauthored
Native mode (#308)
* (nonce) ensure incrby does not remove ttl (#303) * Console refresh (#301) * wip on new console Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * better layout for console and data table Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * more query validation, multiple statement support Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * remove old files Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * remove old code editor and deps Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * layout fix Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * working tabs Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * support esc key to cancel edit tab name Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * persisted tab data Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * shared wallet status component and supporting changes Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * little css cleanup Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * store tab data per project Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * combining conditional logic Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> --------- Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> Co-authored-by: Aaron Sutula <asutula@users.noreply.github.com> * native mode as project setting, scope tab results to env Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * support native mode in studio aliases Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * cli fix Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> * add native_mode columns to cli tests Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> --------- Signed-off-by: Aaron Sutula <asutula@users.noreply.github.com> Co-authored-by: Joe Wagner <joewagner@users.noreply.github.com> Co-authored-by: Aaron Sutula <asutula@users.noreply.github.com>
1 parent f1c7fac commit f4749c6

File tree

32 files changed

+1536
-604
lines changed

32 files changed

+1536
-604
lines changed

package-lock.json

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

packages/api/src/routers/projects.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export function projectsRouter(store: Store) {
8585
ctx.teamId,
8686
input.name,
8787
input.description,
88+
input.nativeMode,
8889
input.envNames.map((env) => env.name),
8990
);
9091
return project;
@@ -101,6 +102,7 @@ export function projectsRouter(store: Store) {
101102
input.projectId,
102103
input.name,
103104
input.description,
105+
input.nativeMode,
104106
);
105107
} catch (err) {
106108
throw internalError("Error updating project", err);

packages/api/src/routers/users.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,12 @@ export function usersRouter(store: Store) {
1717
);
1818
return res;
1919
}),
20+
21+
userForAddress: publicProcedure
22+
.input(z.object({ address: z.string().trim().min(1) }))
23+
.query(async ({ input }) => {
24+
const res = await store.users.userForAddress(input.address);
25+
return res;
26+
}),
2027
});
2128
}

packages/cli/src/commands/project.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export const builder = function (args: Yargs) {
127127
teamId,
128128
name,
129129
description,
130+
nativeMode: false,
130131
// TODO: Allow user to specify env names
131132
envNames: [{ name: "default" }],
132133
});

packages/cli/test/sql/setup_studio_test_tables.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CREATE TABLE `projects` (
3131
`name` text NOT NULL,
3232
`slug` text NOT NULL,
3333
`description` text NOT NULL,
34+
`native_mode` integer,
3435
`created_at` text,
3536
`updated_at` text
3637
);

0 commit comments

Comments
 (0)