feat: License change on AppBuilder#14391
Conversation
…14299) * feat: enable preview access for view-only users across environments Grant correct permissions for view-only users in app, version, data-source, data-query, and environment modules Redirect view-only users from production to development environment in frontend Align permission checks and environment logic with AppEnvironments.jsx pattern Fix 403 errors on preview, environment switch, and data query run APIs for view-only users * fix: previw links for production url * fix edit links for viewer * update submodule * chore: update version to 3.20.21-lts across all components --------- Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: gsmithun4 <3417097+gsmithun4@users.noreply.github.com>
* azure oidc changes * chore: update version to 3.20.22-lts across all components --------- Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: gsmithun4 <3417097+gsmithun4@users.noreply.github.com>
…le the selected cell exposed variable was not getting updated (#14286)
* Fix-import spec * Minor fixes * Minor fixes * Add data-cy * Update real events dependency
* Hotfix/Azure OIDC Group sync fixes (#14077) * azure oidc changes * chore: update version to 3.20.22-lts across all components --------- Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * 🚀 chore: update submodules to latest lts-3.16 after auto-merge (#14345) Co-authored-by: gsmithun4 <3417097+gsmithun4@users.noreply.github.com> * fix: Page permission tooltip placement issue --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com> Co-authored-by: gsmithun4 <3417097+gsmithun4@users.noreply.github.com>
…ement fixed cypress spec for WF's after state management
…4340) * Add cypress test cases for enterprise user groups and permissions * update constants * update user groups test cases * update spec * update groups cases * update lock.json * update custom group cases * update docker file * update first user onboarding and platform commands * add case for UI promote and release permission
…eprecated license check
|
Bito Automatic Review Skipped - Branch Excluded |
…remove deprecated license check" This reverts commit b4b5218.
|
Bito Automatic Review Skipped - Branch Excluded |
…e related components" This reverts commit cd2936b.
|
Bito Automatic Review Skipped - Branch Excluded |
|
Bito Automatic Review Skipped - Branch Excluded |
This pull request refactors how license and feature access information is accessed throughout the frontend codebase. The main change is to consistently use the new
useLicenseStorehook to retrievefeatureAccessand related license status, instead of accessing it directly from the main application store (useStore). This improves code modularity and centralizes license management. Additionally, some unused imports and variables are cleaned up.Fixes https://github.com/ToolJet/tj-ee/issues/4393
Fixes https://github.com/ToolJet/tj-ee/issues/4387
Frontend EE - https://github.com/ToolJet/ee-frontend/pull/275
Server EE - https://github.com/ToolJet/ee-server/pull/284
The most important changes are:
License and Feature Access Refactor:
licenseandfeatureAccessfromuseStorewith the newuseLicenseStorehook across multiple components, includingConfigHandle.jsx,RightTopHeaderButtons.jsx,PageMenu.jsx,PagesSidebarNavigation.jsx,PageSettings.jsx,MobileNavigationMenu.jsx, anduseAppData.js. This ensures consistent and modular access to license information. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]Component Logic Updates:
ModuleContainer) and ensuring banners are only shown in appropriate contexts. [1] [2]Code Cleanup:
Submodule Update:
frontend/eesubmodule to a new commit, likely to pick up related changes in the enterprise edition.These changes collectively improve maintainability, modularity, and consistency of license-related logic throughout the frontend codebase.