Skip to content

Refactor device info docs and reorganize view section - #96

Merged
oblomov-dev merged 6 commits into
mainfrom
claude/laughing-ramanujan-TCi3v
May 26, 2026
Merged

Refactor device info docs and reorganize view section#96
oblomov-dev merged 6 commits into
mainfrom
claude/laughing-ramanujan-TCi3v

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Summary

This PR restructures the documentation for device capabilities and view definitions, moving content to better locations and updating examples to use the modern client->get() API instead of deprecated custom controls.

Key Changes

  • Device Info Documentation: Completely rewrote docs/cookbook/device_capabilities/info.md to document the current approach using client->get() with sub-structures (s_device, s_ui5, s_focus, s_scroll) instead of the deprecated info_frontend custom control. Replaced the old example class with modern code snippets showing how to access device, UI5, focus, and scroll information.

  • View Documentation Reorganization:

    • Removed docs/cookbook/view/overview.md (standalone file)
    • Merged its content into docs/cookbook/view/definition.md as new sections: "Sending a View", "Helper Class", "Where to Look for Controls", and "Choosing a Control"
    • Updated the sidebar navigation to point directly to definition.md instead of overview.md
  • New Audio Documentation: Added docs/cookbook/device_capabilities/audio.md with examples of playing sound files via the play_audio frontend event.

  • Navigation Updates:

    • Updated sidebar config to remove the "Overview" link and make "Definition" the primary view section entry point
    • Renamed "Expression Binding" to "Expressions" for brevity
    • Renamed "Translation, i18n" to "Translation"
    • Added "Soft Keyboard" to browser interaction section
  • Minor Title Updates: Capitalized "Follow-up Action" in the obsolete section heading for consistency.

Implementation Details

The device info refactor emphasizes the modern, simpler approach where frontend state is automatically shipped with every roundtrip via client->get(), eliminating the need for custom controls and explicit event binding. Code examples now demonstrate accessing nested structures directly rather than using two-way binding patterns.

https://claude.ai/code/session_01XTxcGzupMMYBibHdcpHtRH

claude added 6 commits May 26, 2026 14:29
- Move soft_keyboard.md from device_capabilities to browser_interaction
- Add new audio.md in device_capabilities with the Play Sounds content
  copied from barcode_scanning.md
- Update sidebar config and fix internal link
Replace the obsolete info_frontend custom control with documentation for
the s_device, s_ui5, s_focus, and s_scroll fields available directly on
client->get( ).
Reference the new client->get( ) sub-structures (s_device, s_ui5,
s_focus, s_scroll) and link to the Info page.
Absorb the UI5 1:1 framing, the 'Where to Look for Controls' pointers,
and the 'Choosing a Control' table into definition.md. Delete the
separate overview page and update the sidebar.
- Expression Binding -> Expressions
- Translation, i18n -> Translation
- follow_up_action -> Follow-up Action

H1 titles updated to match. Body references to the underlying UI5
concept and the obsolete method name are kept verbatim.
@oblomov-dev
oblomov-dev merged commit 992b040 into main May 26, 2026
@oblomov-dev
oblomov-dev deleted the claude/laughing-ramanujan-TCi3v branch May 26, 2026 14:59
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.

2 participants