- Harness: kintex-mobile-dev agent + kintex-mobile-orchestrator skill (WISE mobile ref, Stitch-first design rule, dual app targets B2B/B2C) - design.md v2.1: full 84-screen inventory (web 51 / admin 10 / public 8 / mobile 15) with Stitch prompts incl. ticketing (SCR-P7/P8, M14/M15) - PLANNING v3.1: unified account + split signup tracks (2FA required for staff, light signup/guest for visitors), one codebase / two app targets - Deliverables: dev plan (21s), user/operator/developer guides (17/14/15s), program spec (44s, 65 programs, 8 flowcharts), DA (DB design 14s + table spec xlsx 35 tables/299 cols) - Benchmark: ticketing-app-benchmark.md (7 apps) -> IMPLEMENTATION_BACKLOG Phase F (14 items) - Stitch: 23 generated screens saved (mobile 10, admin 6, web core 5, ticket 2) - mobile/: Expo scaffold (SDK 51, expo-router, secure store JWT) - frontend: SCR-13~17 QA fixes, icons.tsx, kintexEvents, V10 seed migration - ci/: KINTEX CI logo assets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
30 lines
956 B
TypeScript
30 lines
956 B
TypeScript
/*
|
|
* D-데이 칩 — 마감 역산(design.md §1-4). D-3 이내 warning, 초과 error.
|
|
*/
|
|
import React from 'react';
|
|
import { StyleSheet, Text, View } from 'react-native';
|
|
import { colors, radius, type } from '../theme';
|
|
|
|
export function DdayChip({ dday }: { dday: number }) {
|
|
const overdue = dday < 0;
|
|
const imminent = dday >= 0 && dday <= 3;
|
|
const bg = overdue ? colors.error : imminent ? colors.warning : colors.primary100;
|
|
const fg = overdue || imminent ? colors.white : colors.primary700;
|
|
const label = overdue ? `마감 +${Math.abs(dday)}` : `D-${dday}`;
|
|
return (
|
|
<View style={[styles.chip, { backgroundColor: bg }]}>
|
|
<Text style={[styles.text, { color: fg }]}>{label}</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
chip: {
|
|
alignSelf: 'flex-start',
|
|
paddingHorizontal: 10,
|
|
paddingVertical: 3,
|
|
borderRadius: radius.pill,
|
|
},
|
|
text: { fontSize: type.caption.fontSize, fontWeight: '700' },
|
|
});
|