Merge branch 'main' into brennanb2025/sta-5523-graph-publish

This commit is contained in:
Brennan Benson
2026-08-28 10:59:03 -07:00
committed by GitHub
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="106" height="20" role="img" aria-label="downloads: 31m">
<title>downloads: 31m</title>
<svg xmlns="http://www.w3.org/2000/svg" width="106" height="20" role="img" aria-label="downloads: 32m">
<title>downloads: 32m</title>
<linearGradient id="s" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
@@ -15,7 +15,7 @@
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="11">
<text x="37" y="15" fill="#010101" fill-opacity=".3">downloads</text>
<text x="37" y="14">downloads</text>
<text x="90" y="15" fill="#010101" fill-opacity=".3">31m</text>
<text x="90" y="14">31m</text>
<text x="90" y="15" fill="#010101" fill-opacity=".3">32m</text>
<text x="90" y="14">32m</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 935 B

@@ -97,7 +97,7 @@ describe('ArtifactPublishButton', () => {
await user.click(screen.getByRole('button', { name: 'Share as artifact' }))
expect(mocks.publish).not.toHaveBeenCalled()
await user.click(await screen.findByRole('button', { name: 'Share public link' }))
await user.click(await screen.findByRole('button', { name: 'Generate link' }))
await waitFor(() => expect(mocks.publish).toHaveBeenCalledWith(createRequest))
expect(screen.getByText('https://example.com')).toBeInTheDocument()
expect(screen.getByRole('button', { name: 'Update shared content' })).toBeInTheDocument()
@@ -108,7 +108,7 @@ describe('ArtifactPublishButton', () => {
mocks.state.orcaProfileAuthStatus = { configured: true, state: 'local' }
render(<ArtifactPublishButton sourceKey="/repo/report.md" createRequest={vi.fn()} />)
expect(await screen.findByRole('button', { name: 'Share public link' })).toBeDisabled()
expect(await screen.findByRole('button', { name: 'Generate link' })).toBeDisabled()
await user.click(screen.getByRole('button', { name: 'Sign in' }))
expect(mocks.connect).toHaveBeenCalledOnce()
@@ -121,7 +121,7 @@ describe('ArtifactPublishButton', () => {
render(<ArtifactPublishButton sourceKey="/repo/report.md" createRequest={vi.fn()} />)
await user.click(screen.getByRole('button', { name: 'Share as artifact' }))
expect(await screen.findByRole('button', { name: 'Share public link' })).toBeDisabled()
expect(await screen.findByRole('button', { name: 'Generate link' })).toBeDisabled()
await user.click(screen.getByRole('button', { name: 'Open Artifacts settings' }))
expect(mocks.openSettingsTarget).toHaveBeenCalledWith({ pane: 'artifacts', repoId: null })
@@ -284,7 +284,7 @@ export function ArtifactPublishButton({
? translate('auto.components.artifacts.ArtifactPublishButton.sharing', 'Sharing…')
: translate(
'auto.components.artifacts.ArtifactPublishButton.sharePublicLink',
'Share public link'
'Generate link'
)}
</Button>
)}
+1 -1
View File
@@ -16307,7 +16307,7 @@
"publishingOffDescription": "Learn about public links and enable sharing in Settings.",
"openSettings": "Open Artifacts settings",
"sharing": "Sharing…",
"sharePublicLink": "Share public link",
"sharePublicLink": "Generate link",
"publishedDescription": "Anyone with this link can view the shared file.",
"checkingLink": "Checking for an existing link…",
"checkFailed": "Could not check for an existing link.",