Skip to content

Fix icon migration, cookie-policy i18n, and credential wizard step 4#2

Merged
Vitexus merged 3 commits into
mainfrom
fix/icons-i18n-credential-wizard
Jun 9, 2026
Merged

Fix icon migration, cookie-policy i18n, and credential wizard step 4#2
Vitexus merged 3 commits into
mainfrom
fix/icons-i18n-credential-wizard

Conversation

@Vitexus

@Vitexus Vitexus commented Jun 9, 2026

Copy link
Copy Markdown
Member

Three related fixes found while going through the GDPR/credential UI.

1. Migrate remaining FaIcon usages to BsIcon

FaIcon was removed from ease-bootstrap5-widgets (replaced by BsIcon), so several pages fatal-errored with Class Ease\TWB5\Widgets\FaIcon not found. Switched to BsIcon, mapped FontAwesome names to Bootstrap Icons, and converted fa-2x sizing to the Bootstrap fs-1 utility.
Files: DataExportWidget.php, admin-deletion-requests.php, consent-preferences.php, data-export-page.php.

2. Czech translations for the cookie policy page

Filled the 48 untranslated cookie-policy.php strings in the cs_CZ catalogue and recompiled the .mo. Verified live with ?locale=cs_CZ — no English left.

3. Credential wizard step 4

  • Set version = 0 when creating a new credential type (NOT NULL column with no default → PDOException).
  • Carry hint/defval when copying prototype fields to the new type.
  • Create the credential via Credential::takeData()/dbsync() (the proven path) instead of the non-existent CredentialConfigFields write API.

Verified by driving the whole wizard end-to-end (incl. a prototype with fields) — credential is created and the page redirects correctly.

Note: step 4 also depends on the Bootstrap 5 FormGroup widget fix (VitexSoftware/php-ease-twbootstrap5#38). The null-hint TypeError it also surfaced is already fixed on multiflexi-core main.

🤖 Generated with Claude Code

Vitexus and others added 3 commits June 9, 2026 09:12
FaIcon was removed from ease-bootstrap5-widgets in its Bootstrap 5
upgrade (replaced by BsIcon), so these pages fatal-errored with
"Class Ease\TWB5\Widgets\FaIcon not found". Switch to BsIcon and map
the FontAwesome icon names to Bootstrap Icons equivalents; convert
fa-2x sizing to the Bootstrap fs-1 utility.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fill in the 48 untranslated cookie-policy.php strings in the cs_CZ
catalogue and recompile the .mo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Set version=0 when creating a new credential type (NOT NULL column
  with no default caused a PDOException).
- Carry hint and defval when copying prototype fields to the new type.
- Create the credential via Credential::takeData()/dbsync() (the proven
  path) instead of the non-existent CredentialConfigFields write API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Vitexus Vitexus merged commit 2e5b8ad into main Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant