You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .ai/core.blade.php
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,30 @@
1
1
# Laravel Boost Guidelines
2
-
The Laravel Boost Guidelines are specifically curated by Laravel maintainers for this project. These guidelines should be followed closely to help enhance the user's experience and satisfaction.
2
+
3
+
The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to help enhance the user's experience and satisfaction building Laravel applications.
3
4
4
5
## Foundational Context
5
-
This project is a Laravel app and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure we abide by these specific packages & versions.
6
+
This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions.
- You must follow all existing code conventions used in this project. When creating or editing a file, check sibling files for the correct structure, approach, naming.
18
-
- Use descriptive names. For example, `isRegisteredForDiscounts` not `discount()`.
19
-
- Check for existing components to reuse before writing one anew.
18
+
- You must follow all existing code conventions used in this application. When creating or editing a file, check sibling files for the correct structure, approach, naming.
19
+
- Use descriptive names for variables and methods. For example, `isRegisteredForDiscounts`, not `discount()`.
20
+
- Check for existing components to reuse before writing a new one.
20
21
21
22
## Verification Scripts
22
23
- Do not create verification scripts or tinker when tests cover that functionality and prove it works. Unit and feature tests are more important.
23
24
24
-
## Project Structure and Architecture
25
-
- Stick to existing directory structure - no new base folders without approval.
26
-
- No dependency changes without approval.
25
+
## Application Structure & Architecture
26
+
- Stick to existing directory structure - don't create new base folders without approval.
27
+
- Do not change the application's dependencies without approval.
27
28
28
29
## Replies
29
30
- Be concise in your explanations - focus on what's important rather than explaining obvious details.
- We are using PHPUnit for testing. All tests must be written as PHPUnit classes.
3
+
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes.
4
4
- If you see a test using "Pest", convert it to PHPUnit.
5
5
- Every time a test has been updated, run that singular test.
6
-
- When the tests relating to your feature are passing, ask the user if they'd like to also run the entire test suite to make sure everything is still passing.
7
-
- Tests should test all of the unhappy paths, happy paths, and weird paths.
6
+
- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.
7
+
- Tests should test all of the happy paths, failure paths, and weird paths.
8
8
- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files, these are core to the application.
9
9
10
-
11
-
# Running tests
10
+
### Running Tests
12
11
- Run the minimal number of tests, using an appropriate filter, before finalizing.
13
-
- Run all tests: `php artisan test`.
14
-
- Run all tests in a file: `php artisan test tests/Feature/ExampleTest.php`.
15
-
- Filter on particular test name: `php artisan test --filter=testName` (recommended after making a change to a related file).
12
+
- To run all tests: `php artisan test`.
13
+
- To run all tests in a file: `php artisan test tests/Feature/ExampleTest.php`.
14
+
- To filter on a particular test name: `php artisan test --filter=testName` (recommended after making a change to a related file).
- Use Tailwind CSS classes to style HTML, check and use existing tailwind conventions within the project before writing your own.
2
-
- Offer to extract repeated patterns into components that match the project's conventions (i.e. Blade, JSX, Vue, etc..)
3
-
- Think through class placement, order, priority, and defaults - remove redundant classes, add classes to parent or child carefully to limit repetition, group elements logically
1
+
## Tailwind Core
4
2
5
-
## Spacing
6
-
- Use gap utilities for spacing, don't use margins
3
+
- Use Tailwind CSS classes to style HTML. Check and use existing Tailwind conventions within the project before writing your own.
4
+
- Offer to extract repeated patterns into components that match the project's conventions (i.e. Blade, JSX, Vue, etc.).
5
+
- Think through class placement, order, priority, and defaults - remove redundant classes, add classes to parent or child carefully to limit repetition, and group elements logically.
6
+
7
+
### Spacing
8
+
- When listing items, use gap utilities for spacing, don't use margins.
7
9
@verbatim
8
-
<code-snippetname="Valid Flex gap spacing example"lang="html">
10
+
<code-snippetname="Valid Flex Gap Spacing Example"lang="html">
9
11
<divclass="flex gap-8">
10
12
<div>Superior</div>
11
13
<div>Michigan</div>
@@ -14,5 +16,5 @@
14
16
</code-snippet>
15
17
@endverbatim
16
18
17
-
## Tailwind Dark Mode
19
+
### Dark Mode
18
20
- If existing pages and components support dark mode, new pages and components must support dark mode in a similar way, typically using `dark:`.
Copy file name to clipboardExpand all lines: .ai/volt/core.blade.php
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
- This project uses Livewire Volt for interactivity within its pages. New pages requiring interactivity must also use Livewire Volt. There is documentation available for it.
2
-
- Volt is an elegantly crafted **functional** API for Livewire that supports single-file components, allowing a component's PHP logic and Blade templates to coexist in the same file
3
-
- **Single-File Components**: Livewire Volt allows PHP logic and Blade templates in one file. Components use the `@volt` directive.
4
-
- You must check existing Volt components to find out if they're functional or class based. If you can't detect that, ask the user which they prefer before writing a Volt component.
1
+
## Livewire Volt
5
2
3
+
- This project uses Livewire Volt for interactivity within its pages. New pages requiring interactivity must also use Livewire Volt. There is documentation available for it.
4
+
- Volt is an elegantly crafted **class-based** and **functional** API for Livewire that supports single-file components, allowing a component's PHP logic and Blade templates to co-exist in the same file
5
+
- Livewire Volt allows PHP logic and Blade templates in one file. Components use the `@volt` directive.
6
+
- You must check existing Volt components to determine if they're functional or class based. If you can't detect that, ask the user which they prefer before writing a Volt component.
To get started, define an anonymous class that extends Livewire\Volt\Component. Within the class, you may utilize all of the features of Livewire using traditional Livewire syntax:
34
35
35
36
@verbatim
@@ -53,7 +54,7 @@ public function increment()
53
54
@endverbatim
54
55
55
56
### Testing Volt & Volt Components
56
-
- Use the existing location if tests already exist, otherwise fallback to `tests/Feature/Volt`
57
+
- Use the existing directory for tests if it already exists. Otherwise, fallback to `tests/Feature/Volt`.
57
58
58
59
<code-snippetname="Livewire Test Example"lang="php">
59
60
use Livewire\Volt\Volt;
@@ -67,7 +68,7 @@ public function increment()
67
68
</code-snippet>
68
69
69
70
@verbatim
70
-
<code-snippetname="Volt component test using Pest"lang="php">
71
+
<code-snippetname="Volt Component Test Using Pest"lang="php">
0 commit comments