dograh/api/alembic/versions
Abhishek 00b35d6963
feat: UI refresh and user onboarding (#430)
* docs: design spec for lead-gen surfaces (Credits & Billing, Hire-an-Expert, Top-up, Enterprise)

Add brainstorming spec for: sidebar OBSERVE→MANAGE rename + Credits & Billing
link + Hire-an-Expert footer button; new /billing page with extracted Dograh
Model Credits card + CTAs; Top-up / Hire-an-Expert / Enterprise intake modals
with inline math captcha; and a workflow-builder Hire-an-Expert nudge. Frontend
only; submissions fire PostHog events via a submitLead() seam for a future
MongoDB endpoint. Also gitignore .superpowers/ brainstorm mockups.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs: implementation plan for user-onboarding lead-gen surfaces

14 bite-sized tasks: PostHog events, shared helpers (field options,
work-email blocklist, submitLead seam, math captcha), three intake modals
(enterprise/hire/top-up), LeadFormsProvider context, AppLayout mount, sidebar
MANAGE rename + Credits & Billing link + footer Hire button, extracted
DograhCreditsCard, /billing page, credits removal from Agent Runs, builder
nudge, and a full verification/dogfood pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): register PostHog events for lead-gen surfaces

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): shared field options, work-email validation, and submit seam

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): inline math captcha field

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): enterprise intake modal

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): hire-an-expert modal with enterprise link

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): top-up modal with >20k volume-pricing gate

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): shared lead-forms context provider

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): mount LeadFormsProvider in app layout

Wrap the sidebar branch of AppLayout with LeadFormsProvider so the shared
lead modals are available to the sidebar, billing card, and builder nudge.
Includes eslint import-order auto-fixes in TopUpModal and LeadFormsContext.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): rename OBSERVE to MANAGE, add Credits & Billing link and Hire-an-Expert footer button

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): extract DograhCreditsCard with top-up + hire CTAs

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): add Credits & Billing page

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(lead-gen): move Dograh Model Credits card out of Agent Runs to /billing

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(lead-gen): delayed Hire-an-Expert nudge on the workflow builder

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ci(ui): add lint:lead-flow guard script

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(ui): restructure lead forms, self-serve Buy Credits, dialog blur

Revised lead-capture surfaces and credits bar:

- Dialog overlay gains backdrop blur (bg-black/60 backdrop-blur-sm).
- Shared primitives: LeadModalShell (icon/eyebrow header, scrollable body,
  sticky footer, trust-line slot), PhoneField (react-international-phone,
  dark, E.164 out), FormTrustLine ("Average response: under 10 minutes...").
- HireExpertModal: Name, Company, Job title, agent goal, Phone (required),
  monthly volume. EnterpriseModal: + work email (required logged-out),
  conditional deployment (yes/no/maybe, source-gated), agent goal.
  OnboardingModal: drop useCase. Phone mandatory except onboarding.
- Volume buckets match the backend qualifier (0-5k/5k-100k/100k+/not-sure).
- Delete TopUpModal; DograhCreditsCard now self-serve Buy Credits (amount
  chips $5/$10/$25/$50/$100 + custom min $5 → startTopUp seam) + Hire an
  Expert + dashed custom-pricing link opening Enterprise (billing_custom_pricing).
- PostHog events: drop topup_*, add buy_credits_clicked,
  buy_credits_amount_selected, custom_pricing_clicked. LeadFormsContext
  drops topup; LeadKind/LeadSource updated.
- Introduce a single --cta warm accent token (CTAs + focus rings only).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(ui): split-screen auth + enterprise CTA + dark theme default

- AuthShell: dark two-column auth layout (brand/value panel with CSS-only
  waveform motif + proof points + Bland-style enterprise CTA block on the
  left, zinc-900 form card on the right; single-column on mobile).
- AuthEnterpriseCTA: "Talk to our team" → dograh.com/contact?intent=enterprise.
- stack-theme: dark StackTheme token overrides synced to globals.css.
- page.tsx: wrap StackHandler (non-fullPage) in AuthShell + StackTheme;
  local-auth fallback preserved inside the shell. BackButton slimmed for the card.
- Dark locked as default: <html className="dark">, next-themes ThemeProvider
  (defaultTheme="dark", enableSystem=false); inline no-FOUC script defaults dark.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ui rezig, onboarding, billing, hire us & on prem cues

* ui changes

* chore: update comment

* chore: untrack docs/superpowers and gitignore it

* feat: refactor user configuration table

* feat(ui): 'check your email' confirmation on lead forms

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* added email and country in form submissions

* chore: update leads api

* fix: wrap dograh model config in card

---------

Co-authored-by: Pritesh <pritesh@dograh.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 19:49:33 +05:30
..
0a1b2c3d4e5f_add_mcp_in_toolcategory.py feat(mcp): generic MCP tool source with per-node function filtering (#301) 2026-05-19 16:10:00 +05:30
0c1bbc83fe9e_fix_unique_constraint_on_workflow_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
0c1223cc266f_make_json_not_nullable.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
0fe708f2acb9_add_call_disposition_codes.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
1a7d74d54e8f_add_transfer_call_tool_category.py feat: telephony call transfer (#155) 2026-02-16 14:33:33 +05:30
1d441e79db94_add_user_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
1da1d650c0e4_add_total_call_duration_to_usage.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
2d6e2f41caa2_add_workflow_run.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
2dfee251117b_fix_defaults.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
2ed4baa89f15_add_annotations_in_workflow_run_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
2f638891cbb6_add_workflow_run_text_sessions.py feat: add chat based testing for voice agent (#308) 2026-05-21 15:20:02 +05:30
02ffd7f23d1d_add_index_in_workflow_run.py fix: make campaign process batch thread safe (#141) 2026-01-30 14:48:00 +05:30
3a0384c5ab2e_add_user_configuration.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
3a30110d7cd7_added_livekit_room.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
3cd3155084a2_dedup_org_scoped_recordings.py feat: allow recordings in tool transitions 2026-04-10 16:18:01 +05:30
4c1f1e3e8ef2_drop_looptalk_tables.py chore: remove looptalk (#299) 2026-05-16 17:45:12 +05:30
4d8e9b2a3c5f_drop_workflow_run_mode_enum.py feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
6bd9f67ec994_add_folders_and_workflow_folder_id.py feat: add google stt and tts. add folders to organize agents 2026-05-22 14:36:50 +05:30
6d2f94baf4b7_add_ari_mode.py feat: add asterisk ARI websocket interface (#159) 2026-02-17 19:32:03 +05:30
6fd8fac02883_add_user_email_and_password.py feat: add authentication for OSS (#167) 2026-02-20 18:21:24 +05:30
7e90cc8d025b_add_workflow_template.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
7feef09d7cc6_add_price_per_second_usd.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
08bb6e7f1397_added_campaign_table.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
9be6240baa00_add_recording_and_transcript_urls_in_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
9ef49df72862_add_workflow_id_in_workflow_definition.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
9f5f2d35f6fb_remove_workflow_definition_id_from_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
9f25ff8f3cbd_add_actions.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
13ccd6e1f5ad_add_workflow_run_mode.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
19d2a4b6c8ef_rename_integrations_organisation_id.py feat: add chat based testing for voice agent (#308) 2026-05-21 15:20:02 +05:30
20c780c2a218_add_provider.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
34c8537dfde5_add_processing_state_in_queued_runs.py fix: make campaign process batch thread safe (#141) 2026-01-30 14:48:00 +05:30
36b5dbf670e4_add_external_credentials_model.py Feat/Add API Trigger and Webhooks in Agent Builder (#83) 2025-12-22 14:08:30 +05:30
37d0a90fccba_add_api_keys_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
45fa7fec2993_add_selected_organisation_id_field_in_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
49a8fe6841e6_add_state_field_to_workflow_runs.py Feat/Add API Trigger and Webhooks in Agent Builder (#83) 2025-12-22 14:08:30 +05:30
58f17b468b3c_add_workflow_definition.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
67a5cf3e09d0_unique_recording_id_per_org.py feat: allow recordings in tool transitions 2026-04-10 16:18:01 +05:30
91cc6ba3e1c7_add_key_to_user_configurations.py feat: UI refresh and user onboarding (#430) 2026-06-17 19:49:33 +05:30
93a1ddbb6ffd_add_workflow_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
384be6596b36_make_email_case_insensitive.py fix: use runtime BACKEND_URL for proxying (#411) 2026-06-03 18:47:04 +05:30
477b47ce346b_add_organisation_id_in_workflow.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
488eb58e4e6e_add_cloudonix_mode.py feat: enable api key access to routes 2026-01-05 19:41:38 +05:30
493ca2bb001f_add_end_call_tool_category.py feat: add end_call tool (#118) 2026-01-14 16:40:40 +05:30
594f16adf97c_add_timezone_info_on_tables.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
693a865c011f_add_status_in_workflow.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
982ec8e434be_add_storage_backend_in_workflow.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
1225ac786848_add_organization_configurations.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
2159d4ac431a_added_quota_tables.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
3717ae6146e2_add_workflow_configurations.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
4735a1f0cdb3_add_queued_runs_table.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
6499c608d0f6_add_campaign_logs_column.py feat: add logs in campaigns for failure or pausing (#265) 2026-05-05 19:23:50 +05:30
9641b4f306cd_add_is_superuser_to_user_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
181475b2a1a1_add_public_access_token.py fix: remove duplicate index addition in migration (#129) 2026-01-26 15:04:24 +05:30
5253971e3f03_add_teplate_context_variables_in_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
a1b2c3d4e5f6_make_tts_columns_nullable.py feat: allow recordings in tool transitions 2026-04-10 16:18:01 +05:30
a2b092ff7282_add_usage_info.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
a29b05f31ddf_add_last_validated_at.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
a57d25b75117_add_vonage_and_rename_config.py feat: enable workflows to be embedded in websites as a script tag (#47) 2025-11-15 17:32:37 +05:30
a75ae71af479_add_log_in_workflow_run_model.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
a188ff90e76f_add_vobiz_mode_for_workflow.py feat: Update Dograh's UI Design (#67) 2025-11-29 15:39:57 +05:30
a399b39479fe_add_versioning_in_workflow_definitions.py feat: agent versioning and model configurations override (#227) 2026-04-08 19:20:31 +05:30
a2355fc6bdc1_add_multi_telephony_config_tables.py feat: refactor telephony to support multiple telephony configurations (#251) 2026-04-29 11:39:57 +05:30
ac6da37c5034_add_created_by_in_integration.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
b3a1c7e94f12_add_telnyx_mode.py feat: integrate Telnyx telephony for outbound and inbound calling (#206) 2026-03-25 18:01:41 +05:30
b79f19f68157_add_call_type_column_to_workflow_runs.py Feat/inbound telephony (#113) 2026-01-12 10:10:30 +05:30
bee2a9fcc6a6_fix_datetime_to_be_in_utc.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
c7c56dd36b21_add_agent_trigger.py Feat/Add API Trigger and Webhooks in Agent Builder (#83) 2025-12-22 14:08:30 +05:30
c71db647d354_add_calculator_in_toolcategory.py feat: set calculator as custom tool on demand 2026-04-02 14:07:03 +05:30
c425d3445750_add_columns_in_usage_table.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
cdc80a4fd2dd_add_template_description.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
cdcf9f65913b_add_workflow_uuid.py fix: make trigger paths globally unique 2026-04-25 19:44:44 +05:30
d1dac4c93e61_add_partial_index_on_call_id_for_.py fix: add cloudonix CDR handling (#140) 2026-01-29 19:06:52 +05:30
d11fbd083a55_add_connection_details.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
d0060de90c18_fix_migrations.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
d666f3244648_add_integrations.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
d688d0da1123_backfill_workflow_definition_versioning.py feat: agent versioning and model configurations override (#227) 2026-04-08 19:20:31 +05:30
dc33eef8dabe_add_document_tables.py feat: knowledge base functionality for the voice agent (#120) 2026-01-17 14:37:03 +05:30
dcb0a27d98c6_remove_unique_tool_name_constraint.py feat: add end_call tool (#118) 2026-01-14 16:40:40 +05:30
e0d1a9b9f6c4_add_looptalk_testing_tables_without_.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
e02f387b7538_add_embed_token_model.py feat: enable workflows to be embedded in websites as a script tag (#47) 2025-11-15 17:32:37 +05:30
e54ddb048535_add_recording_table.py feat: add hybrid text + recording functionality in agents (#191) 2026-03-16 15:04:08 +05:30
e7254d2c6c18_add_retrieval_mode_in_document.py feat: add full document mode in knowledge base 2026-04-09 13:49:20 +05:30
ebc80cea7965_add_tools_model.py feat: user defined custom tools as part of workflow execution (#94) 2026-01-02 13:11:02 +05:30
ec010596a0b4_change_datatype_of_usage_to_float.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
efe356f488f9_add_extra_column_in_workflow_runs.py feat: persist split user and bot audio 2026-06-16 15:19:49 +05:30
f2e1d0c9b8a7_add_plivo_mode.py feat: add Plivo telephony provider support (#245) 2026-04-25 20:41:46 +05:30
f6f19156bcb7_add_organisation_table.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
f952c9c1105a_add_failed_state_to_queued_runs.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
fec0fb9a8db7_add_index.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
fefdd1835b7d_retry_outbound_calls_for_campaigns.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30