Closed haideralibd closed 2 months ago
The recent updates to the wedocs
plugin in WordPress introduce several enhancements, including improved user capability management for document deletion, a modular structure for the Redux store, and extensive customization options for the search block. Changes include the addition of a new Capability
class to manage user roles, refined CSS for better aesthetics, and updates to various asset files to ensure compatibility and performance.
Files | Change Summary |
---|---|
assets/build/block.asset.php |
Removed 'react' dependency; updated version from a9f22e2f040c1e4bfcd8 to d05819f3aa7353dc2183 . |
assets/build/block.js |
Enhanced wedocs search block with new attributes for customization; improved rendering logic in edit and save functions. |
assets/build/frontend.asset.php |
Updated version from 9452b96fb7f339eb0d86 to a20f12fe6b47034f5721 . |
assets/build/frontend.css |
Added comments about CSS source and included source mapping for easier debugging. |
assets/build/frontend.js |
Introduced module system setup for the frontend and integrated CSS extraction via Webpack. |
assets/build/index.asset.php |
Updated version from 43de68933e801be37f9f to ab7a5beedef1700a147e . |
assets/build/index.css |
Added comments and integrated styles from an external carousel library, enhancing existing styles. |
assets/build/print.asset.php |
Updated version from dc9757ca31eec222b3ea to 9585c2e16bdeda6a19a1 . |
assets/build/print.js |
Introduced module system and properly marked exports for Webpack compatibility. |
assets/build/store.asset.php |
Updated version from 743cb5f33b454f204fb0 to bd6e30c242bf00a67efe . |
assets/build/store.js |
Restructured Redux store into modular files for actions, reducers, selectors, controls, and resolvers, enhancing maintainability. |
assets/build/style-block.css |
Comprehensive updates to styling for the wedocs search block, improving responsiveness and aesthetics. |
includes/Post_Types.php |
Added grant_delete_capability_to_specific_roles method to manage user capabilities for delete operations based on roles. |
includes/Capability.php |
Introduced new Capability class to manage document deletion permissions based on user roles, with a method to grant capabilities dynamically. |
wedocs.php |
Updated init_classes to include instantiation of the Capability class, enhancing user capability management within the application. |
sequenceDiagram
participant User
participant Editor
participant SearchBlock
participant ReduxStore
participant Capability
User->>Editor: Opens search block
Editor->>SearchBlock: Configure attributes (e.g., color, width)
SearchBlock-->>Editor: Update preview
User->>SearchBlock: Submits search
SearchBlock->>ReduxStore: Fetch results
ReduxStore-->>SearchBlock: Return results
SearchBlock-->>User: Display results
User->>Capability: Attempts to delete document
Capability->>User: Validate permissions
Capability-->>User: Grant or deny delete capabilities
🐰 In the meadow where rabbits hop,
Changes frolic, they never stop!
With search blocks that dance and play,
User roles now hold sway!
CSS shines, oh so bright,
In our burrow, all feels right! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The Move To Trash
button for an "Editor" works now but is getting some errors in the debug log. Can you give a feedback regarding this? @haideralibd vai
[09-Aug-2024 09:14:26 UTC] PHP Notice: Undefined offset: 0 in /Users/RubaiyatQA/Sites/wedocs/wp-content/plugins/wedocs-plugin/includes/Capability.php on line 39
@Rubaiyat-E-Mohammad bhai, i have fixed the issue. Please take a pull and test. Thanks.
NIcely fixed
…so to roles selected on wedocs pro global permission settings
Issue: https://github.com/weDevsOfficial/wedocs-pro/issues/90
Summary by CodeRabbit
Summary by CodeRabbit
New Features
wedocs
search block with customizable attributes, improving user control over its appearance and behavior.Bug Fixes
Style
wedocs
search block, improving responsiveness and aesthetics with new styles and variables.Documentation