4 Commits

Author SHA1 Message Date
Arne Weiss 14d2e81d8c Fix admin controller crash: inline table name, fix submit action name
Build / build (push) Successful in 10s
2026-06-01 08:06:39 +02:00
Arne Weiss 2883b338f4 Add Gitea Actions CI/CD pipeline with release workflow
Build / build (push) Successful in 10s
Release / release (push) Successful in 9s
2026-06-01 07:57:23 +02:00
Arne Weiss 317d92b9d0 Rename module from cyp_withdrawalbutton to simple_withdrawalbutton
- Main file: cyp_withdrawalbutton.php -> simple_withdrawalbutton.php
- Admin controller: AdminCypWithdrawalController.php -> AdminSimpleWithdrawalController.php
- Class: Cyp_Withdrawalbutton -> Simple_withdrawalbutton
- DB table: cyp_withdrawal_request -> simple_withdrawal_request
- Config keys: CYP_WITHDRAWAL_* -> SIMPLE_WITHDRAWAL_*
- Admin tab: AdminCypWithdrawal -> AdminSimpleWithdrawal
- All template mod attributes updated
2026-06-01 07:34:26 +02:00
Arne Weiss 346ee7b616 Initial commit with all bug and compliance fixes
- Remove double pSQL() escaping in Db::insert/update calls (data corruption fix)
- Rename honeypot field from 'website' to 'cyp_hp_v1' to prevent browser autofill false positives
- Wrap Mail::Send() in try/catch; capture shop notification result to detect failures
- Scope order lookup to current shop (multi-shop fix)
- Translate scope_label and email subjects per language (de/en)
- Make formatDateTimeForMail() language-aware
- Add GDPR Art. 13 privacy notice to withdrawal form
- Add configurable privacy policy URL and Widerrufsbelehrung link
- Add configurable retention period and manual purge button in admin settings
- Show full submitted data on success page as proper receipt
- Fix admin redirect URL format in processStatusUpdate()
- Remove IP/UA hash display from admin detail view (GDPR data minimization)
2026-06-01 07:30:29 +02:00
5 changed files with 8 additions and 47 deletions
+1 -2
View File
@@ -27,8 +27,7 @@ jobs:
cp -rp . /tmp/$MODULE
rm -rf /tmp/$MODULE/.git \
/tmp/$MODULE/.gitea \
/tmp/$MODULE/CLAUDE.md \
/tmp/$MODULE/release.sh
/tmp/$MODULE/CLAUDE.md
cd /tmp && zip -r ${MODULE}.zip $MODULE/
mkdir -p $GITHUB_WORKSPACE/dist
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
+3 -12
View File
@@ -8,8 +8,6 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: php:8.2-cli-alpine
@@ -30,8 +28,7 @@ jobs:
cp -rp . /tmp/$MODULE
rm -rf /tmp/$MODULE/.git \
/tmp/$MODULE/.gitea \
/tmp/$MODULE/CLAUDE.md \
/tmp/$MODULE/release.sh
/tmp/$MODULE/CLAUDE.md
cd /tmp && zip -r ${MODULE}.zip $MODULE/
mkdir -p $GITHUB_WORKSPACE/dist
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
@@ -41,17 +38,11 @@ jobs:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
RESPONSE=$(curl -s -X POST \
RELEASE_ID=$(curl -sf -X POST \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}")
echo "API response: $RESPONSE"
RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id')
if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then
echo "Failed to create release" && exit 1
fi
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | jq -r '.id')
curl -sf -X POST \
-H "Authorization: token $TOKEN" \
@@ -20,8 +20,6 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
$this->list_no_link = false;
$this->actions = ['view'];
parent::__construct();
$this->fields_list = [
'id_withdrawal_request' => [
'title' => $this->l('ID'),
@@ -58,6 +56,8 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
'filter_key' => 'a!status',
],
];
parent::__construct();
}
public function renderScopeLabel($value, $row)
-29
View File
@@ -1,29 +0,0 @@
#!/bin/sh
set -e
FILE=simple_withdrawalbutton.php
# Read current version
CURRENT=$(grep "version = '" "$FILE" | grep -o "'[0-9]*\.[0-9]*\.[0-9]*'" | tr -d "'")
if [ -z "$CURRENT" ]; then
echo "Error: could not read version from $FILE" >&2
exit 1
fi
# Increment patch
MAJOR=$(echo "$CURRENT" | cut -d. -f1)
MINOR=$(echo "$CURRENT" | cut -d. -f2)
PATCH=$(echo "$CURRENT" | cut -d. -f3)
NEW="$MAJOR.$MINOR.$((PATCH + 1))"
echo "Version: $CURRENT$NEW"
# Write new version into module file
sed -i "s/version = '$CURRENT'/version = '$NEW'/" "$FILE"
# Commit, tag, push — triggers release pipeline on Gitea
git add "$FILE"
git commit -m "Bump version to $NEW"
git tag "v$NEW"
git push
git push origin "v$NEW"
+2 -2
View File
@@ -27,8 +27,8 @@ class Simple_withdrawalbutton extends Module
{
$this->name = 'simple_withdrawalbutton';
$this->tab = 'administration';
$this->version = '0.1.2';
$this->author = 'Arne Weiss';
$this->version = '0.1.0';
$this->author = 'Cyprès / Akiko Sake';
$this->need_instance = 0;
$this->bootstrap = true;
$this->ps_versions_compliancy = [