mernish / skyii

Starter Kit for Yii2
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Custom Gii templates #11

Open antick opened 7 years ago

antick commented 7 years ago

Improve the search form in custom Gii template. Should convert the boxes according to its data type. Same for the CRUD form.

Make improvements in the user interface for generating CRUD and model.

getState() in custom model generator needs to have a better name as it may conflict when someone has a model name of a state for "States and Country" specific stuff.

Need to create a custom Module generator. It will replace all the example saying "app" to "backend" or "frontend" since we are focused only on Advanced Template.

antick commented 7 years ago

These custom Gii templates can be converted in an extension for better usability.

Other suggestions that should be considered-

No need to ask a full class name for Module when creating a module in Gii. We can simply ask the name of the module and rest should be done automatically. We can give a user an option to edit these but will not ask user up front for submitting all these un-necessary information while creating modules. Once the module is generated successfully it asks for adding the module setting in a configuration. Need to improve the wording and let user specifically know in which file this change needs to be made. Since we are using the advanced template we can follow the specific structure. Need to think about the possibility of adding this configuration automatically without user's consent which makes things a little more smoother.

Custom migration generator with ability to create migrations in module folder from console and web.

Ability to create tables in Gii web just like phpmyadmin where input boxes for field types, names and other settings are used

A new interface for Gii or may be a replacement of it with new UI and functionality.

Create a migration folder and a sample migration when a module is created.

Create a command or UI to generate models for all created tables also create the CRUD for all tables at once.

antick commented 7 years ago

When a module is created, automatically add it in navigation or show instructions to the user on how to do it.

Ask user if they want to use created_at, updated_at, created_by and updated_by columns in generated code. Not doing this will throw an exception if they don't exist in a table.

Add cancel or back button on add/edit forms in crud.

Show time along with date in created at and updated at timestamp in crud generated lists.

antick commented 7 years ago

tinyint is not supported in yii2 so need to support this on our own. We can also create other missing methods in migration class.

Clicking on list button on record view page redirects to url/index. Right now we have to add this rule in url manager everytime we generate a crud. Need to figure out a way to do it automatically when a CRUD is generated or instruct user to do so.

Foreign key relation for a field should generate it's select box list automatically when generating crud.

Identify dob as date in crud.

Replace all short code tags to full in all gii templates.

Do not add "ID" suffix with labels if they are foreign key constraints.