Commit Graph

1684 Commits

Author SHA1 Message Date
Mihovil Ilakovac
7c09e3964b
Updates LSP templates (#1375) 2023-07-28 10:33:04 +02:00
Craig McIlwrath
76d9fc4213
[waspls] Add code actions for scaffolding external code (#1316)
When an external import tries to import a symbol from a TypeScript/JavaScript file, waspls now offers quickfix code actions to scaffold a function in that file.

It uses the surrounding context of the external import to determine what code to write for the code action. See [`ScaffoldTsSymbol.hs`](457911d5e9/waspc/waspls/src/Wasp/LSP/Commands/ScaffoldTsSymbol.hs) for a detailed description of how it works. At a high level, there is a `templateForFile` function in `Wasp.LSP.Commands.ScaffoldTsSymbol` that selects the correct template from `data/lsp/templates/ts`. For example, `action.fn.ts` contains a template for scaffolding an `action` function in a TypeScript file and would be used when a code action is requested with the cursor at the location marked by `|`:

```wasp
action createTask {
  fn: import { createTask } from "@server/actions.js"|
}
```

The scaffold action runs as a [LSP command](https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#workspace_executeCommand). To prepare for wanting to define more commands in waspls in the future, this PR also introduces the concept of `Commands` (`Wasp.LSP.Commands.Command`) that define some properties about each command waspls wants to handle.
2023-07-26 08:00:16 -04:00
Mihovil Ilakovac
60653fb835
Add Custom Domain docs (#1336) 2023-07-21 17:08:12 +02:00
Martin Sosic
1e8717e621 Added link to technical blog post for Generator from main post. 2023-07-21 15:55:53 +02:00
Mihovil Ilakovac
c6c2d00032
[docs] Point the page edit to release branch (#1335)
* Point the page edit to release branch

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>

* Fixes the blog edit URL

---------

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-07-21 13:50:26 +02:00
Mihovil Ilakovac
3e481eba04 Merge branch 'release' 2023-07-21 12:06:30 +02:00
Filip Sodić
6be95ad1e9 Correct download tracking 2023-07-20 14:50:39 +02:00
Craig McIlwrath
4da36535ca
[docs] removes type annotation in JS code in the tutorial (#1329) 2023-07-19 09:01:01 -04:00
Mihovil Ilakovac
3131f320a4 Update stats 2023-07-19 14:29:45 +02:00
Mihovil Ilakovac
b40fb5f850 Remove ts-check 2023-07-19 13:56:54 +02:00
Mihovil Ilakovac
542a45ee99 Optimizes stats and adds download icon 2023-07-19 13:52:43 +02:00
Martin Sosic
eb84fa4ba0 Added 'cost per app' to blog on how we made GPT. 2023-07-18 16:41:02 +02:00
Martin Sosic
a663af5dd7 Improved a bit the blog post about how we built gpt code agent. 2023-07-18 15:17:18 +02:00
Craig McIlwrath
8b1d6a96ab
[waspls] implement goto definition for declarations (#1310) 2023-07-18 08:16:26 -04:00
Martin Sosic
cbf9545e1b Wrote 'How we built GPT web app generator' blog post. 2023-07-17 16:09:32 +02:00
Matija Sosic
63d078dc44 wasp-ai: Added feedback form. 2023-07-15 16:15:21 +02:00
Matija Sosic
bb53b057b2 lp: put GPT starter into announcement bar. 2023-07-14 14:22:09 +02:00
Filip Sodić
bcbd138244 Martech (#1319)
* Martech

* Record zip downloads

* fix

---------

Co-authored-by: Martin Sosic <sosic.martin@gmail.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2023-07-14 12:13:11 +02:00
Martin Sosic
f605726712 Fixed wrong instructions in FAQ. 2023-07-13 23:01:11 +02:00
Martin Sosic
04c21d0463 Made example apps in the waiting room responsive. 2023-07-13 19:28:17 +02:00
Martin Sosic
4f89753ff7 Added estimation of waiting time + changed how GH stars banner is shown on results page. 2023-07-13 17:31:12 +02:00
Umbrien
2df423006c
add missing comma (#1318) 2023-07-13 15:41:59 +02:00
Martin Sosic
8442e02d14 Fixed retry reagarding creativityLevel. 2023-07-12 19:41:46 +02:00
Martin Sosic
188a63538d Updated Dockerfile. 2023-07-12 18:59:16 +02:00
Martin Sosic
8f40d7c775 Updated copy a bit. 2023-07-12 18:16:18 +02:00
Martin Sosic
4a17fb4cb4 Added running from CLI to FAQ. 2023-07-12 17:58:38 +02:00
Filip Sodić
ba683d0969 Add extendedWhereUnique to Wasp AI 2023-07-12 17:51:33 +02:00
Filip Sodić
4bff9069a3 Merge branch 'main' into wasp-ai 2023-07-12 17:44:24 +02:00
Filip Sodić
d554506bc8 Merge branch 'release' 2023-07-12 17:10:58 +02:00
Filip Sodić
af9d7992b3
Add support for Prisma preview features (#1315) 2023-07-12 17:08:57 +02:00
Martin Sosic
edda0242c4 small copy fix. 2023-07-12 16:38:05 +02:00
Martin Sosic
803fad6d9f Added creativity level, improved messaging in wasp-ai, some links. 2023-07-12 16:18:57 +02:00
Martin Sosic
e4ff5931a9 Updated Dockerfile. 2023-07-11 18:35:31 +02:00
Martin Sosic
d2268b734f Reverted wasp cli version in Wasp AI to 0.11.0. 2023-07-11 16:30:12 +02:00
Martin Sosic
fa6c3867eb Fixed wrong cabal version. 2023-07-11 16:27:00 +02:00
Martin Sosic
a8b9a94f4d Fixed condition for waiting content on fst in queue. 2023-07-11 16:15:02 +02:00
Martin Sosic
9ab013c5c2 Updated e2e tests. 2023-07-11 15:43:41 +02:00
Filip Sodić
0f4be2a6d5 Add fun to the Wasp AI queue 2023-07-11 15:32:57 +02:00
Martin Sosic
3be17bdc9e Improved and fixed FAQ. 2023-07-11 15:15:55 +02:00
Martin Sosic
a00ccf5af4 Fixed link to blog post. 2023-07-11 15:15:55 +02:00
Matija Sosic
0492f3dbe6 blog: added video to wasp ai intro post. 2023-07-11 15:10:57 +02:00
Matija Sosic
5cbc0daba3 blog: small updates to Wasp AI intro post. 2023-07-11 14:51:22 +02:00
Matija Sosic
f204ed6fc4 blog: Added Web App Generator intro post. 2023-07-11 14:00:20 +02:00
Filip Sodić
e2ed9682e0 Merge branch 'wasp-ai' of github.com:wasp-lang/wasp into wasp-ai 2023-07-11 13:27:44 +02:00
Filip Sodić
ce5f292cca Improve Page examples for chat gpt 2023-07-11 13:27:32 +02:00
Martin Sosic
7291ca882a Updated version to 0.11.1. 2023-07-11 13:06:49 +02:00
Martin Sosic
805aaef1dd Temperature can now be adjusted via CLI. 2023-07-11 12:38:32 +02:00
Martin Sosic
737ab428ed Added GPT4 as an option via project config JSON. 2023-07-11 12:28:19 +02:00
Martin Sosic
1b1d3fd9ac Added back overflow-x-auto to logs. 2023-07-10 23:41:07 +02:00
Martin Sosic
c6a6c9f759 Updated Dockerfile to new wasp-ai release. 2023-07-10 22:46:46 +02:00