Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPI-1030 - Revamp administration #49

Draft
wants to merge 13 commits into
base: trunk
Choose a base branch
from
Draft

Conversation

cyl3x
Copy link
Contributor

@cyl3x cyl3x commented Dec 2, 2024

Goals:

  • Reduce complexity and components
  • Increase readability
  • Simplify by abstract common behaviour - even label & helpText snippets
  • No longer override SystemConfigController - but still register webhook and show errors about it
  • validate-api-credentials shouldn't throw errors, as 401 will trigger a retry-request

The idea:

  • Separate settings and payment method card
  • Create shared states for system-config (swagPayPalSettings store) and merchant-information (swagPayPalMerchantInformation store)
  • Onboarding is a component and reduced to a button
  • settings tabs are actual routes with own views
  • swag-paypal-settings-wrapper creates common fields like switch, single-select and text-field (but nothing specific for a setting)
  • SettingsSaver will save system settings and reregisteres the webhook + check if changed credentials are valid
  • SettingsController will use the SettingsSaver for an own system-config save route

To check:

  • Should a store be capable of loading and saving itself instead of using mixins?
  • Is swag-paypal-method a suitable name?

@cyl3x cyl3x added Feature Request Work in progress Proposal is work in progress labels Dec 2, 2024
@cyl3x cyl3x force-pushed the poc/new-settings-page branch 6 times, most recently from c6a4aff to 6a4aff1 Compare December 9, 2024 19:41
@cyl3x cyl3x changed the title POC - Settings tweaks PPI-1030 - Revamp administration Dec 9, 2024
@cyl3x cyl3x force-pushed the poc/new-settings-page branch from 6a4aff1 to 63e835d Compare December 9, 2024 20:11
@cyl3x cyl3x marked this pull request as draft December 9, 2024 20:12
@cyl3x cyl3x force-pushed the poc/new-settings-page branch 2 times, most recently from f4caf94 to 237c9f8 Compare December 10, 2024 20:08
@cyl3x cyl3x force-pushed the poc/new-settings-page branch 3 times, most recently from 5df511b to 40676c4 Compare December 13, 2024 17:03
@cyl3x cyl3x force-pushed the poc/new-settings-page branch from 40676c4 to 7f0c107 Compare December 20, 2024 18:10
@cyl3x cyl3x force-pushed the poc/new-settings-page branch from 7f0c107 to 3a968c2 Compare December 20, 2024 19:15
@cyl3x cyl3x force-pushed the poc/new-settings-page branch from 3a968c2 to 7f14ad9 Compare December 20, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Work in progress Proposal is work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants