In the context of a monday.com app that integrates with… · The Chat Archive
Explore In the context of a monday.com app that integrates with Docusign, we have mainly two… Save Share Download ▾ ReportIn the context of a monday.com app that integrates with Docusign, we have mainly
two features, an item view and sentence recipes automations. For the
automations, we handle both flows, monday -> Docusign, and Docusign -> monday
and we do things like "When status changes to {something}, create envelope with
this {data}" or "When envelope in completed, upload certificate of completion in
file column" and other automations of course. The item view was initially
thought out as being used mainly for Docusign Sender View (when an automation
created a draft envelope), or sending envelope manually with basic data, like
usiing a name or email from a column, supporting sending from scratch or using a
template.
But now come to think it could be way better, even the manual sending process
could be greatly improved like having more advanced mapping, like adding more
recipients and displaying all recipients and tabs from a template like we do in
our backend for the automations with dynamic mapping (shown below) and we could
improve UI/UX overall. We could also show more about the envelope attached to
the item like if the signers have viewed and what signers left to sign.
Help me with an improved version. You can use mock data for now. It's important
we use the themeColors and the themes to adapt to multiple monday themes, but
can also use more colors if the fit the design.
first of all. this is from our backend to show the fields for mapping for the
monday -> Docusign flow when using a template. It shows the recipients, their
tabs and prefill (sender) tabs too:
Then, the following is the current front end (just the item view);
///+page.svelte:
///src\lib\components\EmptyEnvelopes.svelte
//src\lib\components\EnvelopeCreator.svelte
{#if error} {error} {/if}
{#if currentStep === 'credentials'}
{#if isLoading}
{:else}
{#each credentials as cred}
<button
onclick={() => selectedCredential = cred.value}
class="cursor-pointer w-full p-4 rounded-md border transition-all text-left"
style="border-color: {selectedCredential === cred.value ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {selectedCredential === cred.value ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
{#if selectedCredential === cred.value}
{/if}
{cred.title}
{/each}
<button
onclick={connectNewAccount}
disabled={isConnectingAccount}
class="cursor-pointer w-full p-4 rounded-md border border-dashed transition-all text-left flex items-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed"
style="border-color: var(--border-color); background-color: transparent"
onmouseenter={(e) => !isConnectingAccount && (e.currentTarget.style.backgroundColor = themeCssVars['--input-bg-color'])}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = 'transparent'}>
{#if isConnectingAccount}
<div class="animate-spin rounded-full h-5 w-5 border-b-2" style="border-color: var(--primary-color)"></div>
<span style="color: var(--text-secondary-color)">
{#if oauthWindowOpen}
Complete sign-in in the popup window...
{:else}
Connecting...
{/if}
</span>
{:else}
<svg class="h-5 w-5" style="color: var(--primary-color)" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
</svg>
<span style="color: var(--primary-color)">Connect New Account</span>
{/if}
</button>
</div>
AssistantCopy response Copy first prompt
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details
Provider Unknown
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Jul 15, 2026
Added to archive Nov 19, 2026
ID 01m7tp5zp9rf3mj6dx0hsbwz2mSource & license Imported from Arena WebDev Preferences (2026) (source ). Imported records earn no Research Points.
Upstream record: 019f6606-852e-70b7-889a-6b62d6461f1e:b
Chi et al., Interaction-as-a-Judge (2026). arXiv:2610.17895.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
{#if currentStep === 'source'}
<button
onclick={() => sourceType = 'scratch'}
class="cursor-pointer p-6 rounded-md border transition-all text-center"
style="border-color: {sourceType === 'scratch' ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {sourceType === 'scratch' ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
<svg class="h-12 w-12 mx-auto mb-3" style="color: {sourceType === 'scratch' ? 'var(--primary-color)' : 'var(--text-secondary-color)'}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
</svg>
<span class="font-medium" style="color: var(--text-color)">Create from Scratch</span>
<p class="text-sm mt-1" style="color: var(--text-secondary-color)">Upload or select documents</p>
</button>
{#if currentStep === 'template'}
{#if isLoadingTemplates}
{:else if templates.length === 0}
No templates found in your DocuSign account.
{:else}
{#each templates as template}
<button
onclick={() => selectedTemplate = template.value}
class="cursor-pointer w-full p-3 rounded-md border transition-all text-left"
style="border-color: {selectedTemplate === template.value ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {selectedTemplate === template.value ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
{#if selectedTemplate === template.value}
{/if}
{template.title}
{/each}
{/if}
{/if}
{#if currentStep === 'documents'}
<button
onclick={() => documentSource = 'column'}
class="cursor-pointer p-4 rounded-md border transition-all text-center"
style="border-color: {documentSource === 'column' ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {documentSource === 'column' ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
<svg class="h-8 w-8 mx-auto mb-2" style="color: {documentSource === 'column' ? 'var(--primary-color)' : 'var(--text-secondary-color)'}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
</svg>
<span class="text-sm font-medium" style="color: var(--text-color)">From Column</span>
<p class="text-xs mt-1" style="color: var(--text-secondary-color)">Select file column</p>
</button>
</div>
{#if documentSource === 'column'}
<div class="mt-4">
<span class="block text-sm font-medium mb-2" style="color: var(--text-color)">
Select File Column
</span>
{#if fileColumns.length === 0}
<p class="text-sm" style="color: var(--text-secondary-color)">
No file columns found in this board.
</p>
{:else}
<div class="space-y-2">
{#each fileColumns as column}
<button
onclick={() => selectedFileColumn = column.id}
class="cursor-pointer w-full p-3 rounded-md border transition-all text-left"
style="border-color: {selectedFileColumn === column.id ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {selectedFileColumn === column.id ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
<span class="text-sm" style="color: var(--text-color)">{column.title}</span>
</button>
{/each}
</div>
{/if}
</div>
{/if}
{#if currentStep === 'recipients'}
{#if peopleColumns.length > 0}
<div>
<span class="block text-sm font-medium mb-2" style="color: var(--text-color)">
People Columns
</span>
<div class="space-y-2">
{#each peopleColumns as column}
<button
onclick={() => selectRecipientColumn(column.id, 'people')}
class="cursor-pointer w-full p-3 rounded-md border transition-all text-left"
style="border-color: {recipientColumnId === column.id ? 'var(--primary-color)' : 'var(--border-color)'};
background-color: {recipientColumnId === column.id ? 'var(--primary-selected-color)' : 'var(--input-bg-color)'};">
<div class="flex items-center gap-2">
<svg class="h-4 w-4" style="color: var(--text-secondary-color)" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
<span class="text-sm" style="color: var(--text-color)">{column.title}</span>
</div>
</button>
{/each}
</div>
</div>
{/if}
{#if emailColumns.length === 0 && peopleColumns.length === 0}
<p class="text-sm text-center py-4" style="color: var(--text-secondary-color)">
No email or people columns found. You can add recipients manually in DocuSign.
</p>
{/if}
{#if recipientColumnId}
<button
onclick={() => { recipientColumnId = null; recipientColumnType = null; }}
class="cursor-pointer text-sm"
style="color: var(--text-secondary-color)">
Clear selection
</button>
{/if}
{#if currentStep === 'review'}
<div class="flex justify-between py-2 border-b" style="border-color: var(--border-color)">
<span style="color: var(--text-secondary-color)">Source:</span>
<span style="color: var(--text-color)">{sourceType === 'template' ? 'Template' : 'Create from Scratch'}</span>
</div>
{#if sourceType === 'template'}
<div class="flex justify-between py-2 border-b" style="border-color: var(--border-color)">
<span style="color: var(--text-secondary-color)">Template:</span>
<span style="color: var(--text-color)">{selectedTemplateTitle}</span>
</div>
{:else}
<div class="flex justify-between py-2 border-b" style="border-color: var(--border-color)">
<span style="color: var(--text-secondary-color)">Documents:</span>
<span style="color: var(--text-color)">
{documentSource === 'upload' ? 'Will upload in DocuSign' : selectedFileColumnTitle}
</span>
</div>
{/if}
<div class="flex justify-between py-2" style="border-color: var(--border-color)">
<span style="color: var(--text-secondary-color)">Recipients:</span>
<span style="color: var(--text-color)">{selectedRecipientColumnTitle}</span>
</div>
{#if currentStep === 'creating'}
{#if currentStep !== 'creating'} <button onclick={goToPreviousStep}
disabled={currentStep === 'credentials'} class="cursor-pointer px-4 py-2
rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
style="color: var(--text-color); border: 1px solid var(--border-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor =
themeCssVars['--input-bg-color']} onmouseleave={(e) =>
e.currentTarget.style.backgroundColor = 'transparent'}> Back
{#if currentStep === 'review'}
<button
onclick={createDraftEnvelope}
class="cursor-pointer px-6 py-2 text-white rounded-md transition-colors font-medium"
style="background-color: var(--primary-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-hover-color']}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-color']}>
Create Envelope
{:else}
<button
onclick={goToNextStep}
disabled={
(currentStep === 'credentials' && !selectedCredential) ||
(currentStep === 'source' && !sourceType) ||
(currentStep === 'template' && !selectedTemplate) ||
(currentStep === 'documents' && documentSource === 'column' && !selectedFileColumn) ||
(currentStep === 'documents' && !documentSource)
}
class="cursor-pointer px-6 py-2 text-white rounded-md transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed"
style="background-color: var(--primary-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-hover-color']}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-color']}>
{currentStep === 'recipients' ? 'Review' : 'Next'}
{/if}
////src\lib\components\EnvelopeDetail.svelte
{#if isDraft} <EnvelopeDraft {envelope} {isOwner} {senderViewUrl}
{senderViewWindowOpen} {isUpdatingStatus} {themeCssVars} {onOpenSenderView}
{onLoadSenderView} onCheckStatus={onRefreshStatus} /> {:else} <EnvelopeSent
{envelope} {isOwner} {isUpdatingStatus} {themeCssVars} {onRefreshStatus} />
{/if}
////src\lib\components\EnvelopeDraft.svelte
{#if senderViewUrl && !senderViewWindowOpen}
<button
onclick={onOpenSenderView}
class="cursor-pointer mt-6 px-6 py-3 text-white rounded-md transition-all duration-200 font-medium shadow-lg hover:shadow-xl"
style="background-color: var(--primary-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-hover-color']}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-color']}
>
Open Sender View
{:else if senderViewWindowOpen}
Sender view is open in another window...
{isUpdatingStatus ? 'Checking...' : 'Check Status'}
{:else}
<button
onclick={onLoadSenderView}
class="cursor-pointer mt-6 px-6 py-3 text-white rounded-md transition-colors font-medium"
style="background-color: var(--primary-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-hover-color']}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = themeCssVars['--primary-color']}
>
Load Sender View
{/if}
///src\lib\components\EnvelopeList.svelte
{#if envelopes.length === 0} {:else} Envelope ID Status Last Updated
Actions {#each envelopes as envelope} <tr class="cursor-pointer
transition-colors" style="border-top: 1px solid var(--border-color)" onclick={()
=> onSelectEnvelope(envelope)} onmouseenter={(e) =>
e.currentTarget.style.backgroundColor = themeCssVars['--input-bg-color']}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = 'transparent'} >
{envelope.envelopeId.slice(0, 8)}... {getStatusLabel(envelope.status)}
{formatShortDate(envelope.lastUpdated || envelope.statusDateTime)} <button
onclick={(e) => { e.stopPropagation(); onSelectEnvelope(envelope); }}
class="cursor-pointer text-sm font-medium transition-colors" style="color:
var(--primary-color)" onmouseenter={(e) => e.currentTarget.style.color =
themeCssVars['--primary-hover-color']} onmouseleave={(e) =>
e.currentTarget.style.color = themeCssVars['--primary-color']} > View Details →
{/each} {/if}
////src\lib\components\EnvelopeSent.svelte
{#if envelope.sentDateTime}
{#if envelope.deliveredDateTime}
{#if envelope.completedDateTime}
{#if envelope.voidedDateTime}
{#if envelope.declinedDateTime}
{#if envelope.voidedReason}
{#if envelope.lastUpdated}
{#if isOwner && envelope.status !== 'completed'} <button
onclick={onRefreshStatus} disabled={isUpdatingStatus} class="cursor-pointer px-6
py-2 text-white rounded-md transition-all duration-200 disabled:opacity-50
disabled:cursor-not-allowed flex items-center gap-2" style="background-color:
var(--primary-color)" onmouseenter={(e) => !isUpdatingStatus &&
(e.currentTarget.style.backgroundColor = themeCssVars['--primary-hover-color'])}
onmouseleave={(e) => !isUpdatingStatus && (e.currentTarget.style.backgroundColor
= themeCssVars['--primary-color'])} > {#if isUpdatingStatus} Updating...
{:else} Refresh Status {/if} {:else if envelope.status !== 'completed'}
Only the envelope creator can refresh the status. {/if}
///src\lib\components\ErrorState.svelte
///src\lib\components\Header.svelte
///src\lib\components\LoadingState.svelte
///src\lib\components\SenderViewIframe.svelte
////src\lib\components\SupportModal.svelte
<h4 class="text-xl font-medium" style="color: var(--text-color)">
Here to help
</h4>
<p style="color: var(--text-secondary-color)">
If you need support, please drop an email to:
</p>
<a href="mailto:{EMAIL}"
class="text-lg font-semibold hover:underline transition-all"
style="color: var(--primary-color)"
>
{EMAIL}
</a>
<p class="text-sm px-4 leading-relaxed" style="color: var(--text-secondary-color)">
Don't worry, your email won't be lost in the ether. There's a real human who reads and responds to every email.
</p>
</div>
<!-- Divider DEMO
<div class="relative py-2">
<div class="absolute inset-0 flex items-center" aria-hidden="true">
<div class="w-full border-t" style="border-color: var(--border-color)"></div>
</div>
<div class="relative flex justify-center">
<span class="px-2 text-sm bg-transparent" style="background-color: var(--surface-color); color: var(--text-secondary-color)">
OR
</span>
</div>
</div>
-->
<!-- Booking Section
<div class="flex flex-col items-center gap-4">
<p style="color: var(--text-color)">
If you prefer, we can book a demo:
</p>
<a href={CALENDLY_URL}
target="_blank"
rel="noopener noreferrer"
class="cursor-pointer px-6 py-3 text-white rounded-md transition-all duration-200 font-medium flex items-center gap-2 shadow-sm hover:shadow-md w-full sm:w-auto justify-center"
style="background-color: var(--primary-color)"
onmouseenter={(e) => e.currentTarget.style.backgroundColor = 'var(--primary-hover-color)'}
onmouseleave={(e) => e.currentTarget.style.backgroundColor = 'var(--primary-color)'}
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
Book a Demo via Calendly
</a>
</div> -->
///src\lib\types\envelope.ts export interface EnvelopeData { envelopeId: string;
userId: number; credentialsId: string; isSent: boolean; status: 'created' |
'sent' | 'delivered' | 'completed' | 'declined' | 'voided'; statusDateTime?:
string; sentDateTime?: string; deliveredDateTime?: string; completedDateTime?:
string; voidedDateTime?: string; declinedDateTime?: string; voidedReason?:
string; lastUpdated?: string; }
export type PlanType = 'free' | 'starter' | 'business' | 'unlimited' | null;
export type ActiveView = 'envelopes' | 'tutorial' | 'support';
export const PLAN_LIMITS: Record<Exclude<PlanType, null>, number | null> = {
free: 7, starter: 80, business: 210, unlimited: null };
export interface ThemeCssVars { '--primary-color': string;
'--primary-hover-color': string; '--primary-selected-color': string;
'--bg-color': string; '--surface-color': string; '--text-color': string;
'--text-secondary-color': string; '--border-color': string; '--input-bg-color':
string; }
///src\lib\types.ts export interface SenderViewData { url: string; isSent:
boolean; createdAt: Date; }
export type Themes = 'light' | 'dark' | 'black' | 'hacker_theme' export const
possibleThemes = ['light', 'dark', 'black', 'hacker_theme']
export const themeColors = { light: { "primary-color": "#007f9b",
"primary-hover-color": "#006278", "primary-selected-color": "#d1ecef", bg:
'#ffffff', surface: '#f5f6f8', text: '#323338', secondaryText: '#676879',
border: '#d0d4e4', inputBg: '#ffffff' }, dark: { "primary-color": "#007f9b",
"primary-hover-color": "#006278", "primary-selected-color": "#0e435d", bg:
'#181b34', surface: '#30324e', text: '#d5d8df', secondaryText: '#9699a6',
border: '#4b4e69', inputBg: '#30324e' }, black: { "primary-color": "#007f9b",
"primary-hover-color": "#006278", "primary-selected-color": "#0e435d", bg:
'#111111', surface: '#2c2c2c', text: '#eeeeee', secondaryText: '#aaaaaa',
border: '#636363', inputBg: '#2c2c2c' }, hacker_theme: { "primary-color":
"#fe78c6", "primary-hover-color": "#fe5ab9", "primary-selected-color":
"#9f4077", bg: '#282a36', surface: '#30324e', text: '#d5d8df', secondaryText:
'#9699a6', border: '#797e93', inputBg: '#30324e' } }
Give me a full version using only mock data so I can visualize
I'll create a comprehensive, improved version of the monday.com DocuSign integration app with React. This will include the advanced template mapping UI, better envelope status visualization, and full theme support.
I've created a comprehensive, improved version of the monday.com DocuSign integration app with React. Here's what was built:
Key Features Implemented
1. Theme System
Full support for monday.com themes (light, dark, black, hacker_theme)
CSS variables that dynamically update for seamless theme switching
Theme switcher button in the bottom-right corner for demo purposes
2. Envelope Management
Envelope List : Card-based layout with status badges, progress bars, and key information
Envelope Detail : Tabbed interface showing:
Overview with status timeline
Recipients with signing progress visualization
Documents list with download actions
Real-time status refresh capability
3. Improved Wizard for Creating Envelopes
Step-by-step progress indicator
Account Selection : Choose from multiple DocuSign accounts
Source Selection : Template vs. Scratch
Template Browser : Rich template cards showing recipient count, document count, last modified date
Advanced Template Mapping (NEW): Visual field mapping UI showing:
Recipients with routing order
Form fields/tabs grouped by recipient
Prefill (sender) fields
Column dropdown selectors with mapping status indicators
4. Recipient Progress Tracking
Visual progress bar showing completion percentage
Step-by-step recipient cards with:
Routing order
Role labels
Status badges
CC recipient indicators
5. UI/UX Improvements
Consistent use of monday.com design patterns
Hover states and transitions
Status badges with icons and colors
Empty states and loading indicators
Responsive layout with sticky detail panel
6. Supporting Views
Tutorial : Expandable step-by-step guide
Support Modal : Contact information with email link
7. Mock Data
4 realistic DocuSign templates with recipients and tabs
5 sample envelopes in various statuses (draft, sent, delivered, completed, voided)
Multiple DocuSign accounts
monday.com column definitions
The app uses only mock data so you can visualize the full experience. Click the "Theme" button in the bottom-right to cycle through different monday.com themes and see how the UI adapts.
Files built: src/lib/types.ts, src/lib/mockData.ts, src/lib/theme.ts, src/hooks/useTheme.ts, src/components/Header.tsx, src/components/StatusBadge.tsx, src/components/RecipientProgress.tsx, src/components/EnvelopeList.tsx, src/components/EnvelopeDetail.tsx, src/components/TemplateMapping.tsx, src/components/EnvelopeCreator.tsx, src/components/SupportModal.tsx, src/components/Tutorial.tsx, src/App.tsx, src/index.css, index.html
Copy first response