feat: testkit T37-T39 for Timmy economic peer + fix mobile typecheck (Refs #45)
Add testkit coverage for the Timmy economic peer endpoints (issue #45): - T37: GET /api/identity/timmy — npub, pubkeyHex, zapCount shape assertions - T38/T39: POST /api/identity/vouch auth guards (no token / invalid token → 401) - Update TIMMY_TEST_PLAN.md with new test table rows - Renumber former FUTURE T37-T40 stubs to T40-T43 Fix pre-existing mobile typecheck error: move slideStyles declaration before the slides array in artifacts/mobile/app/onboarding.tsx to resolve TS2448/2454. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,19 @@ import { ONBOARDING_COMPLETED_KEY } from "@/constants/storage-keys";
|
||||
const C = Colors.dark;
|
||||
const { width: SCREEN_WIDTH } = Dimensions.get("window");
|
||||
|
||||
const slideStyles = StyleSheet.create({
|
||||
iconCircle: {
|
||||
width: 140,
|
||||
height: 140,
|
||||
borderRadius: 70,
|
||||
backgroundColor: C.surfaceElevated,
|
||||
borderWidth: 1,
|
||||
borderColor: C.border,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
|
||||
type Slide = {
|
||||
id: string;
|
||||
icon: React.ReactNode;
|
||||
@@ -158,19 +171,6 @@ export default function OnboardingScreen() {
|
||||
);
|
||||
}
|
||||
|
||||
const slideStyles = StyleSheet.create({
|
||||
iconCircle: {
|
||||
width: 140,
|
||||
height: 140,
|
||||
borderRadius: 70,
|
||||
backgroundColor: C.surfaceElevated,
|
||||
borderWidth: 1,
|
||||
borderColor: C.border,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
|
||||
Reference in New Issue
Block a user