Commit Graph

5316 Commits

Author SHA1 Message Date
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/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 @trigger.dev/sdk@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
Matt Aitken 1dcee2b338 Changed docs analytics to PostHog EU 2024-01-15 13:51:02 +00:00
Aditya Tripathi 0a798446c8 feat: managed cloud check for search indexing (#825)
* feat: managed cloud check for search indexing

* fix: vice versa on the robots meta tag

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-15 09:35:43 +00:00
Kritik Jiyaviya 209942a63d fix: integrations list scrollbar (#829) 2024-01-15 09:29:42 +00:00
Manthan Mallikarjun 57a9b35870 Fix typo in deployment-automatic docs (#842)
Env var is wrong
2024-01-15 09:28:37 +00:00
Fabian B a16b65f666 docs: fix syntax error (#839) 2024-01-14 16:55:01 +00:00
Matt Aitken 5871745a92 Latest lockfile @trigger.dev/airtable@2.3.11 @trigger.dev/astro@2.3.11 @trigger.dev/cli@2.3.11 @trigger.dev/core-backend@2.3.11 @trigger.dev/core@2.3.11 @trigger.dev/eslint-plugin@2.3.11 @trigger.dev/express@2.3.11 @trigger.dev/github@2.3.11 @trigger.dev/hono@2.3.11 @trigger.dev/integration-kit@2.3.11 @trigger.dev/linear@2.3.11 @trigger.dev/nestjs@2.3.11 @trigger.dev/nextjs@2.3.11 @trigger.dev/openai@2.3.11 @trigger.dev/plain@2.3.11 @trigger.dev/react@2.3.11 @trigger.dev/remix@2.3.11 @trigger.dev/replicate@2.3.11 @trigger.dev/resend@2.3.11 @trigger.dev/sdk@2.3.11 @trigger.dev/sendgrid@2.3.11 @trigger.dev/shopify@2.3.11 @trigger.dev/slack@2.3.11 @trigger.dev/stripe@2.3.11 @trigger.dev/supabase@2.3.11 @trigger.dev/sveltekit@2.3.11 @trigger.dev/testing@2.3.11 @trigger.dev/typeform@2.3.11 @trigger.dev/yalt@2.3.11 2024-01-12 14:13:32 +00:00
github-actions[bot] 87b5dfbf11 chore: Update version for release (#837)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-12 14:10:42 +00:00
Michelle Rosenberger 5af2003516 Fix Stripe integration webhook validation (#836)
The SubtleCryptoProvider cannot be used in a synchronous context. This
is a problem for non-node environments where the Stripe client falls
back to SubtleCryptoProvider.

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-01-12 14:05:33 +00:00
Matt Aitken 85ce729bf2 Latest lockfile 2024-01-12 13:55:03 +00:00