feat: expose PWA, app identity, and extension directory keys in JSON config #312
This commit is contained in:
@@ -18,7 +18,7 @@ interface ProComposeTabBodyProps {
|
||||
/**
|
||||
* Renders a standalone `<EmailComposer />` inside its own Pro tab. Sending,
|
||||
* draft autosave, and discard all flow through the shared `email-store`, so
|
||||
* the result is identical to composing inline in the mail page — the
|
||||
* the result is identical to composing inline in the mail page - the
|
||||
* composer is just hosted in its own tab instead of in the right pane.
|
||||
*/
|
||||
export function ProComposeTabBody({ tabId, data }: ProComposeTabBodyProps) {
|
||||
|
||||
@@ -39,7 +39,7 @@ function buildReplyContext(email: Email): ProReplyContext {
|
||||
|
||||
/**
|
||||
* Renders a single email in its own Pro tab. Fetches the email content on
|
||||
* mount via `email-store.fetchEmailContent` so the tab is self-sufficient —
|
||||
* mount via `email-store.fetchEmailContent` so the tab is self-sufficient -
|
||||
* it doesn't depend on what the Mail tab has selected.
|
||||
*/
|
||||
export function ProEmailTabBody({ tabId, data }: ProEmailTabBodyProps) {
|
||||
@@ -160,7 +160,7 @@ export function ProEmailTabBody({ tabId, data }: ProEmailTabBodyProps) {
|
||||
if (!client || !email) return;
|
||||
try {
|
||||
await toggleStar(client, email.id);
|
||||
// Reflect locally — the viewer re-reads from email-store's selectedEmail
|
||||
// Reflect locally - the viewer re-reads from email-store's selectedEmail
|
||||
// shape only for the mail tab; here we update our local copy too.
|
||||
setEmail((prev) => prev ? {
|
||||
...prev,
|
||||
|
||||
@@ -16,7 +16,7 @@ const STANDARD_PATH_TO_TAB: Record<string, Exclude<ProTabKind, 'compose' | 'emai
|
||||
|
||||
/**
|
||||
* When the Pro interface is enabled, the standard mail/calendar/contacts/
|
||||
* files/settings routes are taken over by the Pro shell — the user shouldn't
|
||||
* files/settings routes are taken over by the Pro shell - the user shouldn't
|
||||
* have to click "Open" in settings to land there. Mobile/tablet keeps the
|
||||
* standard layout because Pro is desktop-only (see pro/page.tsx).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user