Skip to content

Commit 8275f11

Browse files
authored
Merge pull request #75 from Gustavinho/release/2.2.0
Release/2.2.0
2 parents d44e6a0 + b5aaf73 commit 8275f11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2424
-700
lines changed

.DS_Store

2 KB
Binary file not shown.

._github/workflows/laravel.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ php:
77

88
env:
99
jobs:
10-
- LARAVEL=7.0.* TESTBENCH=5.*
11-
- LARAVEL=8.0.* TESTBENCH=6.*
10+
- LARAVEL=7.* TESTBENCH=5.*
11+
- LARAVEL=8.* TESTBENCH=6.*
1212
global:
1313
- DB_CONNECTION=sqlite
1414
- DB_DATABASE=":memory:"
@@ -18,7 +18,7 @@ matrix:
1818
fast_finish: true
1919
exclude:
2020
- php: 7.2
21-
env: LARAVEL=8.0.* TESTBENCH=6.*
21+
env: LARAVEL=8.* TESTBENCH=6.*
2222

2323
branches:
2424
only:
@@ -35,11 +35,11 @@ before_install:
3535
- travis_retry composer self-update
3636
- rm -rf composer.lock
3737
- travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-update
38-
- if [ "$LARAVEL" = "8.0.*" ]; then composer require "laravel/legacy-factories" --no-update; fi;
38+
- if [ "$LARAVEL" = "8.*" ]; then composer require "laravel/legacy-factories" --no-update; fi;
3939
- cat composer.json
4040

4141
install:
42-
- travis_retry composer install --prefer-dist --no-interaction --no-dev --ignore-platform-reqs
42+
- travis_retry composer install --prefer-dist --no-interaction --ignore-platform-reqs
4343

4444
script:
4545
- phpunit --testdox

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## [2.2] - 2021-03-01
4+
### Added
5+
- New list view
6+
- New detail view with
7+
- Default component
8+
- Default component customization
9+
- Multiple components
10+
- Actions
11+
- Feature to set the width for each column in the TableView
12+
- Documentation for the new detail view
13+
- New `attributes-list` component
14+
- New `layout` component
15+
16+
### Changed
17+
- The `title` action now is included as an attribute in the `a` tag for each action.
18+
- Internal refactors
19+
- Base `DataView` class with all the features to manage the data (filters, search, actions, pagination etc) on the table, grid, and list view.
20+
- Refactored actions feature to be reused as a trait
21+
- Refactored actions test to be reused as a trait
22+
23+
### Fixed
24+
- Bug with pagination and filters, the pagination was not being reset after a new search
25+
326
## [2.1] - 2021-01-10
427
### Added
528
- Option to customize which assets will be imported

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Laravel package to create beautiful common views like tables using only PHP code
2020
- [Views available](#views-available)
2121
- [Table view](#table-view)
2222
- [Grid view](#grid-view)
23+
- [List view](#list-view)
24+
- [Detail view](#detail-view)
2325
- [Contributing](#contributing)
2426
- [Roadmap](#roadmap)
2527

@@ -149,6 +151,17 @@ Dynamic grid view using card data, same as a TableView this view has features li
149151

150152
![](doc/grid.png)
151153

154+
### [List view](doc/list-view.md)
155+
156+
Dynamic list view with filters, pagination, search input, and actions by each item, it is useful for small screens, you can also customize the item compoment for each row as you need.
157+
158+
![](doc/list.png)
159+
160+
### [Detail view](doc/detail-view.md)
161+
Dynamic detail view to render a model attributes list with all the data you need, you can also customize the default component to create complex detail views and execute actions over the model is being used.
162+
163+
![](doc/detail.png)
164+
152165
## Contributing
153166

154167
Check the [contribution guide](CONTRIBUTING.md)
@@ -159,8 +172,6 @@ Laravel Views is still under heavy development so I will be adding more awesome
159172

160173
Here's the plan for what's coming:
161174

162-
- **New list view**
163-
- **New detail view**
164175
- **New form view**
165176
- **New layout view**
166177
- Add tooltips to actions buttons

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"require-dev": {
2222
"phpunit/phpunit": "7.0.*|8.5.*|9.5.*",
2323
"orchestra/testbench": "4.*|5.*|6.*",
24-
"laravel/legacy-factories": "^1.1"
24+
"laravel/legacy-factories": "^1.1",
25+
"spatie/laravel-ray": "^1.12"
2526
},
2627
"extra": {
2728
"laravel": {

0 commit comments

Comments
 (0)