PromucFlow_constructor/app/client/src
Ayush Pahwa ed22f470f0
fix: ce ee ramps fix (#26078)
## Description
PR to add function to check if code is running on CE vs EE and rendering
ramps based on that.

#### PR fixes following issue(s)
Fixes #26077 

#### Type of change

- Bug fix (non-breaking change which fixes an issue)

## Testing

#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan

CE cases - 
- Logged in as a user behind feature flag - able to access Ramps on all
three modes [Canvas/Preview/Deploy]
- Shared app to another user and gave administrator access. Logged in as
that user, and can access Ramps in 2 modes - [Canvas/Preview]
- Logged in as a user with no access to ME. Ramps are not coming up -
old DS page and no switch env

EE cases - 
- Logged in as a user behind feature flag. Created app, able to switch
between env, Created DS, able to configure both Prod and Staging DS
- Switch Env is visible on Deploy mode also
- Switch env works on Canvas/Preview and Deploy mode
- Imported an app and checked for above
- Logged in as a user with no access to ME. No switch env dropdown - Old
DS page comes up

>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-08-07 18:30:18 +05:30
..
actions feat: debugger error navigation (#25505) 2023-08-01 09:32:41 +05:30
api chore: remove commented out lines (#25781) 2023-07-27 16:09:04 +05:30
assets chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00
ce fix: ce ee ramps fix (#26078) 2023-08-07 18:30:18 +05:30
components chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00
constants chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00
ee fix: Resetting the search keyword when the user un-mounts from the home page (#26060) 2023-08-07 10:28:21 +05:30
enterprise chore: Format files to match prettier rules and exclude third-party files (#21586) 2023-03-20 19:04:31 +05:30
entities feat: Remove async/sync differentiation from Appsmith (#25399) 2023-08-05 06:38:53 +01:00
globalStyles fix: Added an Indice.Layer to the Border and Indicator of the Guided … (#25585) 2023-07-24 15:43:55 +05:30
icons feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
mockComponentProps feat: adding slug names in urls (#10957) 2022-03-25 16:13:26 +05:30
mockResponses ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
mocks chore: integrate msw to browser to mock api requests (#15965) 2022-08-17 12:01:55 +05:30
navigation chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
pages fix: ce ee ramps fix (#26078) 2023-08-07 18:30:18 +05:30
plugins/Linting feat: Add linting error for assignment expression (#25140) 2023-07-24 12:23:45 +05:30
polyfills chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
reducers chore: Add button v2 under feature flag (#25106) 2023-07-26 18:10:44 +05:30
reflow fix: Add null check to fix sentry error in widget reflow (#24214) 2023-06-08 17:37:04 +05:30
resizable fix: widget borders does not reflect widget height (#23694) 2023-06-28 14:11:45 +05:30
sagas chore: Add SAVE_ACTION analytics event (#25997) 2023-08-07 15:01:45 +05:30
selectors fix: Cypress test for widget sidebar in Airgap (#25900) 2023-08-01 17:56:29 +05:30
templates
theme chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
transformers chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
usagePulse chore: Add analytics event to track telemetry is disabled & update properties for INVITE_USER event (#24042) 2023-06-06 02:57:40 +05:30
utils chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00
WidgetQueryGenerators chore: Miscellaneous one click binding updates (#24957) 2023-07-20 11:52:20 +05:30
widgets chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00
workers feat: Remove async/sync differentiation from Appsmith (#25399) 2023-08-05 06:38:53 +01:00
App.css
AppErrorBoundry.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
config.d.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
Globals.d.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
index.css fix: design-system-old fixes (#24421) 2023-06-20 14:34:13 +05:30
index.tsx perf: prioritize the main bundle over preloads (v2) (#24374) 2023-06-22 10:58:10 +05:30
LandingScreen.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
preload-route-chunks.ts fix: bump storybook version and move stories to storybook package (#25821) 2023-07-31 19:15:50 +03:00
react-app-env.d.ts
RouteBuilder.test.ts fix: Encode query params in URLs (#22594) 2023-05-03 09:00:27 +05:30
RouteBuilder.ts fix: Encode query params in URLs (#22594) 2023-05-03 09:00:27 +05:30
RouteChangeListener.tsx chore: Add new navigation scenarios for route change event (#21682) 2023-03-30 11:03:29 +05:30
RouteParamsMiddleware.ts feat: deprecate duplicate button (#23461) 2023-05-24 10:34:52 +05:30
serviceWorker.js fix: don’t cache icons by the service worker (#23558) 2023-05-24 12:50:26 +05:30
store.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
wdyr.ts chore: improve eslint rules (#26056) 2023-08-07 15:38:48 +03:00