Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro Actions #8980

Merged
merged 68 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4ac76b8
feat: add actions to nav
bholmesdev Aug 1, 2024
ed2b43f
feat: basic usage guide
bholmesdev Aug 1, 2024
78110ad
docs: describe how errors are handled
bholmesdev Aug 1, 2024
2b2b9ab
docs: input validator API reference
bholmesdev Aug 1, 2024
737f490
docs: big form data guide
bholmesdev Aug 1, 2024
44e6f87
docs: display validation errors on form
bholmesdev Aug 1, 2024
f0e7c9b
edit: Since badge
bholmesdev Aug 1, 2024
ae7275a
fix: add error check to first demo
bholmesdev Aug 1, 2024
94d57d0
fix: absolute url link
bholmesdev Aug 1, 2024
d34b59d
second draft page
sarah11918 Aug 6, 2024
8586b73
feat: switch to sarah's draft
bholmesdev Aug 6, 2024
54c6ef8
edit: remove last two intro bullets
bholmesdev Aug 6, 2024
e57b62d
edit: correct what the `data` object returns
bholmesdev Aug 6, 2024
3c51235
nit: add comma because I paused reading it out loud
bholmesdev Aug 6, 2024
42cdb0b
edit: remove quantifiers on JSON return
bholmesdev Aug 6, 2024
681fffd
edit: remove "from client side code." Not the only place!
bholmesdev Aug 6, 2024
814a462
edit: remove client-side code
bholmesdev Aug 6, 2024
ed9d032
fix: line numbers
bholmesdev Aug 6, 2024
ca5fdf0
edit: remove client-side code
bholmesdev Aug 6, 2024
431e588
edit: form data example tweaks
bholmesdev Aug 6, 2024
db1292e
edit: explain query string with an example
bholmesdev Aug 6, 2024
d35e710
nit: message -> messages
bholmesdev Aug 6, 2024
c10c75b
nit: ... -> /* ... */
bholmesdev Aug 6, 2024
1527859
chore: remove first draft
bholmesdev Aug 6, 2024
56ee731
nit: missed a ...
bholmesdev Aug 6, 2024
6cf47f8
new: defineAction reference, actionError reference intro
bholmesdev Aug 6, 2024
798570c
docs: `code` property
bholmesdev Aug 6, 2024
c32cf7b
Thank you for taking such quick `action`!
sarah11918 Aug 7, 2024
b67a1c6
new: html form action guide
bholmesdev Aug 9, 2024
223d390
fix: view transition link
bholmesdev Aug 9, 2024
314810a
edit: add redirects guide and update `data` with more nuanced example
bholmesdev Aug 9, 2024
1431c63
edit: specific -> constructed
bholmesdev Aug 9, 2024
99caf36
fix: remove draft section
bholmesdev Aug 9, 2024
5f80a24
edit: update the UI heading
bholmesdev Aug 9, 2024
1a0158b
edit: redirects heading
bholmesdev Aug 9, 2024
6385759
wip: remove `astro:schema` (TO BE REVERTED)
bholmesdev Aug 9, 2024
ad45d4a
edit: misc fixes
bholmesdev Aug 9, 2024
433eb9b
edit: bring back astro schema
bholmesdev Aug 21, 2024
efbef08
fix: an -> a
bholmesdev Aug 21, 2024
5bd5192
feat: `success` property
bholmesdev Aug 21, 2024
2c6e21b
Revert "feat: `success` property"
bholmesdev Aug 21, 2024
2f983f5
edit: improve wording around error handling callouts
bholmesdev Aug 21, 2024
c5418e6
new: client redirect guide
bholmesdev Aug 21, 2024
df75060
fix link
sarah11918 Aug 22, 2024
78ab18f
edit: big redraft
bholmesdev Aug 22, 2024
148f9da
edit: finish api reference
bholmesdev Aug 22, 2024
fa8872b
edit: heading level
bholmesdev Aug 22, 2024
2796764
feat: add callAction and getActionResult to API reference
bholmesdev Aug 23, 2024
5f927c6
Chris review tweaks for opening section
delucis Aug 23, 2024
f493483
Chris, pt.2 — “Organizing actions” and “Handling returned data”
delucis Aug 23, 2024
d748fab
Reinstate use of `navigate` in client redirects section
delucis Aug 23, 2024
7759cc4
Install EC collapsible sections plugin
delucis Aug 26, 2024
a28729f
Chris, pt.3 — “Accepting form data from an action”
delucis Aug 26, 2024
30559cb
Chris, pt.4 — form actions and redirects
delucis Aug 26, 2024
849af9c
edit: add isInputError type
bholmesdev Aug 26, 2024
9f95e25
edit: add since label
bholmesdev Aug 26, 2024
8086790
edit: add since for callAction
bholmesdev Aug 26, 2024
2e0f01d
edit: add getActionResult type
bholmesdev Aug 26, 2024
474b7c1
Chris, pt.5 — error handling and success messages
delucis Aug 26, 2024
d45c709
Merge branch 'main' into feat/actions
delucis Aug 26, 2024
180af24
`pnpm dedupe`
delucis Aug 26, 2024
f86972f
Sarah polishing
sarah11918 Aug 27, 2024
491eda7
sarah organize/edit API reference
sarah11918 Aug 27, 2024
3eeeeef
edit: add ActionError link, remove guard
bholmesdev Aug 27, 2024
c32534c
Fix collapsed line range
delucis Aug 27, 2024
c2aa791
fix line collapsing
sarah11918 Aug 27, 2024
3952c79
nit: ,
bholmesdev Aug 28, 2024
64b7940
Merge branch '4.15.0' into feat/actions
sarah11918 Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import starlight from '@astrojs/starlight';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections';
import { defineConfig, sharpImageService } from 'astro/config';
import { makeLocalesConfig } from './config/locales';
import { makeSidebar } from './config/sidebar';
Expand All @@ -23,6 +24,9 @@ export default defineConfig({
starlight({
title: 'Docs',
customCss: ['./src/styles/custom.css'],
expressiveCode: {
plugins: [pluginCollapsibleSections()],
},
components: {
EditLink: './src/components/starlight/EditLink.astro',
Head: './src/components/starlight/Head.astro',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"@astrojs/sitemap": "^3.1.5",
"@astrojs/starlight": "^0.26.1",
"@docsearch/js": "^3.5.2",
"@expressive-code/plugin-collapsible-sections": "^0.35.0",
"@fontsource/ibm-plex-mono": "^4.5.10",
"@lunariajs/core": "^0.1.1",
"canvas-confetti": "^1.6.0",
Expand Down
Loading
Loading