View Components, App Context & Action Queries #13
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.
Overview
Gallery
CleanShot.2025-06-08.Sunday.at.3.42.12.Arc.mp4
Changes
Styles
Some temporary stylings applied so we can see components
Layout
Sets the values of most states using
setContext(). CallsHeader&Footerdirectly.Header
Shows an H1 app title and a button that toggles Dev Mode
Footer
Shows the current profile ID and dev mode status
Page
Queries the
viewvalue from usinggetContext()and renders the correct view componentView 1: Dashboard
Queries the Question DB to populate category tiles. If logged in, queries the Actions DB. Clicking a tile loads List view
View 2: List
Currently a placeholder that renders one list item. Clicking it directs to detail view. A back button reverts to Dashboard view
View 3: Details
Currently a placeholder containing a back button that reverts to List view
Dev Utils
Dev utilities to mock up List populations etc
Typing for UI data transfers
Random number generator
Summary
This PR is a bit smug