Commit Graph

29 Commits

Author SHA1 Message Date
Eric Allam 9f076631ae #346 Improve run dashboard perf when tasks have large outputs
Performance degradation came from the syntax highlighting of large code blocks and from doing that on the server and the client, so fixed this in a couple of ways:

1. Stream the task details data using defer and Suspense/Await
2. Skipped syntax highlighting code blocks with more than 1k lines
2023-09-01 22:05:06 +01:00
Matt Aitken 9ff4c0dbd5 Project-wide Prettier setup (#237)
* Setup project-wide prettier

* Remove old workspace file

* Remove old debugging directives

* New top-level .prettierignore

* Updated Prettier config settings

* Contrubuting guide: Fix for some bad code blocks

* Added more ignores

* Improved the format script command

* printWidth set to 100

* Formatted entire repo (pnpm run format)
2023-08-01 10:21:22 +01:00
Matt Aitken ad48f9bb19 slate-1000 and slate-950 replaced with midnight-900 and midnight-850 2023-06-06 17:25:14 +01:00
James Ritchie 4c889cf6f0 Changed the icon in the code block for copy/paste 2023-05-12 16:52:38 +01:00
Matt Aitken 77046470ea Added optional chrome to the CodeBlock 2023-05-11 13:43:42 +01:00
Matt Aitken 83b79610af Line highlighting now takes ranges 2023-05-11 10:50:57 +01:00
Matt Aitken 4fa3ea2491 Improved size of clipboard icon 2023-05-11 09:48:06 +01:00
Matt Aitken 85f7ad871d You can set the max lines to display on a CodeBlock 2023-05-10 18:44:15 +01:00
Matt Aitken bfac524c75 Getting the copy button to work well 2023-05-10 18:20:30 +01:00
Matt Aitken 2a93c10828 Set the default language to TypeScript 2023-05-10 17:45:54 +01:00
Matt Aitken 833c509606 CodeBlock working well, except syntax highlighting is broken somehow 2023-05-10 17:44:49 +01:00
Matt Aitken 1b010571c9 CodeBlock is working with the @mantine/prism package 2023-05-10 15:39:40 +01:00
Matt Aitken 2765fe12cd Tidied up more old components 2023-05-10 08:44:45 +01:00
Matt Aitken 60309677fe Deleted a ton of old components, started tidying things up 2023-05-09 18:50:46 +01:00
Matt Aitken 9da448a21b The code block now works with jsx/tsx 2023-02-16 15:22:41 +00:00
James Ritchie e77bfc77e0 more style improvements 2023-02-02 19:38:17 +00:00
D-K-P 769de0f875 Added line numbers to code block 2023-01-19 17:04:34 -08:00
James Ritchie f9b43645c7 Expand button padding tweak 2023-01-09 17:46:55 +00:00
Matt Aitken d844b07e6e Code block collapses as well as expands 2022-12-30 19:15:20 +00:00
Matt Aitken a80cfe1b8b Put a max height on a code block with expand functionality 2022-12-28 16:30:43 +00:00
Matt Aitken db8c4e481b Improved the alignment of the code block when top aligned 2022-12-21 13:59:40 +00:00
James Ritchie 4abfaffc2a Added an error code block to the error node 2022-12-20 11:47:29 +00:00
Matt Aitken 9166ee4c23 Added an optional copy code button in the prisma component 2022-12-20 10:11:03 +00:00
Matt Aitken d2477b2a67 Added explicit typescript and json languages to the code block 2022-12-19 16:32:24 +00:00
Matt Aitken ec54b2858d Render the code manually so we don’t get issues with server and client mismatch 2022-12-19 16:27:51 +00:00
Matt Aitken 9eabadc393 Moved the typescript prisma plugin into the CodeBlock file 2022-12-19 16:20:59 +00:00
Matt Aitken dad0c6d0e6 Fix for Prismjs Remix server/client mismatch error. But it has a horrible flash when the page loads 2022-12-19 16:19:20 +00:00
James Ritchie 1f57ec591f Prism theme improvement 2022-12-16 15:38:33 +00:00
James Ritchie bcd07fe768 Renamed filename to be correct casing 2022-12-16 11:48:54 +00:00