From a6413da67a4579866f0fd0323ddb23a7b6b9654a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 18 Sep 2026 17:00:53 +0000
Subject: [PATCH] =Cleaning up the Integrations setup a bit, started the Helcim integration work too
---
inc/integrations/services/Umami.php | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/inc/integrations/services/Umami.php b/inc/integrations/services/Umami.php
index b67bc45..bd83cc2 100644
--- a/inc/integrations/services/Umami.php
+++ b/inc/integrations/services/Umami.php
@@ -29,15 +29,21 @@
protected function defineFields(): void
{
$id = $this->addField('website_id', 'Website ID', 'text', 'manage_options');
- $id->setHint('Found in your Umami dashboard under Settings->Websites');
- $id->setRequired();
+ $id->setHint('Found in your Umami dashboard under Settings->Websites');
+ $id->setRequired();
+ $id->makeSetupField();
+ $this->updateField('website_id', $id);
$api_url = $this->addField('api_url', 'API URL', 'text', 'manage_options');
- $api_url->setHint('Your Umami server URL. Leave blank if using umami.is cloud service.');
+ $api_url->setHint('Your Umami server URL. Leave blank if using umami.is cloud service.');
+ $api_url->makeAdvancedField();
+ $this->updateField('api_url', $api_url);
$api_token = $this->addField('api_token', 'API Token (Optional)', 'text', 'manage_options');
- $api_token->setSubType('password');
- $api_token->setHint('Required only if you want to retrieve analytics data for dashboards.');
+ $api_token->setSubType('password');
+ $api_token->setHint('Required only if you want to retrieve analytics data for dashboards.');
+ $api_token->makeAdvancedField();
+ $this->updateField('api_token', $api_token);
}
protected function defineInstructions():void
{
@@ -220,4 +226,9 @@
return implode(' ', $strings);
}
+
+ protected function defineActions(): void
+ {
+ // TODO: Implement defineActions() method.
+ }
}
--
Gitblit v1.10.0