diff --git a/apps/webapp/app/components/helpContent/HelpContentText.tsx b/apps/webapp/app/components/helpContent/HelpContentText.tsx index 80b0ac81f..ba493a049 100644 --- a/apps/webapp/app/components/helpContent/HelpContentText.tsx +++ b/apps/webapp/app/components/helpContent/HelpContentText.tsx @@ -28,17 +28,32 @@ import { Header2 } from "../primitives/Headers"; import { CodeBlock } from "../code/CodeBlock"; import { EnvironmentLabel } from "../environments/EnvironmentLabel"; import { TextLink } from "../primitives/TextLink"; +import FormSegmentedControl from "../primitives/FormSegmentedControl"; + +// const options = [ +// { label: "Label 1", value: "developer" }, +// { label: "Label 2", value: "Users" }, +// ]; export function HowToSetupYourProject() { const devEnvironment = useDevEnvironment(); const appOrigin = useAppOrigin(); return ( <> - + {/* */} + + Add Trigger.dev to your Project with an example Job which logs 'Hello + World' to the console. + + + - - Run this CLI command in a terminal window from your Next.js project. - npm @@ -73,6 +88,10 @@ export function HowToSetupYourProject() { It will ask you for a "unique ID for your endpoint". You can use the default by hitting enter. + {" "} + + You’ll notice a new folder in your project called 'jobs' . We’ve added + a very simple example Job in there to help you get started. @@ -81,23 +100,13 @@ export function HowToSetupYourProject() { Ensure your Next.js app is running locally on port 3000. - + - - The CLI dev command allows the Trigger.dev - service to send messages to your Next.js site. This is required for - registering Jobs, triggering them and running Tasks. To achieve this - it creates a tunnel (using{" "} - ngrok) so Trigger.dev - can send messages to your machine. - - - You should leave the dev command running when - you're developing. - In a{" "} - new terminal window or tab{" "} + + separate terminal window or tab + {" "} run: @@ -128,6 +137,10 @@ export function HowToSetupYourProject() { /> + + You should leave the dev command running when + you're developing. + diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam._index/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam._index/route.tsx index 84ed76b2b..ad24b59b3 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam._index/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam._index/route.tsx @@ -141,14 +141,20 @@ export default function Page() { {jobs.length === 0 ? ( -
- - Your Jobs will appear here. - +
+
+ + Your Jobs will appear here. + +
+ + Browse example jobs: + {" "} +
) : ( <> @@ -177,7 +183,7 @@ export default function Page() { )}
- +