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

Code submission for FLIP fest 'Playground Feature: Improve the resource explorer 29 - Milestone 2' #168

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b16ec2b
change .env.local, run codegen, point codegen yml to local api
hichana Oct 2, 2021
6242675
add helpful print statements
hichana Oct 2, 2021
497b524
allow AccountBottomBar to render for all EntityType types
hichana Oct 2, 2021
4e4a1aa
add state for selecting which account's resources to view in projectM…
hichana Oct 2, 2021
95a5cdd
add button that changes new data members in project provider with ind…
hichana Oct 2, 2021
d965032
simplify selected resource account setter function in project provider
hichana Oct 2, 2021
46b6f64
link up button click to setting of state for viewing a given user's s…
hichana Oct 2, 2021
9c71fc0
decouple button click in sidebar on account from button that renders …
hichana Oct 2, 2021
a7b94c3
remove 'key' prop on Example component to resolve browser errors
hichana Oct 4, 2021
9ea2439
fix key error in react component and ts warning
hichana Oct 4, 2021
a061e25
fix web console errors
hichana Oct 5, 2021
fb5b48e
add prototype method of flagging acct that had storage update
hichana Oct 5, 2021
3009f16
add Capabilities to parsed data set for resources explorer
hichana Oct 6, 2021
0c0b5c1
add prototype insert tx onclick
hichana Oct 6, 2021
af10b7b
add URL param functionality for 'storage' url param
hichana Oct 7, 2021
5f5db75
add prototype URL params to persist resources explorer across user ac…
hichana Oct 7, 2021
dcb10af
remove .vscode/settings: remove to align with master
hichana Oct 7, 2021
f6935f5
run graphql codegen
hichana Oct 7, 2021
715918e
cleanup
hichana Oct 8, 2021
428a2ba
use account string (ex '0x01') as a url param for storage instead of …
hichana Oct 8, 2021
0bcaed6
add prototype button for selecting resource account
hichana Oct 9, 2021
e6647c8
fix key render error
hichana Oct 9, 2021
f83d2f6
nest resources explorer button inside sidebar item
hichana Oct 9, 2021
c74bca4
make button green for selected storage account
hichana Oct 9, 2021
8c46962
make clicking on user in sidebar not change storage param in url
hichana Oct 9, 2021
92787f9
add temp badges for milestone 2
hichana Oct 9, 2021
66da1ed
remove unecessary Flex component in AccountList
hichana Oct 9, 2021
9296f9d
remove unecessary css
hichana Oct 9, 2021
37d4eb1
remove Flex import
hichana Oct 9, 2021
791beab
add alignment to contents of resource explorer item
hichana Oct 9, 2021
c9916ef
use placeholder popup in AccountBottomBar
hichana Oct 9, 2021
b125d71
button toggles template popup
hichana Oct 9, 2021
909813e
add customizable white overlay backround capability
hichana Oct 9, 2021
dea550a
add popup creation of script/tx template creator
hichana Oct 9, 2021
8ab45f2
add pair data for knowing what storage has been updated by who
hichana Oct 9, 2021
d0b7a1e
add prototype for toast
hichana Oct 10, 2021
8b49e7d
add type annotation for removeNotification setter
hichana Oct 10, 2021
f0f1feb
add typescript annotation
hichana Oct 10, 2021
392173c
add prototype of expanding Arguments container instead of toast
hichana Oct 11, 2021
bae724b
revise prototype for user tx notifications
hichana Oct 11, 2021
34dd701
clean styles.tsx
hichana Oct 11, 2021
1e3da1b
cleanup and minor fixes before milestone 2 submission
hichana Oct 11, 2021
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
1 change: 1 addition & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
overwrite: true
schema:
- "http://localhost:8080/query"
- "https://playground.staging.flow.dapperlabs.com/query"
- "src/api/apollo/local.graphql"
documents: "src/api/apollo/**/*.ts"
Expand Down
21,413 changes: 19 additions & 21,394 deletions package-lock.json

Large diffs are not rendered by default.

210 changes: 105 additions & 105 deletions src/api/apollo/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,80 @@ export type Scalars = {

export type Project = {
__typename?: 'Project';
accounts?: Maybe<Array<Account>>;
id: Scalars['UUID'];
publicId: Scalars['UUID'];
mutable?: Maybe<Scalars['Boolean']>;
parentId?: Maybe<Scalars['UUID']>;
title: Scalars['String'];
seed: Scalars['Int'];
version: Scalars['Version'];
persist?: Maybe<Scalars['Boolean']>;
mutable?: Maybe<Scalars['Boolean']>;
accounts?: Maybe<Array<Account>>;
transactionTemplates?: Maybe<Array<TransactionTemplate>>;
transactionExecutions?: Maybe<Array<TransactionExecution>>;
scriptTemplates?: Maybe<Array<ScriptTemplate>>;
publicId: Scalars['UUID'];
scriptExecutions?: Maybe<Array<ScriptExecution>>;
scriptTemplates?: Maybe<Array<ScriptTemplate>>;
seed: Scalars['Int'];
title: Scalars['String'];
transactionExecutions?: Maybe<Array<TransactionExecution>>;
transactionTemplates?: Maybe<Array<TransactionTemplate>>;
version: Scalars['Version'];
};

export type NewProject = {
parentId?: Maybe<Scalars['UUID']>;
title: Scalars['String'];
seed: Scalars['Int'];
accounts?: Maybe<Array<Scalars['String']>>;
transactionTemplates?: Maybe<Array<NewProjectTransactionTemplate>>;
scriptTemplates?: Maybe<Array<NewProjectScriptTemplate>>;
export type ProgramError = {
__typename?: 'ProgramError';
endPosition?: Maybe<ProgramPosition>;
message: Scalars['String'];
startPosition?: Maybe<ProgramPosition>;
};

export type NewProjectTransactionTemplate = {
export type NewProjectScriptTemplate = {
script: Scalars['String'];
title: Scalars['String'];
};

export type NewTransactionExecution = {
arguments?: Maybe<Array<Scalars['String']>>;
projectId: Scalars['UUID'];
script: Scalars['String'];
signers?: Maybe<Array<Scalars['Address']>>;
};


export type Account = {
__typename?: 'Account';
address: Scalars['Address'];
deployedCode: Scalars['String'];
deployedContracts: Array<Scalars['String']>;
draftCode: Scalars['String'];
id: Scalars['UUID'];
state: Scalars['String'];
};

export type ScriptTemplate = {
__typename?: 'ScriptTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
script: Scalars['String'];
title: Scalars['String'];
};

export type UpdateAccount = {
deployedCode?: Maybe<Scalars['String']>;
draftCode?: Maybe<Scalars['String']>;
id: Scalars['UUID'];
projectId: Scalars['UUID'];
};

export type NewScriptExecution = {
arguments?: Maybe<Array<Scalars['String']>>;
projectId: Scalars['UUID'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
};

export type ProgramPosition = {
__typename?: 'ProgramPosition';
offset: Scalars['Int'];
line: Scalars['Int'];
column: Scalars['Int'];

export type Event = {
__typename?: 'Event';
type: Scalars['String'];
values: Array<Scalars['String']>;
};


export type Query = {
__typename?: 'Query';
account: Account;
Expand Down Expand Up @@ -98,69 +130,81 @@ export type QueryTransactionTemplateArgs = {
projectId: Scalars['UUID'];
};

export type TransactionTemplate = {
__typename?: 'TransactionTemplate';
export type UpdateScriptTemplate = {
id: Scalars['UUID'];
index: Scalars['Int'];
title: Scalars['String'];
script: Scalars['String'];
index?: Maybe<Scalars['Int']>;
projectId: Scalars['UUID'];
script?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};

export type TransactionExecution = {
__typename?: 'TransactionExecution';
export type TransactionTemplate = {
__typename?: 'TransactionTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
signers: Array<Account>;
errors?: Maybe<Array<ProgramError>>;
events: Array<Maybe<Event>>;
logs: Array<Scalars['String']>;
};

export type NewTransactionTemplate = {
projectId: Scalars['UUID'];
title: Scalars['String'];
script: Scalars['String'];
};

export type UpdateTransactionTemplate = {
id: Scalars['UUID'];
title?: Maybe<Scalars['String']>;
projectId: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
projectId: Scalars['UUID'];
script?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};



export type ProgramError = {
__typename?: 'ProgramError';
message: Scalars['String'];
startPosition?: Maybe<ProgramPosition>;
endPosition?: Maybe<ProgramPosition>;
export type NewScriptTemplate = {
projectId: Scalars['UUID'];
script: Scalars['String'];
title: Scalars['String'];
};

export type ScriptExecution = {
__typename?: 'ScriptExecution';
id: Scalars['UUID'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
errors?: Maybe<Array<ProgramError>>;
value: Scalars['String'];
id: Scalars['UUID'];
logs: Array<Scalars['String']>;
script: Scalars['String'];
value: Scalars['String'];
};

export type NewProjectScriptTemplate = {
export type NewProject = {
accounts?: Maybe<Array<Scalars['String']>>;
parentId?: Maybe<Scalars['UUID']>;
scriptTemplates?: Maybe<Array<NewProjectScriptTemplate>>;
seed: Scalars['Int'];
title: Scalars['String'];
transactionTemplates?: Maybe<Array<NewProjectTransactionTemplate>>;
};

export type NewProjectTransactionTemplate = {
script: Scalars['String'];
title: Scalars['String'];
};

export type UpdateScriptTemplate = {
export type UpdateProject = {
id: Scalars['UUID'];
persist?: Maybe<Scalars['Boolean']>;
title?: Maybe<Scalars['String']>;
};

export type TransactionExecution = {
__typename?: 'TransactionExecution';
arguments?: Maybe<Array<Scalars['String']>>;
errors?: Maybe<Array<ProgramError>>;
events: Array<Maybe<Event>>;
id: Scalars['UUID'];
logs: Array<Scalars['String']>;
script: Scalars['String'];
signers: Array<Account>;
};

export type NewTransactionTemplate = {
projectId: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
script?: Maybe<Scalars['String']>;
script: Scalars['String'];
title: Scalars['String'];
};

export type Mutation = {
Expand Down Expand Up @@ -261,55 +305,11 @@ export type PlaygroundInfo = {
cadenceVersion: Scalars['Version'];
};

export type Event = {
__typename?: 'Event';
type: Scalars['String'];
values: Array<Scalars['String']>;
};

export type ScriptTemplate = {
__typename?: 'ScriptTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
title: Scalars['String'];
script: Scalars['String'];
};

export type UpdateProject = {
id: Scalars['UUID'];
title?: Maybe<Scalars['String']>;
persist?: Maybe<Scalars['Boolean']>;
};

export type UpdateAccount = {
id: Scalars['UUID'];
projectId: Scalars['UUID'];
draftCode?: Maybe<Scalars['String']>;
deployedCode?: Maybe<Scalars['String']>;
};

export type Account = {
__typename?: 'Account';
id: Scalars['UUID'];
address: Scalars['Address'];
draftCode: Scalars['String'];
deployedCode: Scalars['String'];
deployedContracts: Array<Scalars['String']>;
state: Scalars['String'];
};


export type NewTransactionExecution = {
projectId: Scalars['UUID'];
script: Scalars['String'];
signers?: Maybe<Array<Scalars['Address']>>;
arguments?: Maybe<Array<Scalars['String']>>;
};

export type NewScriptTemplate = {
projectId: Scalars['UUID'];
title: Scalars['String'];
script: Scalars['String'];
export type ProgramPosition = {
__typename?: 'ProgramPosition';
column: Scalars['Int'];
line: Scalars['Int'];
offset: Scalars['Int'];
};


Expand Down
Loading