Rip apart client, build a wrapper.

The goal here is to be able to augment the client with additional data
as we get it. At this point I'm now augmenting with the mailbox data
that the MailboxList is requesting and showing that.

That's progress.

There may be significant issues with making multiple requests in a
single round-trip because my client library appears to do things like
hard-coding the position of specific requests. I may have to work around
this.
This commit is contained in:
Eli Ribble 2024-08-27 22:49:48 -07:00
parent c17e8b9ad0
commit bab5d421d4
7 changed files with 195 additions and 141 deletions

View file

@ -3,16 +3,23 @@ import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import AccountList, { AccountListProps } from "./AccountList";
import AccountList from "./AccountList";
import MailboxList from "./MailboxList";
import { IAccount, TopProps } from "./types";
import Client from "./client/Client";
import { AccountIdMap, IAccount } from "./client/types";
type TopProps = {
account: IAccount | null;
accounts: AccountIdMap;
client: Client;
};
const AppLayout: React.FC<TopProps> = (props) => {
return (
<Container>
<Row>
<Col>
<AccountList {...props} />
<AccountList account={props.account} accounts={props.accounts} />
</Col>
<Col></Col>
<Col></Col>