PromucFlow_constructor/app/client/src/constants/TemplatesConstants.tsx
Rahul Barwal 28d267bf37
fix: scroll issue and improve select component (#28695)
## Description
This pull request fixes a scroll issue and improves the select component
by adding a getPopupContainer function to ensure proper positioning. The
isMultiSelect prop is also included for better functionality.

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

#### Media
#### Type of change
- Bug fix (non-breaking change which fixes an issue)
## Testing
#### How Has This Been Tested?
- [x] Manual
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### 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
- [x] My code follows the style guidelines of this project
- [x] 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
- [ ] 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-11-14 17:58:27 +05:30

77 lines
2.5 KiB
TypeScript

import React from "react";
import {
STARTER_TEMPLATE_PAGE_LAYOUTS as STARTER_BUILDING_BLOCKS_LAYOUTS,
createMessage,
} from "@appsmith/constants/messages";
import { importSvg } from "@design-system/widgets-old/src/utils/icon-loadables";
export const COMMUNITY_PORTAL = {
BASE_URL: "https://community.appsmith.com",
};
const RecordEdit = importSvg(
async () =>
import("../assets/icons/templates/starter-template-record-edit.svg"),
);
const RecordDetails = importSvg(
async () =>
import("../assets/icons/templates/starter-template-record-details.svg"),
);
const Dashboard = importSvg(
async () =>
import("../assets/icons/templates/starter-template-dashboard.svg"),
);
export const STARTER_BUILDING_BLOCK_TEMPLATE_NAME = "Starter Building Block";
export const STARTER_BUILDING_BLOCKS = {
DATASOURCE_PROMPT_DELAY: 3000,
STARTER_BUILDING_BLOCKS_TEMPLATES: [
{
id: 2,
title: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.recordDetails.name,
),
description: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.recordDetails.description,
),
icon: <RecordDetails />,
screenshot:
"https://s3.us-east-2.amazonaws.com/template.appsmith.com/canvas-starter-page-layout-record-detail.png",
templateId: "6530e343fa63b553e4be0266",
templateName: STARTER_BUILDING_BLOCK_TEMPLATE_NAME,
templatePageName: "Record Details",
},
{
id: 1,
title: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.recordEdit.name,
),
description: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.recordEdit.description,
),
icon: <RecordEdit />,
screenshot:
"https://s3.us-east-2.amazonaws.com/template.appsmith.com/canvas-starter-page-layout-record-edit.png",
templateId: "6530e343fa63b553e4be0266",
templateName: STARTER_BUILDING_BLOCK_TEMPLATE_NAME,
templatePageName: "Record Edit",
},
{
id: 3,
title: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.dashboard.name,
),
description: createMessage(
STARTER_BUILDING_BLOCKS_LAYOUTS.layouts.dashboard.description,
),
icon: <Dashboard />,
screenshot:
"https://s3.us-east-2.amazonaws.com/template.appsmith.com/canvas-starter-page-layout-dashboard.png",
templateId: "6530e343fa63b553e4be0266",
templateName: STARTER_BUILDING_BLOCK_TEMPLATE_NAME,
templatePageName: "Dashboard",
},
],
};