Skip to content

User Interface Improvements#5

Merged
soderlind merged 2 commits intomainfrom
ui/ux
Mar 29, 2026
Merged

User Interface Improvements#5
soderlind merged 2 commits intomainfrom
ui/ux

Conversation

@soderlind
Copy link
Copy Markdown
Owner

This pull request updates the AI Router plugin to version 0.4.1, focusing on improving the user experience when adding or editing configurations. The main enhancement is that the configuration form now opens in a WordPress Modal dialog instead of being rendered inline. This change is reflected in both the plugin code and the documentation. There are also supporting updates to version numbers and test mocks.

User Interface Improvements:

  • The add/edit configuration form now opens in a WordPress Modal dialog for a more modern and user-friendly experience, replacing the previous inline form rendering. (src/js/connectors.js, build/connectors.js) [1] [2]
  • Added the Modal component to the UI imports and mocks to support the new modal dialog behavior. (src/js/connectors.js, build/connectors.js, tests/js/__mocks__/@wordpress/components.jsx, tests/js/setup.js) [1] [2] [3] [4]

Documentation and Versioning:

  • Updated the plugin version to 0.4.1 in ai-router.php, package.json, and documentation files. [1] [2] [3] [4]
  • Updated the changelog and readme to document the modal dialog enhancement and provide an upgrade notice. (CHANGELOG.md, readme.txt) [1] [2] [3]

Build Artifacts:

  • Updated the build asset version to reflect changes in the JavaScript bundle. (build/connectors.asset.php)

Testing:

  • Adjusted test mocks to support the new Modal component, ensuring tests remain accurate and up-to-date. (tests/js/__mocks__/@wordpress/components.jsx, tests/js/setup.js) [1] [2]

These changes collectively enhance the plugin's usability and maintain consistency across code, documentation, and tests.

Replace inline form panel with WordPress Modal component for
add and edit configuration flows. Modal provides overlay,
focus trap, title bar, and close button out of the box.
@soderlind soderlind merged commit 368b329 into main Mar 29, 2026
3 checks passed
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