Skip to content

Conversation

honzabubenik
Copy link
Contributor

No description provided.

david-vaclavek and others added 8 commits March 31, 2025 18:12
* 🎉 init: plugin sdk boilerplate

* wip: login page

* 🚧 wip(UI): login

* 💄 ui(nav): formatting

* ✨ feat(overview): page implementation

* 🚧 wip(CTS): render

* ✨ feat(plugin settings): refactor

* 🚧 wip(upload): server processes

* ✨ feat(upload): upload to Localazy

* 🐛 fix(model): return components models as well

* ♻️ refactor(codebase): lint and prettier

* ✨ feat(download): base scope

* ✨ feat(upload-breaking): refactor to Documents Service API

* 🐛 fix(upload): dynamic zones identifiers

* 🐛 fix(upload): document identifier

* 🚧 wip(download): testing example structure

* ✨ feat(relations): rework assigning for v5
♻️ refactor(services): retrieval shortcut

* ✨ feat(upload): optimize upload process

* ✨ feat(notifications): wss notifications

* 🐛 fix(navigation): prevent whole page reload

* 🐛 fix(navigation): redirect after login

* ♻️ refactor: remove extra code

* 💄 ui(tree): content-type switch positioning

* 💄 ui(Tree): margin

* 💄 ui: implement dark mode support

* 💄 ui: fix Localazy icon

* ♻️ refactor: improve typings

* ♻️ refactor: improve types
✨ feat(download): populate

* ✨ feat(populate): upload/download optimizations

* ♻️ refactor: remove dead code

* ✨ feat(triggers): re-implementation for v5

* ✨ feat(lifecycles): beforeDelete deprecation

* ♻️ refactor: clean up package dependencies

* ✨ feat(plugin): add CLI installation script and dependencies

* test: add tests for server utils (WIP)

* ♻️ refactor(utils): improve key extraction with Reflect.ownKeys()

* ♻️ refactor(utils): improve language display name handling

* Remove old Strapi plugin code

* 🔧 chore: update package metadata and plugin configuration

---------

Co-authored-by: david-vaclavek <david@localazy.com>
Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
* 🔧 chore: add GH actions

* 📝 docs: update README with comprehensive Strapi plugin installation and configuration guide

* ♻️ refactor: remove unnecessary module.exports

* 🔧 chore(ci): enhance QA workflow with build and verification steps

* 🔧 chore(ci): add verification job to release workflow

---------

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
🔧 chore(ci): simplify release workflow by removing verification job

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
🔧 chore(config): update package name import in config

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
* ✨ feat(middlewares): add webhook verification middleware and public transfer routes

- Introduced `verifyWebhook` middleware to validate incoming webhook requests.
- Created `localazy-public-transfer-routes` for handling public transfer downloads.
- Updated routes index to include the new public transfer routes.
- Enhanced `LocalazyPubAPIService` with type annotations for better clarity.

* ✨ refactor(iso-locales-utils): update locale conversion functions and add TypeScript tests

- Refactored `isoStrapiToLocalazy` and `isoLocalazyToStrapi` functions to return `null` instead of an empty string for invalid inputs.
- Removed outdated JavaScript test file and replaced it with a new TypeScript test suite.
- Enhanced test coverage for locale conversion scenarios, including edge cases and bidirectional conversions.

* 🔧 refactor: standardize LocalazyApiClientFactory import naming

- Updated import statements for `LocalazyApiClientFactory` to use consistent capitalization across multiple service files.
- Enhanced type safety in `getProject` method by returning `Promise<Project | null>` and added error handling for improved logging.

* 🔧 refactor: remove unused is-plugin-route utility and enhance identity fetching logic

- Deleted the `is-plugin-route` utility as it was no longer needed.
- Updated `FetchIdentity` component to include a loading state while fetching identity.
- Modified `App` component to prevent navigation during identity fetching and handle login redirection more effectively.
- Adjusted `Login` component to remove unused redirect logic.
- Enhanced `localazy-identity` state management to include fetching state.

* 🔧 refactor: enhance type safety and improve user handling in GlobalSettings

- Updated `createLocale` in `LoginButton` to ensure proper type casting for locales.
- Modified `getAdminPanelUsers` method in `StrapiUsersService` to return a typed promise of `AdminPanelUser[]`.
- Changed state management in `GlobalSettings` to use `AdminPanelUser[]` for better type safety.
- Introduced a helper function `getUserLabel` for consistent user label formatting in the UI.

* ✨ feat(plugin-settings): enhance tree component with item count and localization support

- Added a recursive function to count selected fields in the tree structure.
- Integrated translation support for displaying the count of selected fields in the tree item header.
- Updated localization strings to handle singular and plural forms for selected fields.
- Removed unnecessary console logs from the ContentTransferSetup component.

* 🐛 fix(media): do not filter out media

---------

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
- Removed the RequestInitiatorHelper from the bootstrap phase to streamline event handling.
- Updated the register phase to include new lifecycle hooks for create, update, and delete actions, enhancing integration with Localazy.
- Refactored the upload and deprecate hooks to accept a unified HookParams type, improving type safety and clarity.
- Adjusted the get-picked-flatten-keys utility to work with the new HookParams structure, ensuring consistent handling of document actions.
- Enhanced logging for lifecycle events to provide better insights during operations.

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
* Refactor PrerequisitiesInfo component and update localization strings

- Removed outdated internationalization plugin messages from PrerequisitiesInfo component.
- Updated localization file to reflect the removal of the internationalization plugin strings.
- Enhanced the install script to dynamically reference the correct webpack or vite config file based on the project type.

* Update package name in package.json from "strapi-plugin-v5" to "localazy" for improved clarity and branding.

---------

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
* Refactor token retrieval in Strapi API base

- Updated the `getToken` function to prioritize JWT token retrieval from cookies, falling back to localStorage and sessionStorage.
- Removed unnecessary checks and parsing logic for improved clarity and efficiency.

* Remove unused header from Strapi API base configuration

---------

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
honzabubenik and others added 3 commits March 31, 2025 18:39
Update README to clarify versioning for Strapi v5 and provide a link to Strapi v4 documentation

Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
@honzabubenik honzabubenik merged commit e960752 into main Mar 31, 2025
1 check passed
@honzabubenik honzabubenik deleted the main-candidate branch March 31, 2025 16:47
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