Skip to content

Commit 292291f

Browse files
committed
fix: polish the wallet and dApp UIs
1 parent 6dd0ca3 commit 292291f

File tree

5 files changed

+11135
-9
lines changed

5 files changed

+11135
-9
lines changed

packages/agoric-cli/lib/start.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export default async function startMain(progname, rawArgs, priv, opts) {
3232

3333
const linkHtml = async name => {
3434
console.log(chalk.green('linking html directories'));
35-
const dappHtml = `.agservers/${name}/dapp-html`;
35+
// const dappHtml = `.agservers/${name}/dapp-html`;
3636
const htmlWallet = `.agservers/${name}/html/wallet`;
3737
// await Promise.all([fs.unlink(dappHtml).catch(() => {}), fs.unlink(htmlWallet).catch(() => {})]);
3838
await Promise.all([
39-
fs.symlink('../../ui/build', dappHtml).catch(() => {}),
39+
// fs.symlink('../../ui/build', dappHtml).catch(() => {}),
4040
fs.symlink('../../../.agwallet', htmlWallet).catch(() => {}),
4141
]);
4242
};

packages/cosmic-swingset/lib/ag-solo/vats/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function setup(syscall, state, helpers) {
123123
const uploads = E(vats.uploads).getUploads();
124124

125125
// Wallet for both end-user client and dapp dev client
126-
E(vats.wallet).startup(zoe, registrar);
126+
await E(vats.wallet).startup(zoe, registrar);
127127
const wallet = E(vats.wallet).getWallet();
128128
await Promise.all(
129129
assayInfo.map(({ petname, regKey, assay }) =>

packages/dapp-simple-exchange/.agservers/.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ integration-test/transform-tests/output
7676
# generated Sphinx/ReadTheDocs files
7777
/docs/build/
7878

79-
/solo
80-
/dev
81-
/testnet
82-
/chain
83-
/ve*
79+
solo
80+
dev
81+
testnet
82+
chain
83+
ve*

packages/wallet-frontend/src/components/Web3Status.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22

33
import { makeStyles } from '@material-ui/core/styles';
44
import { Button, Chip } from '@material-ui/core';
@@ -18,6 +18,9 @@ export default function Web3Status() {
1818
const { state, dispatch } = useApplicationContext();
1919
const { active, connected, account } = state;
2020

21+
// By default, be connected.
22+
useEffect(() => dispatch(activateConnection()), [dispatch]);
23+
2124
function handleConnect() {
2225
dispatch(activateConnection());
2326
}

0 commit comments

Comments
 (0)