feat: add help sections for insights, map, API tokens, REST/GraphQL APIs; remove Gaiia webhook secret UI, update setup to use All Events
This commit is contained in:
parent
596b404baf
commit
86acb04353
1 changed files with 1 additions and 37 deletions
|
|
@ -1139,41 +1139,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-medium text-gray-700 dark:text-gray-300">
|
||||
Webhook Secret
|
||||
</label>
|
||||
<div class="mt-1 flex items-center gap-2">
|
||||
<input
|
||||
id="gaiia-webhook-secret"
|
||||
type="text"
|
||||
readonly
|
||||
value={get_credential(@integrations["gaiia"], "webhook_secret")}
|
||||
class="block w-full rounded-md border-gray-300 bg-gray-50 py-1.5 font-mono text-sm text-gray-900 shadow-xs sm:leading-6 dark:border-white/10 dark:bg-white/5 dark:text-white"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
phx-hook="CopyToClipboard"
|
||||
data-target="#gaiia-webhook-secret"
|
||||
id="copy-webhook-secret"
|
||||
class="inline-flex items-center gap-1 rounded-md bg-white px-2.5 py-1.5 text-xs font-medium text-gray-700 shadow-xs ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-white/10 dark:text-gray-300 dark:ring-white/10 dark:hover:bg-white/20"
|
||||
>
|
||||
<.icon name="hero-clipboard" class="h-3.5 w-3.5" /> Copy
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<button
|
||||
type="button"
|
||||
id="regenerate-webhook-secret"
|
||||
phx-click="regenerate_webhook_secret"
|
||||
data-confirm="Are you sure? Any existing Gaiia webhook using the current secret will stop working."
|
||||
class="text-xs text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300"
|
||||
>
|
||||
Regenerate Secret
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-md bg-blue-50 p-3 dark:bg-blue-900/20">
|
||||
<h5 class="text-xs font-medium text-blue-800 dark:text-blue-300">
|
||||
Setup Instructions
|
||||
|
|
@ -1182,8 +1147,7 @@
|
|||
<li>In your Gaiia admin panel, go to Settings → Webhooks</li>
|
||||
<li>Click "Add Webhook"</li>
|
||||
<li>Paste the Webhook URL above</li>
|
||||
<li>Paste the Webhook Secret above into the "Secret" field</li>
|
||||
<li>Select events: Account, Billing Subscription, Inventory Item</li>
|
||||
<li>Under Events, select "All Events"</li>
|
||||
<li>Save the webhook</li>
|
||||
</ol>
|
||||
<p class="mt-2 text-xs text-blue-600 dark:text-blue-400">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue