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

72 as a user i can declare actions as children of a resource component #73

Conversation

sgobotta
Copy link
Member

@sgobotta sgobotta commented Jan 30, 2019

This PR provides:

  • Support for writing Views for a Resource as components in the Vue template.
  • Resource component refactor
  • Composer components creation. A composer acts as a wrapper component for a Resource or a View (List, Show, Create, Edit). It's goal is to receive those properties meant to be sent to a component, pre-process them, and use them as the context of a new VNode. This VNode is created using the render callback params (createElement and context).
  • Refactored Resource unit test

Closes #72
Depdends on #70

…ation attributes:

+ A new alias is defined in vue.config.js and jest.config.js : @handlers
+ The error constants now use the templates to build error messages
+ Renames some prop names
+ List of articles in demo was moved to an articles components directory
+ A user can now declare the show view as a component of a Resource slot
+ Implemented a composer for the core Show component
+ Updated the binding utils to send the right props to the user Show component
+ Show core view has been refactored to use the fetchEntity function
+ Updated articlesList in the demo App
+ A user can now define an Edit view as a child of Resource
+ An Edit component Composer has been implemented
+ Created new Edit component for the Articles App demo
+ Updated the edit binding utils
+ Refactored calls to the store using the store utils
+ Resource accepts Create components with fields declared in a template
+ Creates a new component for Articles creation
+ App uses the new component for the create slot
+ Refactors the binding utils in the create function
…ies data

+ refactored the create function in the binding utils
+ Creates a composer function inside Actions
+ Refactors the List, Show, Create and Edit Composers
+ The compose functions for each view have been removed
+ refactors the compose function usage, the 'view' property was removed
+ The edit and show tests have been updated to visit the view directly, without passing from list
+ va.fetchEntity function has been applied to the Magazines view components
+ The cypress server utils have been slightly modified to avoid status 500 errors
@estefi-prieto estefi-prieto merged commit b308d22 into develop Feb 4, 2019
Current Tasks automation moved this from Needs review to Done Feb 4, 2019
@sgobotta sgobotta deleted the 72-as-a-user-i-can-declare-actions-as-children-of-a-Resource-component branch February 4, 2019 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Current Tasks
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants