Datasets:
row_id string | task string | component string | split string | system string | user string | assistant string | files_in_input list | files_in_output list | license string | source_url string | source_url_input string | pega_version string | char_count int64 | token_count int64 | validation_ok bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6d2cded4c517f29 | full_component_bundle | Pega_Extensions_MarkdownInput | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate every companion file for `Pega_Extensions_MarkdownInput` (everything except `index.tsx`) based on the spec below.
<file path="Docs.mdx">
import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks';
import * as DemoStories from './demo.stories';
<Meta of={DemoStories} />
# Overview
The Mar... | <file path="config.json">
{
"name": "Pega_Extensions_MarkdownInput",
"label": "Markdown editor",
"description": "Markdown editor",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensions",
"allowedApplications": [],
"componentKey": "Pega_Extensions_MarkdownInput",
"type": "Field",
"subtyp... | [
"src/components/Pega_Extensions_MarkdownInput/Docs.mdx"
] | [
"src/components/Pega_Extensions_MarkdownInput/config.json",
"src/components/Pega_Extensions_MarkdownInput/demo.test.tsx",
"src/components/Pega_Extensions_MarkdownInput/demo.stories.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_MarkdownInput/Docs.mdx | 25.1 | 8,631 | 2,157 | true | |
fc22fa720ca1ecce | implementation_to_test | Pega_Extensions_BannerInput | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate a Jest + React Testing Library test (`demo.test.tsx`) for `Pega_Extensions_BannerInput`. Mock `getPConnect` as needed.
<file path="index.tsx">
import { withConfiguration, Icon, HTML, registerIcon } from '@pega/cosmos-react-core';
import { useTheme } from 'styled-components';
import * as warnSolidIcon from '@p... | import React from 'react';
import { render, screen } from '@testing-library/react';
import { composeStories } from '@storybook/react';
import * as DemoStories from './demo.stories';
const { Default } = composeStories(DemoStories);
test('renders a Banner Input component with default args', async () => {
render(<Defa... | [
"src/components/Pega_Extensions_BannerInput/index.tsx"
] | [
"src/components/Pega_Extensions_BannerInput/demo.test.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_BannerInput/demo.test.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_BannerInput/index.tsx | 25.1 | 4,606 | 1,151 | true |
c3918097286c7bfc | implementation_to_config | Pega_Extensions_DynamicHierarchicalForm | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `config.json` (Pega Designer metadata) for `Pega_Extensions_DynamicHierarchicalForm` based on this implementation.
<file path="index.tsx">
import { useState, useEffect, useRef, useMemo } from 'react';
import {
withConfiguration,
Button,
EmptyState,
FieldGroup,
Flex,
Progress,
TabPanel,
Tab... | {
"name": "Pega_Extensions_DynamicHierarchicalForm",
"label": "Dynamic Hierarchical Form",
"description": "Dynamic Hierarchical Form",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensions",
"allowedApplications": [],
"componentKey": "Pega_Extensions_DynamicHierarchicalForm",
"type": "Tem... | [
"src/components/Pega_Extensions_DynamicHierarchicalForm/index.tsx"
] | [
"src/components/Pega_Extensions_DynamicHierarchicalForm/config.json"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DynamicHierarchicalForm/config.json | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DynamicHierarchicalForm/index.tsx | 25.1 | 14,776 | 3,694 | true |
b9b98785322d605d | docs_to_implementation | Pega_Extensions_ImageCarousel | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `index.tsx` for `Pega_Extensions_ImageCarousel` matching the spec below.
<file path="Docs.mdx">
import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks';
import * as DemoStories from './demo.stories';
<Meta of={DemoStories} />
# Overview
The Image Carousel Component is a dynamic an... | import { withConfiguration } from '@pega/cosmos-react-core';
import { useState, useEffect, useCallback } from 'react';
import { SliderContainer, SliderWrapper } from './styles';
import SlideItem from './SlideItem';
import SliderControls from './Controls';
import DotsNavigation from './DotsNavigation';
import '../shared... | [
"src/components/Pega_Extensions_ImageCarousel/Docs.mdx",
"src/components/Pega_Extensions_ImageCarousel/config.json"
] | [
"src/components/Pega_Extensions_ImageCarousel/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ImageCarousel/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ImageCarousel/Docs.mdx | 25.1 | 16,053 | 4,013 | true |
ec55bfb015f941be | config_to_implementation | Pega_Extensions_ExpandableTable | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `index.tsx` for `Pega_Extensions_ExpandableTable` that satisfies this Pega Designer config.
<file path="config.json">
{
"name": "Pega_Extensions_ExpandableTable",
"label": "Expandable Table",
"description": "Read-only table with expandable rows for viewing embedded data object details",
"organizat... | import { Fragment, useState, useEffect, useCallback } from 'react';
import {
withConfiguration,
Progress,
Text,
createUID,
Button,
Icon,
registerIcon,
CardContent,
Card,
} from '@pega/cosmos-react-core';
import StyledPegaExtensionsExpandableTableWrapper from './styles';
import * as caretDownIcon from ... | [
"src/components/Pega_Extensions_ExpandableTable/config.json"
] | [
"src/components/Pega_Extensions_ExpandableTable/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ExpandableTable/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ExpandableTable/config.json | 25.1 | 11,572 | 2,893 | true |
f8227e8bdee4e018 | implementation_to_config | Pega_Extensions_ImageMagnify | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `config.json` (Pega Designer metadata) for `Pega_Extensions_ImageMagnify` based on this implementation.
<file path="index.tsx">
import { withConfiguration } from '@pega/cosmos-react-core';
import {
MOUSE_ACTIVATION,
SideBySideMagnifier,
MagnifierContainer,
MagnifierPreview,
MagnifierZoom,
} from... | {
"name": "Pega_Extensions_ImageMagnify",
"label": "Image Magnify",
"description": "Image Magnify",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensions",
"allowedApplications": [],
"componentKey": "Pega_Extensions_ImageMagnify",
"type": "Field",
"subtype": "Text-URL",
"icon": "image... | [
"src/components/Pega_Extensions_ImageMagnify/index.tsx"
] | [
"src/components/Pega_Extensions_ImageMagnify/config.json"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ImageMagnify/config.json | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_ImageMagnify/index.tsx | 25.1 | 15,799 | 3,949 | true |
4f83d695387cbb5a | config_to_implementation | Pega_Extensions_SignatureCapture | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `index.tsx` for `Pega_Extensions_SignatureCapture` that satisfies this Pega Designer config.
<file path="config.json">
{
"name": "Pega_Extensions_SignatureCapture",
"label": "Signature Capture",
"description": "Signature Capture",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensi... | import { useEffect, useState, useRef } from 'react';
import { withConfiguration, Image, Button, Flex, FormField, FormControl } from '@pega/cosmos-react-core';
import SignaturePad from 'signature_pad';
import Signature from './Signature';
import { StyledButtonsWrapper, StyledSignatureContent, StyledSignatureReadOnlyCont... | [
"src/components/Pega_Extensions_SignatureCapture/config.json"
] | [
"src/components/Pega_Extensions_SignatureCapture/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_SignatureCapture/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_SignatureCapture/config.json | 25.1 | 9,173 | 2,293 | true |
9e3c76d6fb7c7f6c | implementation_to_test | Pega_Extensions_QRCode | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate a Jest + React Testing Library test (`demo.test.tsx`) for `Pega_Extensions_QRCode`. Mock `getPConnect` as needed.
<file path="index.tsx">
import { useEffect, useState, type SyntheticEvent } from 'react';
import { withConfiguration, Flex, FormControl, FormField, QRCode, Text } from '@pega/cosmos-react-core';
i... | import React from 'react';
import { render, screen } from '@testing-library/react';
import { composeStories } from '@storybook/react';
import * as DemoStories from './demo.stories';
const { Default } = composeStories(DemoStories);
test('renders QR Code with default args', async () => {
const { container } = render(... | [
"src/components/Pega_Extensions_QRCode/index.tsx"
] | [
"src/components/Pega_Extensions_QRCode/demo.test.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_QRCode/demo.test.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_QRCode/index.tsx | 25.1 | 5,452 | 1,363 | true |
425848ac3f480633 | config_to_implementation | Pega_Extensions_Scheduler | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `index.tsx` for `Pega_Extensions_Scheduler` that satisfies this Pega Designer config.
<file path="config.json">
{
"name": "Pega_Extensions_Scheduler",
"label": "Scheduler",
"description": "Scheduler",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensions",
"allowedApplications":... | import { useEffect, useState, useRef, type MouseEvent } from 'react';
import { withConfiguration, FormControl, Flex, FormField, Link, useTheme, ErrorState } from '@pega/cosmos-react-core';
import { type EventContentArg } from '@fullcalendar/core';
import FullCalendar from '@fullcalendar/react';
import timeGridPlugin fr... | [
"src/components/Pega_Extensions_Scheduler/config.json"
] | [
"src/components/Pega_Extensions_Scheduler/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_Scheduler/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_Scheduler/config.json | 25.1 | 10,371 | 2,592 | true |
f007a8343cabc89b | full_component_bundle | Pega_Extensions_OrgBuilder | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate every companion file for `Pega_Extensions_OrgBuilder` (everything except `index.tsx`) based on the spec below.
<file path="Docs.mdx">
import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks';
import * as DemoStories from './demo.stories';
<Meta of={DemoStories} />
# Overview
<Primary /... | <file path="config.json">
{
"name": "Pega_Extensions_OrgBuilder",
"label": "Org Builder",
"description": "Org Builder",
"organization": "Pega",
"version": "4.0.4",
"library": "Extensions",
"allowedApplications": [],
"componentKey": "Pega_Extensions_OrgBuilder",
"type": "Widget",
"subtype": [
"PA... | [
"src/components/Pega_Extensions_OrgBuilder/Docs.mdx"
] | [
"src/components/Pega_Extensions_OrgBuilder/config.json",
"src/components/Pega_Extensions_OrgBuilder/demo.test.tsx",
"src/components/Pega_Extensions_OrgBuilder/demo.stories.tsx",
"src/components/Pega_Extensions_OrgBuilder/styles.ts",
"src/components/Pega_Extensions_OrgBuilder/localizations.json"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_OrgBuilder/Docs.mdx | 25.1 | 16,838 | 4,209 | true | |
35c9f46036131858 | docs_to_implementation | Pega_Extensions_NetworkDiagram | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate the `index.tsx` for `Pega_Extensions_NetworkDiagram` matching the spec below.
<file path="Docs.mdx">
import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks';
import * as DemoStories from './demo.stories';
<Meta of={DemoStories} />
# Overview
The Network Diagram component allows to rep... | import { useEffect, useMemo, useState } from 'react';
import {
withConfiguration,
registerIcon,
Icon,
Text,
Card,
CardHeader,
CardContent,
Button,
useTheme,
} from '@pega/cosmos-react-core';
import ReactFlow, {
useNodesState,
useEdgesState,
useReactFlow,
ReactFlowProvider,
MiniMap,
Control... | [
"src/components/Pega_Extensions_NetworkDiagram/Docs.mdx",
"src/components/Pega_Extensions_NetworkDiagram/config.json"
] | [
"src/components/Pega_Extensions_NetworkDiagram/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_NetworkDiagram/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_NetworkDiagram/Docs.mdx | 25.1 | 13,535 | 3,383 | true |
2ff6a4d90d945969 | implementation_to_docs | Pega_Extensions_DisplayAttachments | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate `Docs.mdx` (Storybook MDX documentation) for `Pega_Extensions_DisplayAttachments` based on this implementation.
<file path="index.tsx">
import { useState, useRef, useCallback, useEffect } from 'react';
import {
withConfiguration,
registerIcon,
Button,
Icon,
CardHeader,
CardContent,
Modal,
Flex... | import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks';
import * as DemoStories from './demo.stories';
<Meta of={DemoStories} />
# Overview
The Display Attachments allows to render the attachments in a read-only mode. This widget is not a replacement of the attachment widget since it does not ... | [
"src/components/Pega_Extensions_DisplayAttachments/index.tsx"
] | [
"src/components/Pega_Extensions_DisplayAttachments/Docs.mdx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DisplayAttachments/Docs.mdx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DisplayAttachments/index.tsx | 25.1 | 15,322 | 3,830 | true |
c39a39ce4001c85a | implementation_to_story | Pega_Extensions_DynamicHierarchicalForm | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Generate a Storybook CSF3 story (`demo.stories.tsx`) for `Pega_Extensions_DynamicHierarchicalForm`. Mock `getPConnect` in `argTypes`.
<file path="index.tsx">
import { useState, useEffect, useRef, useMemo } from 'react';
import {
withConfiguration,
Button,
EmptyState,
FieldGroup,
Flex,
Progress,
TabPanel,... | import type { StoryObj } from '@storybook/react-webpack5';
import { PegaExtensionsDynamicHierarchicalForm, type DynamicHierarchicalFormProps } from './index';
import { Checkbox, CheckboxGroup, Grid, Input, RadioButton, RadioButtonGroup, TextArea } from '@pega/cosmos-react-core';
type configInfo = {
values?: Array<an... | [
"src/components/Pega_Extensions_DynamicHierarchicalForm/index.tsx"
] | [
"src/components/Pega_Extensions_DynamicHierarchicalForm/demo.stories.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DynamicHierarchicalForm/demo.stories.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_DynamicHierarchicalForm/index.tsx | 25.1 | 21,298 | 5,324 | true |
d4e4d0fec75e940b | requirement_to_implementation | Pega_Extensions_FieldGroupAsRow | train | You are an expert Pega Constellation DX component author. You produce ready-to-publish custom UI components for the Pega Platform that follow the project's strict folder, naming, and coding conventions.
A Constellation DX component lives under `src/components/Pega_Extensions_<Name>/` and contains these files:
- `inde... | Implement `Pega_Extensions_FieldGroupAsRow` in Pega Constellation DX style.
Implement the Pega Constellation DX component `Pega_Extensions_FieldGroupAsRow`.
Purpose: Field Group As Row
Exposed props:
- `heading` (TEXT) — Label
- `A` (CONTENTPICKER) — Region A
Constraints:
- Folder name and componentKey: `Pega_Extens... | import { withConfiguration, FieldGroup, Flex, useTheme } from '@pega/cosmos-react-core';
import StyledPegaExtensionsFieldGroupAsRowWrapper from './styles';
import '../shared/create-nonce';
type FieldGroupAsRowProps = {
heading: string;
children: any;
};
export const PegaExtensionsFieldGroupAsRow = (props: FieldGr... | [
"src/components/Pega_Extensions_FieldGroupAsRow/Docs.mdx",
"src/components/Pega_Extensions_FieldGroupAsRow/config.json"
] | [
"src/components/Pega_Extensions_FieldGroupAsRow/index.tsx"
] | apache-2.0 | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_FieldGroupAsRow/index.tsx | https://github.com/pegasystems/constellation-ui-gallery/blob/ec4e69f6de1092bf0f276f0659ba90a7ed60675b/src/components/Pega_Extensions_FieldGroupAsRow/Docs.mdx | 25.1 | 3,612 | 903 | true |
YAML Metadata Warning:The task_categories "code-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
Pega Constellation DX Components — Training Dataset
This dataset teaches a code model how to write Pega Constellation DX components — the custom React/TypeScript components that extend the Pega Platform UI.
It comes from the open-source constellation-ui-gallery repo, which Pega itself maintains as a reference for DX component authors. We pinned a specific commit so the dataset is reproducible.
What is in it
55 Pega DX components, each broken into 9 different training tasks. Every component has the same folder layout (Pega_Extensions_<Name>/ with index.tsx, config.json, Docs.mdx, demo.stories.tsx, demo.test.tsx). The dataset shows the model all the pieces — code, config, docs, tests, stories — and how they fit together.
For the one big component (CPQTree — 23 files, real-world complexity), the dataset also captures the sub-components and hooks separately so the model sees how a non-trivial Pega DX component is structured.
License
Apache-2.0 — same as the source repo. You can use it for training, including commercial use. Just keep the copyright notice.
Source
- Repo: https://github.com/pegasystems/constellation-ui-gallery
- Pinned commit:
ec4e69f6de1092bf0f276f0659ba90a7ed60675b - Per-file URL pattern:
https://github.com/pegasystems/constellation-ui-gallery/blob/<sha>/<path>
Citation
@software{pega_constellation_ui_gallery,
title = {Constellation UI Gallery},
author = {Pegasystems Inc.},
year = {2024-2026},
url = {https://github.com/pegasystems/constellation-ui-gallery},
note = {Apache-2.0; pinned commit ec4e69f6de1092bf0f276f0659ba90a7ed60675b}
}
Files in this dataset
pega-constellation-dx-sft/
├── README.md ← you are here
├── system_prompt.txt ← the constant instruction given to the model before every example
├── train.jsonl ← 389 rows for training
├── validation.jsonl ← 24 rows for early stopping
├── test.jsonl ← 24 rows for final evaluation
├── to_parquet.py ← script that generated the parquet files
└── parquet/
├── train-00000-of-00001.parquet
├── validation-00000-of-00001.parquet
└── test-00000-of-00001.parquet
Splits — what is in each one
| split | components | rows | purpose |
|---|---|---|---|
| train | 49 components | 389 | the data the model learns from |
| validation | ActionableButton, Banner, BarCode | 24 | held out — use during training to detect overfitting |
| test | CPQTree, ChatGenAI, Map | 24 | held out — use only at the end to measure how well the model generalizes |
Components never appear in more than one split. The test set is the most important — if your model is good on the test set, it generalizes to Pega components it has never seen.
What each row looks like
Every row is a chat conversation with two messages — a user prompt and an assistant response. The model is trained to produce the assistant response when given the user prompt.
{
"task": "docs_to_implementation",
"component": "Pega_Extensions_Banner",
"system": "<the Pega DX authoring rules — see system_prompt.txt>",
"messages": [
{"role": "user", "content": "Generate the index.tsx for Pega_Extensions_Banner..."},
{"role": "assistant", "content": "import { withConfiguration, Banner } from ..."}
],
"files_in_input": ["src/components/.../Docs.mdx", "src/components/.../config.json"],
"files_in_output": ["src/components/.../index.tsx"],
"source_url": "https://github.com/.../index.tsx",
"pega_version": "25.1",
"split": "train",
"token_count": 3086,
"row_id": "abc123..."
}
The 9 training tasks
Each component produces several rows — one per task. The model sees the same component from multiple angles.
| task | what the model gets as input | what it has to produce |
|---|---|---|
docs_to_implementation |
the Docs.mdx + config.json | the index.tsx |
config_to_implementation |
the config.json | the index.tsx |
implementation_to_config |
the index.tsx | the config.json |
implementation_to_docs |
the index.tsx | the Docs.mdx |
implementation_to_test |
the index.tsx | the demo.test.tsx |
implementation_to_story |
the index.tsx | the demo.stories.tsx |
requirement_to_implementation |
a plain-English description of what the component should do | the index.tsx |
full_component_bundle |
the Docs.mdx | config + test + story + styles + localizations + utils (everything except index.tsx) |
multi_file_implementation |
the Docs.mdx | sub-components and hooks (CPQTree only) |
Counts:
- 55 rows each for the 6 single-file code tasks
- 54 rows for
implementation_to_test(Map has no test file) - 52 rows for
full_component_bundle(3 components exceed size limit) - 1 row for
multi_file_implementation(only CPQTree has sub-folders)
How to load it
Option 1 — JSONL
from datasets import load_dataset
ds = load_dataset(
"json",
data_files={
"train": "train.jsonl",
"validation": "validation.jsonl",
"test": "test.jsonl",
},
)
Option 2 — Parquet (smaller, faster, recommended for training)
from datasets import load_dataset
ds = load_dataset(
"parquet",
data_files={
"train": "parquet/train-00000-of-00001.parquet",
"validation": "parquet/validation-00000-of-00001.parquet",
"test": "parquet/test-00000-of-00001.parquet",
},
)
In the parquet files, the messages array is split into two separate columns: user and assistant. Training scripts can grab them directly without parsing JSON.
What was filtered out
The source repo has some noise that would have hurt training — these were stripped:
buildDatefield in everyconfig.json— this is a snapshot timestamp that changes every build. The model would have memorized a stale date.PegaAboutLabelandPegaAboutDataproperties — these are auto-injected by the Pega build pipeline into every config.json. They are not real component properties. Without filtering, the model would have learned that every Pega component has an "About" field with the build version as its value.- Properties marked
format: LABEL— internal markers, not user-facing inputs. - CPQTree's
sample1.jsonandsample2.json— 372 KB of mock data, not code. - CPQTree's
DESIGN.md— internal design notes. - Storybook static images, package-lock.json, node_modules — not source code.
Other quality rules:
- Files larger than 25,000 characters were skipped for tasks needing them as input/output.
- Total input + output larger than 32,000 characters was rejected.
- Assistant outputs shorter than 200 characters were dropped.
implementation_to_configoutputs were validated as parseable JSON.- Code outputs were sanity-checked — they must end with a closing brace, semicolon, comment terminator, or JSX closing tag.
How to use it
For SFT or LoRA fine-tuning of code models — Qwen2.5-Coder, DeepSeek-Coder, Qwen3, Qwen3.5 — for Pega Constellation DX code generation.
The system prompt (in system_prompt.txt) is the same on every row. It encodes the project's conventions — folder layout, imports, the withConfiguration wrapper, the getPConnect typing, the MDX doc shape. Include it as the system message when training.
What this dataset will and will not do
Will do well — produce a Pega DX component that follows the conventions of the source repo. Folder naming, file structure, the withConfiguration wrapper, getPConnect typing, mock-object patterns for tests and stories, MDX doc structure. For 80% of "build me a Pega component like X" requests, this works.
Won't do well — there are gaps you should know about:
- No real customer requests in training. The "requirement" examples are generated from the config.json properties — they're structured, not messy. A user asking "build a banner that shows when a case is overdue and lets me dismiss it" is not in the dataset.
- No bad-code examples. The dataset shows the right way to write components but never the wrong way. The model won't learn what not to do.
- No error handling. Most components in the source are happy-path. The model won't learn defensive patterns for when
getPConnect()returns null or the API fails. - Limited variety. 55 components, all by the same Pega team, in one style. Other Pega teams might write differently.
- No accessibility patterns. ARIA, keyboard navigation, screen-reader support are not covered.
- Pega-specific only. Symbols like
withConfiguration,getPConnect,PCoreshow up everywhere. Mixed with general code data this is fine — used alone, the model becomes a Pega DX specialist only.
Treat this as the foundation. For best results, after the initial training, add examples covering the gaps above (real user phrasings, error paths, bad-vs-good pairs).
Build
The dataset is reproducible. To regenerate it from scratch:
git clone https://github.com/pegasystems/constellation-ui-gallery
cd constellation-ui-gallery
git checkout ec4e69f6de1092bf0f276f0659ba90a7ed60675b
# then run the build_dataset.py script against this checkout
The build script lives in the source repository that produced this dataset. Search for it at the GitHub repo that hosts the build pipeline.
- Downloads last month
- 49