Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/web/src/app/docs/api/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ENDPOINTS: Endpoint[] = [
{ method: 'GET', path: '/api/training/status', summary: 'Current status of training/embedding jobs.' },
{ method: 'POST', path: '/api/training/trigger', summary: 'Trigger a training/embedding job.' },
{ method: 'POST', path: '/api/video/pack', summary: 'Emit a hashed Video Pack from a YouTube URL.', body: '{ "url": "https://www.youtube.com/watch?v=..." }' },
{ method: 'POST', path: '/api/workflows/video-to-actions', summary: 'Start the durable Studio analysis workflow.', body: '{ "url": "https://www.youtube.com/watch?v=..." }' },
{ method: 'POST', path: '/api/workflows/video-to-actions', summary: 'Start the Studio analysis workflow.', body: '{ "url": "https://www.youtube.com/watch?v=..." }' },
];

const METHOD_COLOR: Record<Endpoint['method'], string> = {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function PricingPage() {
</p>
<h2 className="mt-4 font-heading text-3xl font-black">Confirm external work</h2>
<p className="mt-4 text-sm leading-7 text-white/45">
Adds the entitlement required when a reviewed plan dispatches backend agents or writes to the knowledge store.
Adds the entitlement required when a Studio plan dispatches backend agents or writes to the knowledge store.
</p>
<ul className="mt-7 flex-1 space-y-3">
{PRO_CAPABILITIES.map((capability) => (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/OneLoopStudio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
const started = await startVideoToActions(payload);
if (!started.ok || !started.runId) {
if (started.status === 401 || started.status === 403) {
window.location.href = `/login?callbackUrl=${encodeURIComponent(CANONICAL_STUDIO_PATH)}`;

Check warning on line 464 in apps/web/src/components/OneLoopStudio.tsx

View workflow job for this annotation

GitHub Actions / lint-frontend

Do not use `window.location.href` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination

Check warning on line 464 in apps/web/src/components/OneLoopStudio.tsx

View workflow job for this annotation

GitHub Actions / build

Do not use `window.location.href` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination
return;
}
setMessage(started.error || started.message || 'Could not start Act.');
Expand Down Expand Up @@ -576,7 +576,7 @@
transcript: usableProvidedTranscript(selected?.transcript),
});
if (started.status === 401 || started.status === 403) {
window.location.href = `/login?callbackUrl=${encodeURIComponent(CANONICAL_STUDIO_PATH)}`;

Check warning on line 579 in apps/web/src/components/OneLoopStudio.tsx

View workflow job for this annotation

GitHub Actions / lint-frontend

Do not use `window.location.href` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination

Check warning on line 579 in apps/web/src/components/OneLoopStudio.tsx

View workflow job for this annotation

GitHub Actions / build

Do not use `window.location.href` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination
return;
}
if (!started.ok || !started.runId) {
Expand Down Expand Up @@ -771,7 +771,7 @@

<main
data-testid="studio-main"
className="mx-auto grid w-full max-w-6xl flex-1 gap-4 px-4 py-6 pb-20 sm:px-6 lg:grid-cols-[minmax(0,1.15fr)_minmax(0,1fr)]"
className="mx-auto grid w-full max-w-6xl flex-1 gap-4 px-4 py-6 pb-28 sm:px-6 lg:grid-cols-[minmax(0,1.15fr)_minmax(0,1fr)]"
>
<section className="relative overflow-hidden rounded-xl border border-white/10 bg-black">
{videoId ? (
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/lib/__tests__/studio-pipeline-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,15 @@ describe('studio-pipeline-status', () => {
const footer = readFileSync(join(process.cwd(), 'src/components/Footer.tsx'), 'utf8');
const studio = readFileSync(join(process.cwd(), 'src/components/OneLoopStudio.tsx'), 'utf8');
const retired = readFileSync(join(process.cwd(), 'src/components/VideoWorkflowStudio.tsx'), 'utf8');
const pricing = readFileSync(join(process.cwd(), 'src/app/pricing/page.tsx'), 'utf8');
const apiDocs = readFileSync(join(process.cwd(), 'src/app/docs/api/page.tsx'), 'utf8');
expect(footer).toContain('STUDIO_PRODUCT_TAGLINE');
expect(footer.toLowerCase()).not.toContain('reviewed actions');
expect(footer.toLowerCase()).not.toContain('durable workflows');
expect(studio).toContain('data-testid="studio-main"');
expect(studio).toMatch(/pb-20|padding-bottom/);
expect(studio).toMatch(/pb-28|padding-bottom/);
expect(pricing).not.toMatch(/reviewed plan dispatches backend agents/);
expect(apiDocs).not.toMatch(/durable Studio analysis workflow/);
expect(retired).not.toMatch(/Starting durable/);
expect(retired).not.toMatch(/Could not start durable workflow/);
expect(retired).not.toMatch(/runs a durable video-to-transcript/);
Expand Down
Loading