@forge/cli-shared
8.17.1-next.4-experimental-13a01c28.18.0-next.5
out/ui/text.js~
out/ui/text.jsModified+7
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -15,8 +15,9 @@
const ctrlC = 'Press Ctrl+C to cancel.';
const encryptedValue = '****';
const greenTick = `${chalk_1.default.bold(chalk_1.default.green('✔'))}`;
const buildTerminalLink = (text) => (0, terminal_link_1.default)(chalk_1.default.bold(text), text, { fallback: () => chalk_1.default.underline.bold(text) });
+const buildTerminalLabeledLink = (label, link) => (0, terminal_link_1.default)(chalk_1.default.bold(label), link, { fallback: () => chalk_1.default.underline.bold(label) });
const go = (link) => buildTerminalLink(`https://go.atlassian.com/${link}`);
const gettingStartedDACLink = go('dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token');
const command = (...args) => chalk_1.default.bold(args.join(' '));
const forge = (...args) => command('forge', ...args);
@@ -323,8 +324,14 @@
fetchOrSelect: (errorMessage) => `Failed to fetch or select Developer Space: ${errorMessage}`,
create: (errorMessage) => `Failed to create Developer Space: ${errorMessage}`,
selectedNotFound: 'Selected Developer Space not found'
},
+ appEnforcementsWarnings: {
+ appNotAssignedToDeveloperSpaceWarning: `${chalk_1.default.bold('Warning:')} This app is not assigned to a Developer Space. ${buildTerminalLabeledLink('Assign it now', 'https://developer.atlassian.com/platform/forge/developer-space/developer-space-apps/')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`,
+ developerSpaceSetupIncomplete: (_command) => `${chalk_1.default.bold('Warning:')} Marketplace admin action required: Complete the ${buildTerminalLabeledLink('Developer Space setup', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#who-can-create-a-developer-space')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`,
+ developerSpaceSetupIncompleteLink: (developerSpaceId) => chalk_1.default.yellow(`Share this link with a Marketplace admin so they can finish setup:\n` +
+ ` - Developer Space: ${buildTerminalLink(`https://developer.atlassian.com/console/developer-space/${developerSpaceId}`)}`)
+ },
terms: {
agreement: 'Please review the following agreement before continuing:\n',
checkbox: '[ ] By continuing, I agree to the Atlassian Developer Terms and the Privacy Policy. If any Forge app added to this Developer Space exceeds the free usage allowance, I agree to be billed for any excess usage based on the then-current price.',
links: {