* Add mobile diff review * Wrap mobile review notes prompt * Fix mobile review unreviewed navigation * Clear review completion when a refreshed diff invalidates a reviewed file mergeMobileDiffReviewState invalidates a file's reviewed flag when its diff identity changes, but left completedAt set — inconsistent with markUnreviewed. Drop completedAt on invalidation and add a regression test. Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Orca <help@stably.ai>
130 lines
3.0 KiB
TypeScript
130 lines
3.0 KiB
TypeScript
import { StyleSheet } from 'react-native'
|
|
import { colors, radii, spacing, typography } from '../theme/mobile-theme'
|
|
|
|
export const mobileDiffReviewControlStyles = StyleSheet.create({
|
|
footer: {
|
|
position: 'absolute',
|
|
left: 0,
|
|
right: 0,
|
|
bottom: 0,
|
|
paddingHorizontal: spacing.lg,
|
|
paddingTop: spacing.sm,
|
|
gap: spacing.sm,
|
|
backgroundColor: colors.bgBase,
|
|
borderTopWidth: StyleSheet.hairlineWidth,
|
|
borderTopColor: colors.borderSubtle
|
|
},
|
|
fileActionRow: {
|
|
flexDirection: 'row',
|
|
gap: spacing.sm
|
|
},
|
|
footerRow: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
gap: spacing.sm
|
|
},
|
|
navButton: {
|
|
width: 44,
|
|
minHeight: 44,
|
|
borderRadius: radii.button,
|
|
backgroundColor: colors.bgRaised,
|
|
alignItems: 'center',
|
|
justifyContent: 'center'
|
|
},
|
|
footerButton: {
|
|
minHeight: 44,
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: spacing.xs,
|
|
paddingHorizontal: spacing.md,
|
|
borderRadius: radii.button,
|
|
backgroundColor: colors.bgRaised
|
|
},
|
|
footerButtonText: {
|
|
color: colors.textSecondary,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '700'
|
|
},
|
|
primaryButton: {
|
|
flex: 1,
|
|
minHeight: 44,
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: spacing.xs,
|
|
paddingHorizontal: spacing.md,
|
|
borderRadius: radii.button,
|
|
backgroundColor: colors.textPrimary
|
|
},
|
|
primaryButtonDone: {
|
|
backgroundColor: colors.statusGreen
|
|
},
|
|
primaryButtonText: {
|
|
color: colors.bgBase,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '800'
|
|
},
|
|
secondaryButton: {
|
|
flex: 1,
|
|
minHeight: 44,
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: spacing.xs,
|
|
paddingHorizontal: spacing.md,
|
|
borderRadius: radii.button,
|
|
backgroundColor: colors.bgRaised
|
|
},
|
|
secondaryButtonText: {
|
|
color: colors.textSecondary,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '700'
|
|
},
|
|
destructiveText: {
|
|
color: colors.statusRed,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '700'
|
|
},
|
|
buttonPressed: {
|
|
opacity: 0.76
|
|
},
|
|
buttonDisabled: {
|
|
opacity: 0.45
|
|
},
|
|
composerHeader: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
gap: spacing.md,
|
|
marginBottom: spacing.md
|
|
},
|
|
drawerTitle: {
|
|
color: colors.textPrimary,
|
|
fontSize: typography.titleSize,
|
|
fontWeight: '700'
|
|
},
|
|
drawerSubtitle: {
|
|
color: colors.textMuted,
|
|
fontSize: typography.metaSize,
|
|
marginTop: 2
|
|
},
|
|
composerInput: {
|
|
minHeight: 112,
|
|
borderRadius: radii.input,
|
|
borderWidth: StyleSheet.hairlineWidth,
|
|
borderColor: colors.borderSubtle,
|
|
backgroundColor: colors.bgPanel,
|
|
color: colors.textPrimary,
|
|
fontSize: typography.bodySize,
|
|
lineHeight: 20,
|
|
padding: spacing.md,
|
|
textAlignVertical: 'top'
|
|
},
|
|
drawerButtonRow: {
|
|
flexDirection: 'row',
|
|
gap: spacing.sm,
|
|
marginTop: spacing.md
|
|
}
|
|
})
|