Skip to content

Bring the hardware catalogue and the wizard into the new design without changing a command it prints #215

Description

@openipc-ai

Part of #206 (Phase 2). Depends on #213 for the badge treatment.

Why

June's list ends with "hardware browser restyle" and it is the largest item. All seven views under app/views/cameras/socs/ (index, show, update, _soc, _stages, hi3536dv100_is_weird, sigmastar_nand_is_weird) render in the old container, styled by pages/_hardware.scss, which #121 carried over verbatim from before the relaunch. Every commit since has changed what the wizard does (chip and layout split, MAC handling, backup naming, locale in the path) and none has changed how it looks. It is the page a visitor reaches from "Hardware", the second entry in the navbar, and it is the one that still looks like the old site.

What to change

  • The catalogue (index, which also serves featured, per-vendor and full-list): full-bleed, the vendor tabs and the SoC table rebuilt on the new tokens, status badges from the stage-badge component, the featured highlight kept.
  • The SoC page and the wizard (show, update, the two special-case pages): full-bleed; the form, the step layout and the command blocks restyled with the terminal component the relaunch pages use. The command text is produced by InstallationHelper and the partials it renders; this issue does not touch a helper or a command partial.
  • pages/_hardware.scss rewritten; its comment about table.binaries stays true (nothing is reintroduced).
  • Acceptance is test/controllers/socs_controller_test.rb (1,203 lines, the behavioural spec of the wizard's output) passing with no edit to it. If a restyle needs an assertion changed, the restyle is wrong.
  • Screenshots of the catalogue, one SoC page and the wizard at each step, in three locales, before any PR.

Done means

  • All seven views full-bleed; socs_controller_test.rb green and absent from the diff.
  • The diff has no change under app/helpers/installation_helper.rb or the command partials.
  • Screenshots attached here before the PR is opened.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions