Skip to content

Commit

Permalink
simplify link
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Nov 12, 2024
1 parent bc73022 commit 95aa572
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/app/src/cli/services/dev/processes/dev-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {AppLinkedInterface} from '../../../models/app/app.js'
import {getExtensionUploadURL} from '../../deploy/upload.js'
import {AppEvent, AppEventWatcher} from '../app-events/app-event-watcher.js'
import {reloadApp} from '../app-events/app-event-watcher-handler.js'
import {buildAppURLForWeb} from '../../../utilities/app/app-url.js'
import {readFileSync, writeFile} from '@shopify/cli-kit/node/fs'
import {dirname, joinPath} from '@shopify/cli-kit/node/path'
import {AbortSignal} from '@shopify/cli-kit/node/abort'
Expand Down Expand Up @@ -131,10 +132,8 @@ async function handleDevSessionResult(
const scopeChanges = event?.extensionEvents.find((eve) => eve.extension.handle === 'app-access')
if (scopeChanges) {
await printWarning(`🔄 Action required`, processOptions.stdout)
const message = outputContent`${outputToken.yellow(`└ Scopes updated`)}. ${outputToken.link(
'Open app to accept scopes.',
'https://shopify.dev/docs/apps/build/app-scopes/scopes-overview',
)}`
const scopesURL = await buildAppURLForWeb(processOptions.storeFqdn, processOptions.apiKey)
const message = outputContent`└ Scopes updated. ${outputToken.link('Open app to accept scopes.', scopesURL)}`
await printWarning(message.value, processOptions.stdout)
}
} else if (result.status === 'created') {
Expand Down

0 comments on commit 95aa572

Please sign in to comment.