Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test context app #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 45 additions & 10 deletions genstudio-create-context-addon/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion genstudio-create-context-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@adobe/aem-cf-editor-ui-ext-tpl": "^2.1.0",
"@adobe/aio-sdk": "^3.0.0",
"@adobe/exc-app": "^0.2.21",
"@adobe/genstudio-uix-sdk": "^1.0.5",
"@adobe/genstudio-uix-sdk": "^1.5.0",
"@adobe/react-spectrum": "^3.4.0",
"@adobe/uix-guest": "^0.8.0",
"@react-spectrum/list": "^3.0.0-rc.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,98 @@
/*
* Copyright 2025 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0

* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

import { Claim } from "@adobe/genstudio-uix-sdk";

export const extensionId: string = 'genstudio-create-additional-context-app';
export const extensionLabel: string = 'GenStudio UIX Create Additional Context App';
export const ICON_DATA_URI: string = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTExIiBoZWlnaHQ9IjExMSIgdmlld0JveD0iMCAwIDExMSAxMTEiIGZpbGw9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LjIxMTIgNjguOTkyMUw0NS42MDkyIDMyLjU3ODFIMzguNjY3MkwzNS4xOTYyIDY4LjczMDFMMzEuMzMyMiAzMi41NzgxSDI0LjMyNDJMMjkuNDMyMiA3OC40MjMxSDM5LjMyNDJMNDEuOTQ0MiA1My45OTQxTDQ0LjU2MTIgNzguNDIzMVpNNzkuMjcyMiA3OC40MjMxSDg2LjY3MjJMNzYuNjUyMiA1My4wMTIxTDg2LjY3MzIgMzIuNTc4MUg3OS40NzMyTDcwLjAzODIgNTIuNTUzMVYzMi41NzgxSDYyLjgzODJWNzguNDIzMUg3MC4wMzgyVjY0LjM0MjFMNzIuMjY1MiA2MC4xNTAxTDc5LjI3MjIgNzguNDIzMVoiIGZpbGw9IiMyMDIwMjAiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF85MV8zNDQ3NCI+CjxyZWN0IHdpZHRoPSIxMTEiIGhlaWdodD0iMTExIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=";

interface ClaimsLibrary {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claims lib should be defined in a diff file

id: string;
name: string;
claims: Claim[];
}

export const TEST_CLAIMS: ClaimsLibrary[] = [
{
id: "efficacy-claims",
name: "Efficacy Claims",
claims: [
{
id: "claim1",
description: "Clinically proven to reduce joint inflammation by up to 50%."
},
{
id: "claim2",
description: "Alleviates chronic pain associated with Chronexa within 2 weeks."
},
{
id: "claim3",
description: "Demonstrates a 60% improvement in joint mobility over 6 months."
}
]
},
{
id: "safety-claims",
name: "Safety and Tolerability Claims",
claims: [
{
id: "claim4",
description: "Demonstrated a favorable safety profile with over 95% adherence in trials."
},
{
id: "claim5",
description: "No significant interactions with common NSAIDs and corticosteroids."
},
{
id: "claim6",
description: "Approved for patients aged 16 to 80 years."
}
]
},
{
id: "dosage-claims",
name: "Dosage and Administration Claims",
claims: [
{
id: "claim7",
description: "Taken once daily for consistent symptom control."
},
{
id: "claim8",
description: "Available in 100 mg and 200 mg tablet forms."
},
{
id: "claim9",
description: "Can be taken with or without food for patient convenience."
}
]
},
{
id: "side-effects-claims",
name: "Side Effects Claims",
claims: [
{
id: "claim10",
description: "Most common side effect is mild fatigue, reported in fewer than 8% of patients."
},
{
id: "claim11",
description: "No significant impact on cardiovascular health."
},
{
id: "claim12",
description: "Mild headaches reported in less than 3% of patients, typically resolving within a week."
}
]
}
];
Loading