You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dianshang-qianduan/docs/superpowers/specs/2026-07-29-student-task-hea...

2.0 KiB

Student Task Header Removal Design

Goal

Remove the workbench-level Training Task / 任务实训 heading and its requirement description from every student training page, while retaining file download, outcome export, step navigation, step content, persistence, and submit/reset behavior.

Scope

Only Vue views reachable through student routes are included. Teacher, school-admin, and platform-admin pages are excluded.

Design

Each affected page will use an actions-only workbench header:

  • Delete the heading eyebrow, 任务实训 heading, and requirement description markup.
  • Keep TrainingMaterialButton and the existing export button unchanged.
  • Add an actions-only header class that right-aligns the retained actions, removes the now-empty divider, and reduces the bottom gap.
  • Do not change task configuration, API calls, step state, module selection, draft persistence, export payloads, save, submit, or reset behavior.

Implementation Boundaries

Shared templates are changed once so their student-route consumers inherit the behavior:

  • src/views/training/GenericTrainingPage.vue for generic foundation and demand tasks.
  • src/views/product/components/ProductStandardTrainingPage.vue for requirements, hardware cost, release-channel evaluation, and promotion tasks.

Direct student training views are updated in place:

  • Foundation: new-product-survey.vue, product-development-factors.vue.
  • Demand: index.vue, environment.vue, people.vue, consumer-behavior.vue, consumer-scenario.vue, feature-conversion.vue.
  • Product: index.vue, price.vue, differentiation.vue, structure.vue, after-sales-service.vue.
  • Channel: index.vue, supplier.vue.
  • Assessment: diagnosis.vue, optimization.vue.

Verification

The static regression test will enumerate every direct/shared student training implementation and assert that the heading/description markup is absent while TrainingMaterialButton remains. The production build (npm run build:prod) must complete successfully.