Repository navigation
Template enhancements: CI, stricter checks, typed i18n/routes, settings tab - #12
Merged
Merged
Conversation
The props used React Native's ViewProps style, which stops type-checking against @tamagui/tailwind's View once expo/types (web CSS) is loaded by expo-env.d.ts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
typegen runs expo customize tsconfig.json, which writes .expo/types without starting Metro, so CI and the pre-commit hook check hrefs too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Turns on oxlint's suspicious and perf categories and makes no-explicit-any an error, matching AGENTS.md. Rules that only flag the new JSX transform, StatusBar's string style or WatermelonDB's _getRaw are off; tabBarIcon render props are allowed. Fixes what the new rules found: styledNative no longer takes any, layouts share a stable default safe-area edge list, the locale script uses toSorted, and system theme tracking is one effect driven by useColorScheme instead of a duplicate Appearance listener. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
strict already sets the flags that were listed one by one. Adds noUncheckedIndexedAccess, noFallthroughCasesInSwitch and noImplicitOverride, and fixes the index reads and overrides they flag. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Augments i18next's CustomTypeOptions with the en resources, so t() keys and namespaces are checked at compile time. Date utilities take keys of the date namespace instead of any string. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
RevenueCat and Sentry read their keys from src/utils/env.ts, which also exposes the build variant and app version. .env.example documents SENTRY_AUTH_TOKEN for source map uploads. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
initializeRevenueCat waits for a customer-info request, which kept the splash up on slow networks. It now runs in the background and the customer-info listener sets premium when the answer arrives; only i18n gates the first render. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Both placements pointed at "settings", so the limit paywall could never show a different offering. Also reads error messages without a cast. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
The wrapper duplicated MMKV's API under two names each (getItem and getString, remove and removeItem) and swallowed every error. Callers now use MMKV directly; the JSON helpers take a StorageKey and log unparsable values. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
The hook spread settings$.get() before running the selector, so every selector subscribed to the whole store and re-ran on any change. Selectors now read through per-field getters; calling the hook without a selector still tracks everything. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Waits for databaseReady, subscribes to the query and cleans up on unmount, so screens don't repeat that wiring. Clauses are compared by value, so inline Q calls don't resubscribe every render. useNotes now uses it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Destructuring the methods off the instance lost `this`, so calling the exported warn() or error() threw. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
…rumbs - environment comes from the build variant - performance traces are sampled per variant (all of preview, 20% of production, none in development) - expoRouterIntegration names navigation spans after routes - logger warnings and errors become breadcrumbs through the log sink added to @/utils/logger in the previous commit, so reports carry context even though release builds keep the console quiet release is left to the native default so source maps uploaded by the Expo plugin keep matching. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Uses @expo/ui FieldGroup rows for theme (match system, dark mode), language, text size and date format, the RevenueCat upgrade and restore actions, and the app version. Paywall results now report whether the user cancelled, so the screen only shows a toast for real failures. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012DRYTsbYhbXbbVqgg3dnYn
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.
Template improvements from a review: CI, stricter checks, typed i18n and routes, a settings tab, and fixes to startup, Sentry, storage and state tracking.
Tooling
master.anyand runs thesuspiciousandperfcategories. Rules that only flag the new JSX transform, StatusBar's stringstyleor WatermelonDB's_getRaware off.strictalready sets and enablesnoUncheckedIndexedAccess,noFallthroughCasesInSwitchandnoImplicitOverride.bun run typegen(expo customize tsconfig.json) writes the route types without starting Metro.typecheckruns it first, so CI and the pre-commit hook check hrefs too.CustomTypeOptionscomes from the English resources, so a misspelledt()key is a compile error.Runtime
premium.environment. Traces are sampled per variant (all of preview, 20% of production).expoRouterIntegrationnames navigation spans after routes, and logger warnings and errors become breadcrumbs.releasestays at the native default so uploaded source maps keep matching.src/utils/env.tsholds the runtime config..env.examplelistsSENTRY_AUTH_TOKEN.useQueryhook waits fordatabaseReady, subscribes and cleans up. Clauses are compared by value.useNotesuses it.feature_limitplacement. Paywall results say whether the user cancelled.UI
uiicon font) built from@expo/uiFieldGrouprows. It covers theme (match system, dark mode), language, text size, date format, upgrade and restore purchases, and the app version.Pressable.Fixes found along the way
log/debug/info/warn/errorexported from@/utils/loggerlostthisand threw when called.contentContainerStylestopped type-checking onceexpo-env.d.tsloadsexpo/types.Testing
bun install --frozen-lockfile,bun run verify:locales,bun run lintandbun run typecheckall pass.Follow-ups
feature_limitplacement in the RevenueCat dashboard. Until then the limit paywall falls back to the current offering.useResponsiveTypography, which no screen uses yet.Generated by Claude Code