Repository navigation
Add Markets app - #74
Merged
Merged
Conversation
Stock indices (S&P 500, Nasdaq, Dow Jones, DAX, FTSE 100, Nikkei 225) and Bitcoin, Ethereum and Solana, fetched through FMC Companion's http.get from Yahoo Finance and CoinGecko. Canvas app with a crown list (tap to pin), a page next to the watch face with the pinned instrument big, and a widget card. Calls go one at a time with fresh ids; ASK, DENIED and a silent phone are shown, the last quotes are cached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Swiping away from the page starts with a TOUCH_DOWN on a row, which pinned that row (and rewrote the widget) before the loader took the swipe. A tap now counts on TOUCH_UP within 600 ms, at the TOUCH_DOWN position (UP's x/y are unreliable); PAUSE in between drops it. Checked in the browser emulator (patched 1.0.0.73-wp2.14, App Loader 2026-11-30): a swipe across the Bitcoin row leaves S&P 500 pinned on the widget card, and a tap on the row still pins Bitcoin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stock card fits about 17 characters per line and wraps and cuts a wider one (seen in the emulator with another app's card). "BTC 59,105 -0.27%" and "Nikkei 225 +1.23%" were too wide. Every line now stays within 15 characters: the title falls back to the short name (N225, DOW) or drops the change, the second line keeps the price and drops the change. A test covers every pinned instrument for prices up to 9,999,999.99. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
@zeezooX thanks for the pr. Maybe it would be better to use native font, wdyt? |
Contributor
Author
I'll work on it. I thought the native fonts won't work on the simulator. |
…ter font) cmf-watch-sdk 2018e1a..b1128d6: - cmf-wp2-ui font: Inter Medium 20 px for canvas apps, baked into the app (~10 KiB, any loader, in the simulator), plus text::dots dot-matrix text, draw::scroll_bar (the stock lists' round scroll bar), ask and logo - app files on NAND (file_read/write/delete) and the speaker (audio_*): loader of 2026-11-21; the mic (mic_*) and the stock emoji: loader 6 - the loader-7 status bar: the time and GPS bars centred at y = 4 over every app - the Watch 3 Pro loader port (in progress), stub 11 (128 KiB loader budget), release tooling AGENTS.md and the watch-app skill: the new calls and the loaders they need, canvas apps draw text in cmf_wp2_ui::font, titles stay clear of the status bar. All 27 apps build and pass on b1128d6 (host tests, scripts/store build and check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every text on the menu, the page, the status line, the Refresh pill and the allow/denied help is now Inter (cmf_wp2_ui::font) instead of the 16 px cell font. Menu rows put the name and the right-aligned price on line 1 and the arrow and change, right-aligned under the price, on line 2; an old quote's time sits on line 2 left. The page's pinned price is dot-matrix (text::dots, commas and points set tight), pitch 6 or 5 by width, dots two thirds of the pitch. The app's own scroll track is replaced by draw::scroll_bar. Title and page name stay clear of the status bar. Behaviour, touch handling, hit areas and the widget text are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
All text is now in Inter, including the list, status line, buttons and the allow screen. |
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.
Stock indices (S&P 500, Nasdaq, Dow Jones, DAX, FTSE 100, Nikkei 225) and Bitcoin, Ethereum and Solana, fetched through FMC Companion's http.get from Yahoo Finance and CoinGecko. Canvas app with a crown list (tap to pin), a page next to the watch face with the pinned instrument big, and a widget card. Calls go one at a time with fresh ids; ASK, DENIED and a silent phone are shown, the last quotes are cached.