Commit Graph

4875 Commits

Author SHA1 Message Date
Matt Aitken 29edcd3df9 Rename and delete projects (#880)
🚀 Publish Trigger.dev Docker / units (push) Failing after 0s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 0s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 4s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
* Side menu: selector title changed to project. Changed section headers and made it Slack + Discord

* Added project settings page. Renaming is working

* Added project.deletedAt column

* Deleting projects WIP

* Allow clearing the project from the session

* Don’t load projects that are deleted

* Improved the project selection logic

* Clear the session project id when deleting a project

* Deleting the last project in an org now works. The new project page doesn’t have the sidebar anymore.

* Removed false code comment

* Added the JobRun index back in, using Prisma. Otherwise it tries to remove it on each migration

* Only return environments where the project isn’t deleted. This will block API calls

* Do the project deletedAt check in code, not SQL

* Made it clearer what the code does with a comment and applied the same logic to the public api key
v.docker.2.2.34
2024-02-05 13:14:33 +00:00
Matt Aitken a9ff32418e Fix for when there are no jobs…
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 0s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 4s
🚀 Publish Trigger.dev Docker / units (push) Failing after 4s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
v.docker.2.2.33
2024-01-30 17:35:04 +00:00
Matt Aitken 7358fcb891 Latest lockfile @trigger.dev/airtable@2.3.17 @trigger.dev/astro@2.3.17 @trigger.dev/cli@2.3.17 @trigger.dev/core-backend@2.3.17 @trigger.dev/core@2.3.17 @trigger.dev/eslint-plugin@2.3.17 @trigger.dev/express@2.3.17 @trigger.dev/github@2.3.17 @trigger.dev/hono@2.3.17 @trigger.dev/linear@2.3.17 @trigger.dev/nestjs@2.3.17 @trigger.dev/nextjs@2.3.17 @trigger.dev/openai@2.3.17 @trigger.dev/plain@2.3.17 @trigger.dev/remix@2.3.17 @trigger.dev/replicate@2.3.17 @trigger.dev/sdk@2.3.17 @trigger.dev/slack@2.3.17 @trigger.dev/stripe@2.3.17 @trigger.dev/supabase@2.3.17 @trigger.dev/testing@2.3.17 @trigger.dev/typeform@2.3.17 @trigger.dev/yalt@2.3.17 trigger.dev@1.0.6 @trigger.dev/integration-kit@2.3.17 @trigger.dev/shopify@2.3.17 @trigger.dev/resend@2.3.17 @trigger.dev/react@2.3.17 @trigger.dev/sendgrid@2.3.17 @trigger.dev/sveltekit@2.3.17 2024-01-30 17:07:24 +00:00
Matt Aitken 28052daad9 Faster jobs page (#879)
* Optional next/previous with the list pagination

* Defer the loading of the runs table

* Only return the latest run in a separate query, then do a join in code

* Added a composite index to speed up getting the latest run from a job id
2024-01-30 17:02:04 +00:00
github-actions[bot] 364c8c5f7f chore: Update version for release (#876)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-30 13:36:36 +00:00
Matt Aitken 4b3b418abb Set endpoint URLs to null, instead of deleting them (#878)
🚀 Publish Trigger.dev Docker / units (push) Failing after 4s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 5s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 4s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
* Added Endpoint deletedAt column

* Only show endpoints where they’re not deleted

* Don’t delete Endpoints, set the deletedAt and change their slug name

* Only perform indexing if the endpoint isn’t deleted

* Have a nullable URL for endpoints

* Deal with null URLs throughout the app

* Re-running and retrying behaves properly when there’s no endpoint URL

* Remove console.log

* Better error message when doing a run
v.docker.2.2.32
2024-01-30 10:45:12 +00:00
Matt Aitken 2e354d342c Deleting endpoint working (#875) 2024-01-29 11:57:25 +00:00
Matt Aitken dd879c8e4a Fix api run statuses (#874)
* Added a subtask for testing

* Make it easier to run the CLI from the nextjs reference project

* Copies of the run and statuses endpoints, but without simplifying the run statuses

* Use the new v2 endpoints that give the full run statuses

* Removed unused import

* v2 events endpoint with the full run status info

* Changeset
2024-01-29 11:42:19 +00:00
Matt Aitken af485b9180 Fix custom oauth client (#872)
* A checkbox can now be readonly and not be checkable, with correct styling

* Use readOnly for the hasCustomClient checkbox, not disabled

* Better styling of the disabled state

* The update oauth form too
2024-01-26 17:25:15 +00:00
Matt Aitken a739ebaa88 Tweaked the layout of the usage runs charts so the daily runs are in the box with other run charts 2024-01-26 15:05:52 +00:00
Kritik Jiyaviya 3ebc2578e0 feat: Add daily runs graph (#865)
* feat: Add daily runs graph

* Merge branch 'main' into feat/daily-runs-graph

* update DayRunsChart

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-26 15:00:30 +00:00
Kritik Jiyaviya 0b657b33f9 Allow retrying a job run with an invalid payload (#869) 2024-01-26 12:39:23 +00:00
Erin Allison 7ac942dc0e Address unintended type coercion in PageInfoPropertyComponent (#861)
Fixes triggerdotdev/trigger.dev#858

Signed-off-by: Erin Allison <erin@eallison.us>
2024-01-26 09:44:55 +00:00
Matt Aitken 9b12016428 Improved SQL reads for some dashboard pages (#868)
* Pass subscription status into the usage bar

* Page navigation spinner is now blue (was a bit subtle before)

* Better logging of db queries, this will be commented out before the PR is merged

* Select only the required fields

* We don’t need the member count for each org

* WIP redirecting with projectId in session

* Switching projects is now working, without duplicating the project query

* Removed logs in revalidate function

* Removes some unused imports

* ProjectPresenter: removed lots of unused db selects

* Root use defaultShouldRevalidate, not just true

* Simplified the job list query and separated the deleting job modal query

* Use requireUserId instead of requireUser wherever possible

* EventListPresenter query simplified

* Simplified the RunListPresenter query

* Disable query logging

* Use the latest updated version for the job list table

* We need to use the org presenter on the select plan page
2024-01-26 09:41:11 +00:00
Matt Aitken d6b44de4ba Defer the loading of the usage data (#866)
🚀 Publish Trigger.dev Docker / units (push) Failing after 10s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 20s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 19s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
* Updated to the latest remix-typedjson package

* Throw an error if the org isn’t found

* Use defer. Doesn’t work because Date isn’t deserialized correctly

* Use regular defer, typeddefer isn’t working properly…

* Don’t update remix-typedjson, wasn’t needed

* Organize imports
v.docker.2.2.31
2024-01-22 10:26:33 +00:00
Matt Aitken 17df4839d7 Latest lockfile
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 5s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 5s
🚀 Publish Trigger.dev Docker / units (push) Failing after 21s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
@trigger.dev/airtable@2.3.16 @trigger.dev/astro@2.3.16 @trigger.dev/cli@2.3.16 @trigger.dev/core-backend@2.3.16 @trigger.dev/eslint-plugin@2.3.16 @trigger.dev/express@2.3.16 @trigger.dev/github@2.3.16 @trigger.dev/hono@2.3.16 @trigger.dev/integration-kit@2.3.16 @trigger.dev/linear@2.3.16 @trigger.dev/nestjs@2.3.16 @trigger.dev/nextjs@2.3.16 @trigger.dev/openai@2.3.16 @trigger.dev/plain@2.3.16 @trigger.dev/react@2.3.16 @trigger.dev/remix@2.3.16 @trigger.dev/replicate@2.3.16 @trigger.dev/resend@2.3.16 @trigger.dev/sdk@2.3.16 @trigger.dev/sendgrid@2.3.16 @trigger.dev/shopify@2.3.16 @trigger.dev/slack@2.3.16 @trigger.dev/stripe@2.3.16 @trigger.dev/supabase@2.3.16 @trigger.dev/sveltekit@2.3.16 @trigger.dev/testing@2.3.16 @trigger.dev/typeform@2.3.16 @trigger.dev/yalt@2.3.16 trigger.dev@1.0.5 v.docker.2.2.30 @trigger.dev/core@2.3.16
2024-01-21 17:30:21 +00:00
github-actions[bot] e3f78178f7 chore: Update version for release (#864)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-21 17:29:23 +00:00
Kritik Jiyaviya da90ee13c3 fix: Resend integration example comment (#860) 2024-01-21 17:16:26 +00:00
Matt Aitken 583da458ec Changed the minimum interval time period from 60s to 20s (with changeset) 2024-01-21 17:06:09 +00:00
Matt Aitken dcf95c4eb2 Revert "Changeset: Changed the minimum interval time from 60s to 20s"
This reverts commit c272e38de2.
2024-01-21 17:04:11 +00:00
Matt Aitken 32cf5790cb Revert "Changed the minimum interval time from 60s to 20s"
This reverts commit ca78ddc2c2.
2024-01-21 17:04:11 +00:00
Matt Aitken c272e38de2 Changeset: Changed the minimum interval time from 60s to 20s 2024-01-21 16:29:54 +00:00
Matt Aitken ca78ddc2c2 Changed the minimum interval time from 60s to 20s 2024-01-21 16:28:28 +00:00
Matt Aitken 07ed8c346a Fix for enabled env var in docs 2024-01-20 14:01:56 +00:00
Matt Aitken d4391f2e2d Fixed link in io.logger to the run log 2024-01-20 12:54:11 +00:00
Eric Allam 2c328ba93d Fix pnmp lock file again @trigger.dev/airtable@2.3.15 @trigger.dev/astro@2.3.15 @trigger.dev/cli@2.3.15 @trigger.dev/core-backend@2.3.15 @trigger.dev/core@2.3.15 @trigger.dev/eslint-plugin@2.3.15 @trigger.dev/express@2.3.15 @trigger.dev/github@2.3.15 @trigger.dev/hono@2.3.15 @trigger.dev/integration-kit@2.3.15 @trigger.dev/linear@2.3.15 @trigger.dev/nestjs@2.3.15 @trigger.dev/openai@2.3.15 @trigger.dev/plain@2.3.15 @trigger.dev/react@2.3.15 @trigger.dev/remix@2.3.15 @trigger.dev/replicate@2.3.15 @trigger.dev/resend@2.3.15 @trigger.dev/sdk@2.3.15 @trigger.dev/sendgrid@2.3.15 @trigger.dev/shopify@2.3.15 @trigger.dev/slack@2.3.15 @trigger.dev/stripe@2.3.15 @trigger.dev/supabase@2.3.15 @trigger.dev/sveltekit@2.3.15 @trigger.dev/testing@2.3.15 @trigger.dev/typeform@2.3.15 @trigger.dev/yalt@2.3.15 trigger.dev@1.0.4 @trigger.dev/nextjs@2.3.15 2024-01-17 14:50:04 +00:00
github-actions[bot] 68dbc07ee8 chore: Update version for release (#854)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-17 14:49:19 +00:00
Eric Allam 58448243af Fix pnpm i 2024-01-17 14:41:51 +00:00
Eric Allam 6c4047cf21 Fix an issue where runs were stuck executing when a child task failed and the parent task retried 2024-01-17 14:39:06 +00:00
github-actions[bot] 831860eace chore: Update version for release (#853)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-17 14:13:34 +00:00
Matt Aitken db46f2a69a Add explicit return type to deprecated sendEmail function because tsup was complaining 2024-01-17 14:07:45 +00:00
Kritik Jiyaviya 4dd6cf18dc feat: Add support for the new Resend audience API endpoints (#850)
* feat: Add support for the new Resend audience API endpoints

* update pnpm-lock.yaml

* update pnpm-lock.yaml

* Merge branch 'main' into feat/support-for-resend-audience-api

* latest pnpm-lock.yaml

* Create lovely-items-end.md

* Update pnpm-lock.yaml

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-17 14:06:45 +00:00
Eric Allam adf66d23b8 Update pnpm lock file
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 5s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 4s
🚀 Publish Trigger.dev Docker / units (push) Failing after 15s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
@trigger.dev/airtable@2.3.13 @trigger.dev/astro@2.3.13 @trigger.dev/cli@2.3.13 @trigger.dev/core-backend@2.3.13 @trigger.dev/core@2.3.13 @trigger.dev/eslint-plugin@2.3.13 @trigger.dev/express@2.3.13 @trigger.dev/github@2.3.13 @trigger.dev/hono@2.3.13 @trigger.dev/integration-kit@2.3.13 @trigger.dev/linear@2.3.13 @trigger.dev/nestjs@2.3.13 @trigger.dev/nextjs@2.3.13 @trigger.dev/openai@2.3.13 @trigger.dev/plain@2.3.13 @trigger.dev/react@2.3.13 @trigger.dev/remix@2.3.13 @trigger.dev/replicate@2.3.13 @trigger.dev/resend@2.3.13 @trigger.dev/sdk@2.3.13 @trigger.dev/sendgrid@2.3.13 @trigger.dev/shopify@2.3.13 @trigger.dev/slack@2.3.13 @trigger.dev/stripe@2.3.13 @trigger.dev/supabase@2.3.13 @trigger.dev/sveltekit@2.3.13 @trigger.dev/typeform@2.3.13 @trigger.dev/yalt@2.3.13 trigger.dev@1.0.2 v.docker.2.2.29 @trigger.dev/testing@2.3.13
2024-01-17 11:15:30 +00:00
github-actions[bot] 5c42831a60 chore: Update version for release (#846)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-17 11:14:52 +00:00
Eric Allam 26f5e7774d Fix yalt.dev connection timeouts by increasing timeout from 1s to 5s (#851)
* Increase the yalt tunnel connection timeout to 5 seconds

* Add changeset
2024-01-17 10:27:57 +00:00
Matt Aitken f209a3b364 Ability to disable organization runs + more obvious if you're over the free limit (#848)
* Fix for typo in error when a Job invoke fails

* Can disable runs for an Organization

* Don’t perform runs if runsEnabled === false for an Org

* Exceeded runs messages made into errors, they were very subtle

* Return the runsEnabled property for each org

* More obvious message if you’re over the free run limit

* Added a red border to the free usage panel if you’re over your run limit

* Added missing property to Storybook for the FreePlanUsage component
2024-01-17 09:42:58 +00:00
Son Yen Nguyen a93b554f8b Feat: Update cron parser human readable string (#847)
* Update cron parser human readable string

* Create hot-cobras-flow.md

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-16 17:22:35 +00:00
Matt Aitken 0f342cd1be Don't show duplicate Job warning if it's an internal job 2024-01-16 15:54:20 +00:00
Matt Aitken 7df2f85a1f Latest lockfile @trigger.dev/airtable@2.3.12 @trigger.dev/astro@2.3.12 @trigger.dev/cli@2.3.12 @trigger.dev/core-backend@2.3.12 @trigger.dev/core@2.3.12 @trigger.dev/eslint-plugin@2.3.12 @trigger.dev/express@2.3.12 @trigger.dev/github@2.3.12 @trigger.dev/hono@2.3.12 @trigger.dev/integration-kit@2.3.12 @trigger.dev/linear@2.3.12 @trigger.dev/nestjs@2.3.12 @trigger.dev/nextjs@2.3.12 @trigger.dev/openai@2.3.12 @trigger.dev/plain@2.3.12 @trigger.dev/react@2.3.12 @trigger.dev/replicate@2.3.12 @trigger.dev/resend@2.3.12 @trigger.dev/sdk@2.3.12 @trigger.dev/sendgrid@2.3.12 @trigger.dev/shopify@2.3.12 @trigger.dev/slack@2.3.12 @trigger.dev/stripe@2.3.12 @trigger.dev/supabase@2.3.12 @trigger.dev/sveltekit@2.3.12 @trigger.dev/testing@2.3.12 @trigger.dev/typeform@2.3.12 @trigger.dev/yalt@2.3.12 trigger.dev@1.0.1 @trigger.dev/remix@2.3.12 2024-01-16 15:22:21 +00:00
Matt Aitken f14180d13c Also hide "dev.trigger.scheduled" events from the event list 2024-01-16 15:21:45 +00:00
github-actions[bot] ab6b9514cd chore: Update version for release (#844)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-16 15:00:28 +00:00
Matt Aitken 98345d67d9 Allow unchecked array access in the CLI tsconfig. This matches the other packages… 2024-01-16 14:46:31 +00:00
Matt Aitken 38f5a90399 Auto-yielding is skipped for tasks that are no-ops and subtasks 2024-01-16 14:01:05 +00:00
Matt Aitken 1b2635ae4a Don’t show “trigger.scheduled” events in the list 2024-01-16 12:14:08 +00:00
Matt Aitken 129f023d11 EventTrigger source wasn’t getting passed through to the class 2024-01-16 12:07:11 +00:00
Matt Aitken 795e637dec caniuse-lite updated, it was logging out an annoying message 2024-01-16 11:52:08 +00:00
Matt Aitken 5238c424fc Absolute date filtering (#845)
* WIP on absolute date filtering for runs

* Use the date hook instead

* Reworked the date field again so the state behaves nicely

* Way better date filtering

* Setting the absolute date is working well, also clearing filters

* Reverse date format

* Turn off the guide

* Added time filtering and clearing to the events page
2024-01-16 11:44:15 +00:00
Matt Aitken 1bbd7e6dc3 V3 CLI started, with Personal Access Tokens and Who Am I (#841)
* Initial CLI commit

* Hooked up the CLI so it actually shows stuff…

* Totally reworked the v3 CLI to be based on our existing CLI (Commander)

* WIP on PersonalAccessTokens and AuthorizationCodes

* WIP creating a Personal Access Tokens page. Created a new sidenav for account pages

* Creating tokens is working but the form is broken

* Tokens are created in the UI

* Creating and revoking access tokens from the UI is working

* Improved the create form and copy

* Tokens are a bit shorter and only lowercase

* API endpoint for creating AuthorizationCodes and the web page users hit to create PATs from them

* V3_ENABLED env var and hook that can be used in the UI to show/hide things

* API route to get a PAT (within 10 mins of creating an auth code). Moved some code to core

* Start to build the login command

* Nicer banner when starting the CLI

* Nicer update checking

* Update command style improved

* Removed the template step

* Login command options are now working

* The new CLI is logging in using the Personal Access TOken. But I need to save it still

* Logging in and saving the token is working

* Deal with already being logged in

* Who Am I working with PAT

* Deleted old account side menu header

* Improved the copy on the Auth code page

* Added docs for the login and whoami commands

* Added readme instructions for the update command

* Removed some unused things

* Remove fetchUseProxy for now
2024-01-15 14:45:41 +00:00
Kritik Jiyaviya 3bb82ed9a5 feat: runs filtering by relative timeframe (#832)
* feat: runs filtering by relative timeframe

* improve logic

* Used formatDateTime

* fix: logic of  determineTimeFrame() function

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-15 14:13:20 +00:00
Abhimanyu Yadav ff4ff869ab feat(logger): accepting Error objects as parameters in io.logger.error() (#797)
* feat(logger): accepting Error objects as parameters in io.logger.error()

* Allow errors for any log level

* Create silent-ties-vanish.md

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-15 14:02:41 +00:00