This file is the single source for everything a visitor can see or feel in the end of experience rating card. Issue #565 is the design. This file is the contract.
Each platform writes its own renderer in its own toolkit (QML, SwiftUI, HydraUi, Unity uGUI). No UI code is shared. The copy, the colors, the geometry, the timings and the behavior are shared. Change this file first, then change one renderer per commit.
| Element | String |
|---|---|
| Question | How was it? |
| Skip button | Skip |
| Confirmation | Thanks |
One string each. There are no variants, no translations and no second question. There is no comment box and no email field.
| Role | Value |
|---|---|
| Scrim | #000000 at 50% alpha (#80000000) |
| Card background | #18181b |
| Filled star | #eab308 |
| Empty star | #3f3f46 |
| Text | #fafafa |
| Skip button text | #a1a1aa |
The card is 480 x 280 at 1x. It is centred on the screen. The scrim covers the full screen.
One row of five stars sits below the question. A star is 72 x 72 at 1x. The gap between two stars is 12. The row is centred.
The question sits 40 above the star row. The Skip button sits 32 below it.
A platform scales all of these values by one factor. The Quest uses about 2.3x. A head with a touch screen must keep each star at 64 or more in device independent units, which is the minimum tap target.
A five point star. The outer points touch the 72 x 72 box. The inner radius is 0.382 of the outer radius, which is the classic pentagram ratio (1 over phi squared). The first point is at the top, and the following points are every 36 degrees.
Note: issue #565 says the shape is "the SVG path already shipped in inject.go". There is
no such path. The browser widget in hydraneckwebrtc/internal/proxy/inject.go draws the
Unicode character U+2605 BLACK STAR in the page font. The geometry above is the
definition for every renderer that draws its own shape. A renderer that has a text layer
and no mesh layer can draw U+2605 instead.
| Event | Value |
|---|---|
| Auto dismiss | 10 s with no input |
| Confirmation hold | 1200 ms on Thanks, then dismiss |
| Countdown shown | No |
All timers run on wall clock time. A renderer in a game engine must not use scaled game time, because an experience that pauses its clock at the end would freeze the card.
Thanks.Skip dismisses at once and submits no score.Skip.The wire field score is 1 to 10. A five star card sends stars * 2 and sets
score_scale: "5-star". The browser widget keeps half star precision and sets
score_scale: "10-half-star". No response sends score: null and the record is still
submitted.
| Platform | Renderer | Notes |
|---|---|---|
| Flatscreen kiosk | QML in hydraheadflatscreen + hydra-experiencenet |
#581 |
| iPad | SwiftUI in hydraheadipad |
#582 |
| Quest | HydraUi panel in hydraheadquest |
#583, flat panel only |
| Browser | hydraneckwebrtc/internal/proxy/inject.go |
Already live, half star |
| Unity experience | unity/com.experiencenet.hydranps in this repo |
Built in code from this spec |
Each head testbook gets one step: compare the card against this file.