feat: v0.6.0 — demo parity & production hardening#6
Merged
Conversation
… demos, telemetry) - All 18 standard component types have Builder helpers: date_time_input/3, choice_picker/3, icon/3, video/3, audio_player/3, list/3, tabs/3 (was 11, now 18) - Debug renderer supports all 18 standard component types (was 7): TextField, Slider, DateTimeInput, ChoicePicker, Image, Icon, Video, AudioPlayer, List, Tabs, Modal - 5 demo providers in demo/ directory: Component Gallery, Data Binding, Form Validation, Push Streaming, Custom Component - DemoRouter with query param routing (?demo=gallery|binding|form|push|custom) - Telemetry instrumentation: [:a2ui, :socket, :init|:action|:terminate], [:a2ui, :sse, :init|:event] - Graceful error handling: provider crashes in handle_action/2, handle_info/2, handle_error/2 caught and logged - Encoder: add plain map support in encode_property_value/1 (fixes FunctionClauseError on ChoicePicker options) - Endpoint passes query params in provider_opts for WS and SSE - 232 tests, 0 failures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Complete Builder helpers, debug renderer, demo providers, telemetry instrumentation, and graceful error handling.
Changes
Builder
date_time_input/3,choice_picker/3,icon/3,video/3,audio_player/3,list/3,tabs/3Debug renderer
priv/static/index.html(was 7): TextField, Slider, DateTimeInput, ChoicePicker, Image, Icon, Video, AudioPlayer, List, Tabs, ModalDemos
demo/directory: Component Gallery, Data Binding, Form Validation, Push Streaming, Custom ComponentDemoRouterwith query param routing (?demo=gallery|binding|form|push|custom)Telemetry
[:a2ui, :socket, :init],[:a2ui, :socket, :action],[:a2ui, :socket, :terminate]events in Socket[:a2ui, :sse, :init],[:a2ui, :sse, :event]events in SSEError handling
handle_action/2,handle_info/2, andhandle_error/2are caught and logged instead of crashing the socket processBug fix
Encoder.encode_property_value/1: add plain map support (fixesFunctionClauseErroron ChoicePicker options like%{label: "Red", value: "red"})Other
A2UI.Endpointpasses query params inprovider_optsfor both WS and SSE routesdemo_server.exsrewritten withDemoRouterdelegating to demo providersTests
232 tests, 0 failures (was 220)