Skip to content

Expand AxoCmmtAs Blazor view with full drive task surface#1143

Open
PTKu wants to merge 9 commits into
devfrom
update-ui-ux-festo-drive
Open

Expand AxoCmmtAs Blazor view with full drive task surface#1143
PTKu wants to merge 9 commits into
devfrom
update-ui-ux-festo-drive

Conversation

@PTKu
Copy link
Copy Markdown
Contributor

@PTKu PTKu commented May 16, 2026

Summary

  • Wraps CommandsOperateContent / CommandsMonitorContent of AxoCmmtAsView in mirrored <Tab>+<TabPage> (12 tabs): PowerAndSafety, Home, SetPosition, Override, MoveAbsolute, MoveRelative, MoveAdditive, Velocity, TorqueControl, ParameterAccess, DigitalIO, ExplicitReads.
  • Wires previously-unrendered inherited AxoDrive tasks: AxoReset_Task, RestoreTask, AxoWrite/ReadParameter (int / real / bool), AxoWrite/ReadDigitalOutput, AxoReadDigitalInput, AxoReadActualPosition/Velocity/Torque, AxoReadStatus, AxoReadMotionState, AxoReadAxisInfo.
  • Header gains State / ScalingReadState / Debug badges (honor [ComponentHeader] attributes on the twin).
  • Layout rule applied: max 2 Axo*TaskCommandView per row, paired semantically (Power+Reset, Stop+Halt, Write+Read of same type, etc.).
  • ConfigurePolling() now polls AxisType (fixes silent unit-resolution bug — PositionUnit / VelocityUnit accessors read .Cyclic without polling), plus State / ScalingReadState / Debug for the new badges.
  • 24 new entries in Resources/Strings.resx covering the added sections, pair labels and tab titles.

Test plan

  • dotnet build src/components.festo.drives/src/AXOpen.Components.Festo.Drives.blazor/AXOpen.Components.Festo.Drives.blazor.csproj passes (0 errors verified locally).
  • Showcase Blazor app: open a page hosting an AxoCmmtAs; verify Header badges populate (DriveState, Position/Velocity/Torque tiles, State/ScalingReadState/Debug).
  • In Operate (manual) mode, click through every tab; verify each task button triggers the matching task, inputs accept values, no two task buttons land on the same row beyond pair count.
  • In Monitor mode, verify every tab mirrors Operate (same tabs, order, content) with *StatusView widgets and Display controls.
  • Verify Position/Velocity unit labels in the header resolve to mm/mm/s or deg/deg/s (proves the AxisType poll fix).
  • Verify all 24 new resx keys render localized strings (no [Missing: ...] placeholders).

PTKu added 9 commits May 16, 2026 12:45
- Header gains State / ScalingReadState / Debug badges (honor [ComponentHeader]).
- CommandsOperate / CommandsMonitor now wrap content in <Tab>+<TabPage> (mirrored):
  PowerAndSafety, Home, SetPosition, Override, MoveAbsolute, MoveRelative,
  MoveAdditive, Velocity, TorqueControl, ParameterAccess, DigitalIO, ExplicitReads.
- Wire previously unrendered inherited AxoDrive tasks: AxoReset, RestoreTask,
  AxoWrite/ReadParameter (int/real/bool), AxoWrite/ReadDigitalOutput,
  AxoReadDigitalInput, AxoReadActualPosition/Velocity/Torque, AxoReadStatus,
  AxoReadMotionState, AxoReadAxisInfo.
- Layout rule: max 2 AxoTask buttons per row, paired semantically
  (Power+Reset, Stop+Halt, Write+Read of same type, etc.).
- ConfigurePolling adds AxisType (fixes silent unit-resolution bug where
  PositionUnit/VelocityUnit accessors read .Cyclic without polling), plus
  State / ScalingReadState / Debug for header badges.
- Resources/Strings.resx: 24 new localization keys for the new sections,
  pair labels and tab titles.
Refactor toggle task button to mirror AxoTask layout for visual
consistency when placed side-by-side in component views.

- Same button shell: flex items-center justify-between, gap-2
- Left slot: filled circle (ON) / hollow circle (OFF) matching the
  AxoTask state-circle vocabulary
- Center: uppercased "Description -- StateDescription" label
- Right slot: invisible size-5 spacer when HideRestoreButton=false to
  preserve width parity with AxoTask's reset icon in row-of-2 grids
- State-driven color: btn-success (ON), btn-info (OFF), btn-inactive
  blur-[1px] (disabled), matching AxoTask color grammar
- Added Class/Style parameters and aria-pressed for parity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant