Follow-up to #434
-
dashboard/model_manager.py: the AmSC logo image is duplicated once inside a link and once outside it. A tiny helper or single image with conditional link behavior would make this section smaller.
-
dashboard/model_manager.py: AMSC_MLFLOW_MODEL_URL_EXPR duplicates model_type_dict as a Vue ternary. Build the model URL server-side with build_mlflow_model_name() and store it in state, then bind href directly. That removes drift risk and cuts down the expression.
Main advantage: The model URL now has one source of truth.
Follow-up to #434
dashboard/model_manager.py: the AmSC logo image is duplicated once inside a link and once outside it. A tiny helper or single image with conditional link behavior would make this section smaller.
dashboard/model_manager.py:
AMSC_MLFLOW_MODEL_URL_EXPRduplicatesmodel_type_dictas a Vue ternary. Build the model URL server-side withbuild_mlflow_model_name()and store it in state, then bindhrefdirectly. That removes drift risk and cuts down the expression.