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

Refactor code base #1

Merged
merged 23 commits into from
Mar 13, 2024
Merged

Refactor code base #1

merged 23 commits into from
Mar 13, 2024

Conversation

JoelAlphonso
Copy link
Collaborator

No description provided.

JoelAlphonso and others added 23 commits December 13, 2023 17:29
Replace boilerplate/dummy content with bare minimum of context for the package.
Required:
- Charcoal v4.0
- PHP CodeSniffer v3.8
- PHP Coveralls v2.2
- PHPStan v1.10
- PHPUnit v9.5
- Psalm v5.17
- seld/jsonlint v1.10

Changed:
- Increased branch-alias to 1.x.
- Updated and renamed Composer scripts.
Add production requirements for specific packages of Charcoal: Config, Core, Object, Property, Translator.
Changed:
- Remove ACL permission to allow projects to apply their own permissions pattern.
- Add default priority to sort this item at a mid-point in a project's menu collection.
- Fix French localization.
Changed:
- Rename namespace from "consent" to "cookie-consent" to avoid conflicts.
- Rename button label identifiers and localizations to match with vanilla-cookieconsent's labeling.
From `ConsentServiceProvider ` to `CookieConsentServiceProvider` to match equivalent module and to distinguish from consent modal.
Structure of the modeling and presentation is based on locomotivemtl/wp-plugin-cookie-consent.

Changed:
- Moved model structures from `Structure\Consent` to `Structure`.
- Removed model `PreferenceSectionWithCategory`.
- Renamed model `PreferenceSection` to `Section` and have `ConsentModal` and `PreferencesModal` extend it.
- Replaced class `ConsentService` and transformers with `CookieConsentManager`.
- Renamed model `Consent` to `Disclosure` to distinguish from consent modal and to better encompass all editable options.
- Rename model `CookieCategory` to `Category`.
- Simplify TinyMCE options.
Changes:
- Add consent modal `footer` field
- Remove `active` and `label` field from `link` model
- Update the parsePlaceHolders `count` parameter to support a persistent container
- Update and add new translations
@JoelAlphonso JoelAlphonso merged commit 1735e1b into main Mar 13, 2024
0 of 2 checks passed
@mcaskill mcaskill deleted the develop branch March 13, 2024 18:49
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.

2 participants