Skip to content

Commit eb77018

Browse files
committed
work on guidelines
1 parent 890d9cd commit eb77018

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.ai/herd/core.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
- The site is made available by Herd, and will be available at: https?://[kebab-case-project-dir].test. Use the `get-absolute-url` tool to generate URLs for the user to ensure user satisfaction and valid URLs.
2-
- You must not run any commands to make the site available via HTTP(s). It is _always_ available through Herd.
1+
## Laravel Herd
2+
3+
- The application is served by Laravel Herd and will be available at: https?://[kebab-case-project-dir].test. Use the `get-absolute-url` tool to generate URLs for the user to ensure valid URLs.
4+
- You must not run any commands to make the site available via HTTP(s). It is _always_ available through Laravel Herd.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Inertia v1 Core
1+
## Inertia v1
22

33
- Inertia v1 does _not_ come with these features. Do not recommend using these Inertia v2 features directly.
44
- Polling
55
- Prefetching
66
- Deferred props
7-
- Infinite scrolling using merging props and WhenVisible
7+
- Infinite scrolling using merging props and `WhenVisible`
88
- Lazy loading data on scroll
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
## Inertia v2 Core
1+
## Inertia v2
22

3-
- Make use of all Inertia features from v1 & v2
3+
- Make use of all Inertia features from v1 & v2. Check the documentation before making any changes to ensure we are taking the correct approach.
44

5-
## Inertia v2 New Features
5+
### Inertia v2 New Features
66

77
- Polling
88
- Prefetching
99
- Deferred props
10-
- Infinite scrolling using merging props and WhenVisible
10+
- Infinite scrolling using merging props and `WhenVisible`
1111
- Lazy loading data on scroll
1212

13-
- When using deferred props on the frontend we should add a nice empty state with pulsing / animated skeleton. Check the docs before making any changes to ensure we are approaching this in the correct way.
13+
### Deferred Props & Empty States
14+
15+
- When using deferred props on the frontend, you should add a nice empty state with pulsing / animated skeleton.

.ai/inertia-laravel/core.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Inertia Core
22

3-
- Inertia.js components should be placed in the `resources/js/Pages` directory, unless specified differently in the JS bundler (ie. vite.config.js).
3+
- Inertia.js components should be placed in the `resources/js/Pages` directory unless specified differently in the JS bundler (vite.config.js).
44
- Use `Inertia::render()` for server-side routing instead of traditional Blade views.
5-
<code-snippet lang="php" name="Inertia::render example">
5+
6+
<code-snippet lang="php" name="Inertia::render Example">
67
// routes/web.php example
78
Route::get('/users', function () {
89
return Inertia::render('Users/Index', [

0 commit comments

Comments
 (0)