## Description Removing feature flag for app-level invites. Also, updating import statements to use `@appsmith/..` instead of `ce/..` Fixes [#22657](https://github.com/appsmithorg/appsmith/issues/22657) ## Type of change - Chore (housekeeping or task changes that don't impact user perception) ## How Has This Been Tested? - Manual - Jest - Cypress ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
31 lines
911 B
TypeScript
31 lines
911 B
TypeScript
import { entityDefinitions } from "@appsmith/utils/autocomplete/EntityDefinitions";
|
|
import type { AppsmithEntity } from "entities/DataTree/dataTreeFactory";
|
|
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
|
import { createNavData, createObjectNavData } from "./common";
|
|
|
|
export const getAppsmithNavData = (dataTree: AppsmithEntity) => {
|
|
const defs: any = entityDefinitions.APPSMITH(dataTree, {});
|
|
|
|
const result = createObjectNavData(
|
|
defs,
|
|
dataTree,
|
|
"appsmith",
|
|
{},
|
|
{
|
|
// restricting peek after appsmith.store because it can contain user data
|
|
// which if large will slow down nav data generation
|
|
"appsmith.store": true,
|
|
},
|
|
);
|
|
|
|
return createNavData({
|
|
id: "appsmith",
|
|
name: "appsmith",
|
|
type: ENTITY_TYPE.APPSMITH,
|
|
url: undefined,
|
|
peekable: true,
|
|
peekData: result.peekData,
|
|
children: result.entityNavigationData,
|
|
});
|
|
};
|