Title: SettingsActivity: document ui_options label mapping for value-label row by bitcoin3us · Pull Request #7 · MicroPythonOS/docs · GitHub
Open Graph Title: SettingsActivity: document ui_options label mapping for value-label row by bitcoin3us · Pull Request #7 · MicroPythonOS/docs
X Title: SettingsActivity: document ui_options label mapping for value-label row by bitcoin3us · Pull Request #7 · MicroPythonOS/docs
Description: Summary Companion to MicroPythonOS#137 which makes SettingsActivity honour the (label, value) tuple in ui_options when rendering the row's value label. Adds: A new "Display Labels for ui_options" section to settings-activity.md covering the (label, value) tuple format, the initial-render + post-save behaviour, the fall-through for stale stored values, and tips for choosing labels vs values. A clarifying inline note on the ui_options description in both settings-activity.md and setting-activity.md so callers know the label is shown in the parent list row (not just inside the picker). A cross-reference from setting-activity.md to the new section. Why Before MPOS#137, a setting like: {"title": "Hero Image", "key": "hero_image", "ui": "radiobuttons", "ui_options": [("Lightning Piggy", "lightningpiggy"), ...]} …displayed "lightningpiggy" (the raw value, no space) in the row beneath the title, even though the picker correctly showed "Lightning Piggy". MPOS#137 fixes the framework; this doc PR explains the contract so framework users know to expect label-display (and what to do for stale values that no longer appear in ui_options). Test plan Markdown renders cleanly Docs site preview: confirm the new section anchor + cross-reference from setting-activity.md resolve Once MicroPythonOS#137 merges, verify the documented behaviour matches the framework
Open Graph Description: Summary Companion to MicroPythonOS#137 which makes SettingsActivity honour the (label, value) tuple in ui_options when rendering the row's value label. Adds: A new "Display Labels for ui_...
X Description: Summary Companion to MicroPythonOS#137 which makes SettingsActivity honour the (label, value) tuple in ui_options when rendering the row's value label. Adds: A new "Display Labels...
Opengraph URL: https://github.com/MicroPythonOS/docs/pull/7
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:af6a4d14-9432-02e3-a3cf-b1bb5f1aa2a0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9806:16DD22:13C4151:1B56388:6A4DE9E5 |
| html-safe-nonce | c91d181ccb6e5b77abde301b9b118a35e966b6ad5747c02f242c9082b97e55b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODA2OjE2REQyMjoxM0M0MTUxOjFCNTYzODg6NkE0REU5RTUiLCJ2aXNpdG9yX2lkIjoiMjcxNTU4MzI1MTgxMjgzNzg2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc46f1d4817e823f106fdc065345cea2eb531407c08b627c8f5e5565dc09960a |
| hovercard-subject-tag | pull_request:3677289935 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/MicroPythonOS/docs/pull/7/files |
| twitter:image | https://avatars.githubusercontent.com/u/115934595?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/115934595?s=400&v=4 |
| og:image:alt | Summary Companion to MicroPythonOS#137 which makes SettingsActivity honour the (label, value) tuple in ui_options when rendering the row's value label. Adds: A new "Display Labels for ui_... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/MicroPythonOS/docs git https://github.com/MicroPythonOS/docs.git |
| octolytics-dimension-user_id | 213598128 |
| octolytics-dimension-user_login | MicroPythonOS |
| octolytics-dimension-repository_id | 1003528243 |
| octolytics-dimension-repository_nwo | MicroPythonOS/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1003528243 |
| octolytics-dimension-repository_network_root_nwo | MicroPythonOS/docs |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width