PromucFlow_constructor/app/client/src/selectors/appSettingsPaneSelectors.tsx
Hetu Nandu e68cf54360
chore: Make App Sidebar Generally Available (#30923)
## Description

Makes App Sidebar Generally Available

- Removes any feature flag control for App Sidebar
- Removes any older functionalities to handle non App Sidebar IDE
versions like:
    - App Settings having an open or close state
    - Entity Explorer ability to be hidden
- Removes the announcement for App Sidebar


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

#### Type of change

- Chore (housekeeping or task changes that don't impact user perception)



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Refactor**
- Streamlined component logic by consolidating functions and removing
unnecessary dependencies.
- Simplified rendering and logic flow in various editor components for
improved user experience.
- **Style**
- Enhanced styling and layout in the app settings pane and editor
sidebar components.
- **Chores**
- Improved code maintainability by cleaning up unused imports,
variables, and functions.
- **Bug Fixes**
- Addressed UI inconsistencies by removing deprecated feature flags and
adjusting component behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-07 11:25:23 +05:30

23 lines
800 B
TypeScript

import { AppSettingsTabs } from "pages/Editor/AppSettingsPane/AppSettings";
import type { AppState } from "@appsmith/reducers";
import type { AppSettingsPaneReduxState } from "reducers/uiReducers/appSettingsPaneReducer";
import { createSelector } from "reselect";
export const getAppSettingsPane = (state: AppState) => state.ui.appSettingsPane;
export const getAppSettingsPaneContext = createSelector(
getAppSettingsPane,
(appSettingsPane: AppSettingsPaneReduxState) => appSettingsPane.context,
);
export const getIsAppSettingsPaneWithNavigationTabOpen = createSelector(
getAppSettingsPane,
(appSettingsPane: AppSettingsPaneReduxState) => {
if (appSettingsPane.context?.type) {
return AppSettingsTabs.Navigation === appSettingsPane.context.type;
}
return false;
},
);