Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ export default function CommandCenterScreen() {
const coveragePct = Math.round((observed / totalChecks) * 100);

return (
<ScreenContainer containerClassName="bg-[#F5F3EE]" safeAreaClassName="bg-[#F5F3EE]">
<ScreenContainer containerClassName="bg-[#F4F7FB]" safeAreaClassName="bg-[#F4F7FB]">
<ScrollView
contentContainerStyle={styles.scrollContent}
showsVerticalScrollIndicator={false}
>
<View style={styles.headerRow}>
<View>
<Text style={styles.kicker}>DROID COMMANDER // LOCAL MODE</Text>
<Text style={styles.kicker}>DROID COMMANDER // DEVICE OVERVIEW</Text>
<Text style={styles.wordmark}>Droid Commander</Text>
</View>
<View style={styles.offlinePill}>
<View style={styles.greenDot} />
<Text style={styles.offlineText}>OFFLINE READY</Text>
<Text style={styles.offlineText}>LOCAL MODE</Text>
</View>
</View>

<View style={styles.introRow}>
<View style={styles.introCopy}>
<Text style={styles.title}>Evidence before action.</Text>
<Text style={styles.title}>Clear signals.\nConfident decisions.</Text>
<Text style={styles.subtitle}>
A consent-first field instrument for learning how device posture can be measured and improved.
</Text>
Expand All @@ -68,7 +68,7 @@ export default function CommandCenterScreen() {

<View style={styles.postureCard}>
<View style={styles.postureTopRow}>
<Text style={styles.postureLabel}>HOST COVERAGE</Text>
<Text style={styles.postureLabel}>DEVICE POSTURE</Text>
<Text style={styles.postureStamp}>
{running ? "READING…" : report ? (cached ? "CACHED" : "LIVE") : "NOT ASSESSED"}
</Text>
Expand Down Expand Up @@ -137,7 +137,7 @@ export default function CommandCenterScreen() {
<HostInformation report={report} />

<View style={styles.sectionHeader}>
<Text style={styles.sectionTitle}>Signal review</Text>
<Text style={styles.sectionTitle}>Assessment signals</Text>
<Text style={styles.sectionMeta}>{checks.length ? `${checks.length} CHECKS` : "—"}</Text>
</View>

Expand Down Expand Up @@ -185,7 +185,7 @@ export default function CommandCenterScreen() {
})}

<View style={styles.sectionHeader}>
<Text style={styles.sectionTitle}>Transport readiness</Text>
<Text style={styles.sectionTitle}>Connection readiness</Text>
<Text style={styles.sectionMeta}>USB / ADB</Text>
</View>

Expand Down Expand Up @@ -315,12 +315,12 @@ const styles = StyleSheet.create({
scrollContent: { paddingHorizontal: 20, paddingTop: 18, paddingBottom: 34 },
headerRow: { flexDirection: "row", justifyContent: "space-between", alignItems: "flex-start" },
kicker: { color: palette.orange, fontSize: 10, fontWeight: "800", letterSpacing: 1.2 },
wordmark: { color: palette.ink, fontSize: 21, fontWeight: "800", letterSpacing: -0.5, marginTop: 4 },
wordmark: { color: "#172B4D", fontSize: 21, fontWeight: "800", letterSpacing: -0.5, marginTop: 4 },
offlinePill: {
flexDirection: "row",
alignItems: "center",
borderWidth: 1,
borderColor: palette.line,
borderColor: "#DCE5EF",
borderRadius: 20,
paddingHorizontal: 9,
paddingVertical: 7,
Expand All @@ -335,17 +335,17 @@ const styles = StyleSheet.create({
marginBottom: 18,
},
introCopy: { flex: 1, paddingRight: 18 },
title: { color: palette.ink, fontSize: 30, fontWeight: "800", letterSpacing: -1.1, lineHeight: 34 },
subtitle: { color: palette.muted, fontSize: 14, lineHeight: 20, marginTop: 8 },
title: { color: "#172B4D", fontSize: 30, fontWeight: "800", letterSpacing: -1.1, lineHeight: 34 },
subtitle: { color: "#62748A", fontSize: 14, lineHeight: 20, marginTop: 8 },
buildTag: {
color: palette.muted,
color: "#62748A",
fontSize: 9,
lineHeight: 13,
fontWeight: "800",
letterSpacing: 1,
textAlign: "right",
},
postureCard: { backgroundColor: palette.navy, borderRadius: 22, padding: 20, marginBottom: 12 },
postureCard: { backgroundColor: "#173B6C", borderRadius: 22, padding: 20, marginBottom: 12 },
postureTopRow: { flexDirection: "row", justifyContent: "space-between", alignItems: "center" },
postureLabel: { color: palette.navyMuted, fontSize: 10, fontWeight: "800", letterSpacing: 1.1 },
postureStamp: { color: palette.orange, fontSize: 9, fontWeight: "800", letterSpacing: 0.8 },
Expand All @@ -356,7 +356,7 @@ const styles = StyleSheet.create({
scoreCopy: { flex: 1, paddingBottom: 5 },
scoreTitle: { color: "#FFFFFF", fontSize: 16, fontWeight: "800" },
scoreDetail: { color: palette.navyMuted, fontSize: 12, lineHeight: 17, marginTop: 4 },
scoreBarTrack: { height: 6, borderRadius: 4, backgroundColor: "#274556", marginTop: 18, overflow: "hidden" },
scoreBarTrack: { height: 6, borderRadius: 4, backgroundColor: "#C8D9EE", marginTop: 18, overflow: "hidden" },
scoreBarFill: { height: 6, backgroundColor: palette.orange, borderRadius: 4 },
scoreMetaRow: { flexDirection: "row", justifyContent: "space-between", marginTop: 10 },
scoreMeta: { color: palette.navyMuted, fontSize: 10, fontWeight: "700" },
Expand All @@ -381,7 +381,7 @@ const styles = StyleSheet.create({
primaryButtonIconText: { color: "#FFFFFF", fontSize: 22, fontWeight: "500", lineHeight: 24 },
primaryButtonCopy: { flex: 1, marginLeft: 11 },
primaryButtonTitle: { color: "#FFFFFF", fontSize: 15, fontWeight: "800" },
primaryButtonDetail: { color: "#FFE6D9", fontSize: 11, marginTop: 3 },
primaryButtonDetail: { color: "#F0F6FF", fontSize: 11, marginTop: 3 },
primaryArrow: { color: "#FFFFFF", fontSize: 27, fontWeight: "300", paddingHorizontal: 4 },
pressed: { opacity: 0.82 },
alertText: { color: palette.red, fontSize: 12, lineHeight: 17, marginBottom: 10 },
Expand All @@ -392,13 +392,13 @@ const styles = StyleSheet.create({
marginBottom: 10,
marginTop: 12,
},
sectionTitle: { color: palette.ink, fontSize: 17, fontWeight: "800" },
sectionMeta: { color: palette.muted, fontSize: 9, fontWeight: "800", letterSpacing: 1 },
sectionTitle: { color: "#172B4D", fontSize: 17, fontWeight: "800" },
sectionMeta: { color: "#62748A", fontSize: 9, fontWeight: "800", letterSpacing: 1 },
findingCard: {
flexDirection: "row",
backgroundColor: palette.paper,
backgroundColor: "#FFFFFF",
borderWidth: 1,
borderColor: palette.line,
borderColor: "#DCE5EF",
borderRadius: 15,
padding: 13,
marginBottom: 9,
Expand All @@ -407,24 +407,24 @@ const styles = StyleSheet.create({
width: 27,
height: 27,
borderRadius: 9,
backgroundColor: palette.orangeSoft,
backgroundColor: "#E6F0FF",
alignItems: "center",
justifyContent: "center",
marginRight: 10,
},
findingIndexText: { color: palette.orange, fontSize: 10, fontWeight: "900" },
findingBody: { flex: 1 },
findingTopRow: { flexDirection: "row", alignItems: "center", justifyContent: "space-between" },
findingTitle: { color: palette.ink, fontSize: 14, fontWeight: "800", flex: 1, paddingRight: 7 },
findingTitle: { color: "#172B4D", fontSize: 14, fontWeight: "800", flex: 1, paddingRight: 7 },
statusPill: { borderRadius: 5, paddingHorizontal: 6, paddingVertical: 4 },
statusText: { fontSize: 8, fontWeight: "900", letterSpacing: 0.7 },
findingDetail: { color: palette.muted, fontSize: 12, lineHeight: 17, marginTop: 8 },
collapsedValue: { color: palette.muted, fontSize: 9, fontWeight: "900", letterSpacing: 0.7, marginTop: 7 },
findingDetail: { color: "#62748A", fontSize: 12, lineHeight: 17, marginTop: 8 },
collapsedValue: { color: "#62748A", fontSize: 9, fontWeight: "900", letterSpacing: 0.7, marginTop: 7 },
findingAction: { color: palette.orange, fontSize: 11, fontWeight: "800", marginTop: 8 },
findingChevron: { color: palette.muted, fontSize: 17, marginLeft: 7, marginTop: 1 },
findingChevron: { color: "#62748A", fontSize: 17, marginLeft: 7, marginTop: 1 },
transportCard: {
flexDirection: "row",
backgroundColor: "#EAF0F0",
backgroundColor: "#EAF1F8",
borderRadius: 16,
padding: 14,
marginBottom: 18,
Expand All @@ -433,29 +433,29 @@ const styles = StyleSheet.create({
width: 34,
height: 34,
borderRadius: 11,
backgroundColor: palette.navy,
backgroundColor: "#173B6C",
alignItems: "center",
justifyContent: "center",
marginRight: 10,
},
transportIconText: { color: "#FFFFFF", fontSize: 21, fontWeight: "700" },
transportBody: { flex: 1 },
neutralPill: { borderRadius: 5, backgroundColor: "#DCE6E6", paddingHorizontal: 6, paddingVertical: 4 },
neutralPillText: { color: palette.muted, fontSize: 8, fontWeight: "900", letterSpacing: 0.6 },
transportDetail: { color: palette.muted, fontSize: 12, lineHeight: 17, marginTop: 8 },
neutralPill: { borderRadius: 5, backgroundColor: "#DCE7F4", paddingHorizontal: 6, paddingVertical: 4 },
neutralPillText: { color: "#62748A", fontSize: 8, fontWeight: "900", letterSpacing: 0.6 },
transportDetail: { color: "#62748A", fontSize: 12, lineHeight: 17, marginTop: 8 },
transportChecklist: {
borderTopWidth: 1,
borderTopColor: "#D4DFDE",
borderTopColor: "#DCE5EF",
marginTop: 10,
paddingTop: 8,
gap: 6,
},
checklistLine: { color: palette.ink, fontSize: 11, lineHeight: 15 },
checklistLine: { color: "#172B4D", fontSize: 11, lineHeight: 15 },
checklistMark: { color: palette.orange, fontWeight: "900", letterSpacing: 0.6 },
scopeCard: {
backgroundColor: palette.paper,
backgroundColor: "#FFFFFF",
borderWidth: 1,
borderColor: palette.line,
borderColor: "#DCE5EF",
borderRadius: 17,
padding: 15,
marginBottom: 14,
Expand All @@ -465,37 +465,37 @@ const styles = StyleSheet.create({
width: 31,
height: 31,
borderRadius: 10,
backgroundColor: palette.orangeSoft,
backgroundColor: "#E6F0FF",
alignItems: "center",
justifyContent: "center",
marginRight: 10,
},
scopeMarkText: { color: palette.orange, fontSize: 18, fontWeight: "900" },
scopeCopy: { flex: 1 },
scopeTitle: { color: palette.ink, fontSize: 14, fontWeight: "800" },
scopeDetail: { color: palette.muted, fontSize: 11, lineHeight: 16, marginTop: 3 },
scopeTitle: { color: "#172B4D", fontSize: 14, fontWeight: "800" },
scopeDetail: { color: "#62748A", fontSize: 11, lineHeight: 16, marginTop: 3 },
secondaryButton: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
borderTopWidth: 1,
borderTopColor: palette.line,
borderTopColor: "#DCE5EF",
marginTop: 14,
paddingTop: 13,
},
secondaryButtonText: { color: palette.orange, fontSize: 12, fontWeight: "900" },
secondaryButtonArrow: { color: palette.orange, fontSize: 18 },
footerNote: {
color: palette.muted,
color: "#62748A",
fontSize: 10,
lineHeight: 15,
textAlign: "center",
paddingHorizontal: 9,
marginTop: 1,
},
modalBackdrop: { flex: 1, backgroundColor: "rgba(16,42,59,0.5)", justifyContent: "flex-end" },
modalBackdrop: { flex: 1, backgroundColor: "rgba(23,43,77,0.45)", justifyContent: "flex-end" },
modalCard: {
backgroundColor: palette.canvas,
backgroundColor: "#F4F7FB",
borderTopLeftRadius: 26,
borderTopRightRadius: 26,
paddingHorizontal: 22,
Expand All @@ -506,34 +506,34 @@ const styles = StyleSheet.create({
width: 42,
height: 4,
borderRadius: 3,
backgroundColor: "#C6CFCC",
backgroundColor: "#C7D4E3",
alignSelf: "center",
marginBottom: 24,
},
modalKicker: { color: palette.orange, fontSize: 10, fontWeight: "900", letterSpacing: 1 },
modalTitle: { color: palette.ink, fontSize: 25, fontWeight: "800", letterSpacing: -0.6, marginTop: 7 },
modalBody: { color: palette.muted, fontSize: 13, lineHeight: 18, marginTop: 8, marginBottom: 20 },
modalTitle: { color: "#172B4D", fontSize: 25, fontWeight: "800", letterSpacing: -0.6, marginTop: 7 },
modalBody: { color: "#62748A", fontSize: 13, lineHeight: 18, marginTop: 8, marginBottom: 20 },
inputLabel: {
color: palette.muted,
color: "#62748A",
fontSize: 9,
fontWeight: "900",
letterSpacing: 1,
marginBottom: 7,
marginTop: 9,
},
input: {
backgroundColor: palette.paper,
backgroundColor: "#FFFFFF",
borderWidth: 1,
borderColor: palette.line,
borderColor: "#DCE5EF",
borderRadius: 12,
paddingHorizontal: 14,
paddingVertical: 12,
color: palette.ink,
color: "#172B4D",
fontSize: 14,
},
modalActions: { flexDirection: "row", justifyContent: "flex-end", gap: 10, marginTop: 22 },
cancelButton: { paddingHorizontal: 16, paddingVertical: 12 },
cancelText: { color: palette.muted, fontSize: 14, fontWeight: "700" },
cancelText: { color: "#62748A", fontSize: 14, fontWeight: "700" },
modalPrimary: {
backgroundColor: palette.orange,
borderRadius: 12,
Expand Down
Loading