tessl install tessl/pypi-flask-admin@1.6.0Simple and extensible admin interface framework for Flask
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.3x
Baseline
Agent success rate without this tile
66%
{
"context": "This criteria evaluates how well the engineer uses Flask-Admin's form generation and customization features to build a product catalog admin interface. The focus is on proper use of ModelView configuration attributes, form_args for field customization, form widgets, validators, and form_rules for layout organization.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ModelView inheritance",
"description": "ProductAdmin class inherits from flask_admin.contrib.sqla.ModelView to enable Flask-Admin's form generation capabilities",
"max_score": 10
},
{
"name": "Model scaffolding",
"description": "Product model is registered with Admin using admin.add_view(ProductAdmin(Product, db.session)), enabling automatic form generation from the SQLAlchemy model",
"max_score": 10
},
{
"name": "Field exclusion",
"description": "Uses form_create_rules or form_excluded_columns to exclude the created_at field from the create form",
"max_score": 10
},
{
"name": "Widget customization",
"description": "Uses form_widget_args to configure the description field as a textarea with rows=5 (e.g., form_widget_args = {'description': {'rows': 5}})",
"max_score": 15
},
{
"name": "Custom labels",
"description": "Uses form_args to set a custom label for the name field (e.g., form_args = {'name': {'label': 'Product Name'}})",
"max_score": 10
},
{
"name": "Field descriptions",
"description": "Uses form_args to add a description to the sku field (e.g., form_args = {'sku': {'description': 'SKU must be unique'}})",
"max_score": 10
},
{
"name": "Price validation",
"description": "Uses form_args with WTForms validators (e.g., NumberRange(min=0.01) or custom validator) to ensure price is greater than 0",
"max_score": 10
},
{
"name": "Stock validation",
"description": "Uses form_args with WTForms validators (e.g., NumberRange(min=0) or custom validator) to ensure stock_quantity is not negative",
"max_score": 10
},
{
"name": "Form layout rules",
"description": "Uses form_rules or form_create_rules with FieldSet objects to organize fields into three sections: 'Basic Information' (name, sku, category), 'Details' (description, price, stock_quantity), and 'Status' (is_active)",
"max_score": 15
}
]
}