Skip to content

Commit 0d53098

Browse files
bchapuisclaude
andcommitted
Remove max-width constraint from bot detail pages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d09d4d8 commit 0d53098

6 files changed

Lines changed: 18 additions & 17 deletions

File tree

apps/app/src/components/workflow/widgets/input/whatsapp-account-create-dialog.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ const STEP_TITLES: Record<Step, string> = {
2828
const STEP_DESCRIPTIONS: Record<Step, string> = {
2929
name: "Choose a display name to identify this WhatsApp account in Dafthunk.",
3030
"app-secret":
31-
"Copy the App Secret from your Meta app. Navigate to App Settings > Basic in the Meta Developer Portal.",
31+
"Copy the App Secret from your Meta app. Navigate to Apps > App Settings > Basic in the Meta Developer Portal.",
3232
"api-credentials":
3333
"Copy your Access Token and Phone Number ID from the WhatsApp API Setup page in the Meta Developer Portal.",
34-
setup:
35-
"Your account is ready. Follow these steps to complete the setup.",
34+
setup: "Your account is ready. Follow these steps to complete the setup.",
3635
};
3736

3837
const META_PORTAL_URL = "https://developers.facebook.com/apps/";
@@ -169,7 +168,7 @@ export function WhatsAppAccountCreateDialog({
169168
<p className="text-xs text-muted-foreground">
170169
Find this at{" "}
171170
<span className="font-medium text-foreground">
172-
App Settings &gt; Basic
171+
Apps &gt; App Settings &gt; Basic
173172
</span>{" "}
174173
in the Meta Developer Portal. Click{" "}
175174
<span className="font-medium text-foreground">Show</span> next
@@ -210,12 +209,12 @@ export function WhatsAppAccountCreateDialog({
210209
<p className="text-xs text-muted-foreground">
211210
Find this at{" "}
212211
<span className="font-medium text-foreground">
213-
WhatsApp &gt; API Setup
212+
Apps &gt; Use cases &gt; WhatsApp &gt; API Setup
214213
</span>{" "}
215214
under the temporary access token section, or generate a
216215
permanent token via{" "}
217216
<span className="font-medium text-foreground">
218-
Business Settings &gt; System Users
217+
Business &gt; Settings &gt; System Users
219218
</span>
220219
.
221220
</p>
@@ -237,7 +236,7 @@ export function WhatsAppAccountCreateDialog({
237236
<p className="text-xs text-muted-foreground">
238237
Find this at{" "}
239238
<span className="font-medium text-foreground">
240-
WhatsApp &gt; API Setup
239+
Apps &gt; Use cases &gt; WhatsApp &gt; API Setup
241240
</span>
242241
. Select your phone number from the dropdown — the numeric ID
243242
appears below it. This is not the phone number itself.

apps/app/src/components/workflow/widgets/input/whatsapp-setup-info.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export function WhatsAppSetupInfo() {
2121
Meta Developer Portal
2222
</span>{" "}
2323
webhook settings and subscribe to the{" "}
24-
<span className="font-medium text-foreground">messages</span>{" "}
25-
field.
24+
<span className="font-medium text-foreground">messages</span> field.
2625
</li>
2726
<li>
2827
Enable the workflow, then send a WhatsApp message to your business

apps/app/src/pages/bot-discord-detail-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function BotDiscordDetailPage() {
5454

5555
return (
5656
<InsetLayout title="Bot Details">
57-
<div className="space-y-8 max-w-2xl">
57+
<div className="space-y-8">
5858
<div className="flex justify-end">
5959
<Button
6060
variant="outline"

apps/app/src/pages/bot-telegram-detail-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function BotTelegramDetailPage() {
4646

4747
return (
4848
<InsetLayout title="Bot Details">
49-
<div className="space-y-8 max-w-2xl">
49+
<div className="space-y-8">
5050
<div className="flex justify-end">
5151
<Button
5252
variant="outline"

apps/app/src/pages/bot-whatsapp-detail-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function BotWhatsAppDetailPage() {
6262

6363
return (
6464
<InsetLayout title="Account Details">
65-
<div className="space-y-8 max-w-2xl">
65+
<div className="space-y-8">
6666
<div className="flex justify-end">
6767
<Button
6868
variant="outline"

apps/app/src/pages/bot-whatsapp-edit-dialog.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export function BotWhatsAppEditDialog({
5252
phoneNumberId:
5353
phoneNumberId !== account.phoneNumberId ? phoneNumberId : undefined,
5454
appSecret: appSecret.trim() !== "" ? appSecret : undefined,
55-
wabaId: wabaId !== (account.wabaId || "") ? wabaId || undefined : undefined,
55+
wabaId:
56+
wabaId !== (account.wabaId || "") ? wabaId || undefined : undefined,
5657
},
5758
organization.id
5859
);
@@ -110,7 +111,8 @@ export function BotWhatsAppEditDialog({
110111
placeholder="Leave empty to keep current secret"
111112
/>
112113
<p className="text-xs text-muted-foreground">
113-
Found at App Settings &gt; Basic in the Meta Developer Portal.
114+
Found at Apps &gt; App Settings &gt; Basic in the Meta Developer
115+
Portal.
114116
</p>
115117
</div>
116118

@@ -124,8 +126,8 @@ export function BotWhatsAppEditDialog({
124126
placeholder="Leave empty to keep current token"
125127
/>
126128
<p className="text-xs text-muted-foreground">
127-
Found at WhatsApp &gt; API Setup, or via Business Settings &gt;
128-
System Users for a permanent token.
129+
Found at Apps &gt; Use cases &gt; WhatsApp &gt; API Setup, or via
130+
Business Settings &gt; System Users for a permanent token.
129131
</p>
130132
</div>
131133

@@ -137,7 +139,8 @@ export function BotWhatsAppEditDialog({
137139
onChange={(e) => setPhoneNumberId(e.target.value)}
138140
/>
139141
<p className="text-xs text-muted-foreground">
140-
Found at WhatsApp &gt; API Setup under the phone number dropdown.
142+
Found at Apps &gt; Use cases &gt; WhatsApp &gt; API Setup under
143+
the phone number dropdown.
141144
</p>
142145
</div>
143146

0 commit comments

Comments
 (0)