caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

116 lines
2.9 KiB
TypeScript

import { showMessage } from 'react-native-flash-message';
import { ThemeStatic } from '@app/theme';
export const welcomeNotification = () => showMessage({
message: 'Welcome to Proximity',
icon: 'success',
type: 'success',
duration: 2000
});
export const postUploadedNotification = () => showMessage({
message: 'Upload complete, your post is live',
icon: 'success',
type: 'success',
duration: 2000
});
export const uploadErrorNotification = (asset: string) => showMessage({
message: `${asset} upload failed, please try again later`,
icon: 'danger',
type: 'danger',
duration: 2000
});
export const inputLimitErrorNotification = (type: string, condition: string, limit: number) => showMessage({
message: `${type} should be ${condition} than ${limit} characters`,
icon: 'danger',
type: 'danger',
duration: 4000
});
export const somethingWentWrongErrorNotification = () => showMessage({
message: 'Oops, please try again later',
icon: 'danger',
type: 'danger',
duration: 4000
});
export const showErrorNotification = (message: string) => showMessage({
message,
icon: 'danger',
type: 'danger',
duration: 4000
});
export const noAssetInfoNotification = () => showMessage({
message: 'Please pick an image before uploading',
icon: 'info',
type: 'info',
backgroundColor: ThemeStatic.accent,
duration: 2000
});
export const noPermissionNotification = () => showMessage({
message: 'Please allow photo gallery permissions',
icon: 'danger',
type: 'danger',
duration: 4000
});
export const longPressDeleteNotification = onLongPress => showMessage({
message: 'Long press this notification to delete',
icon: 'danger',
type: 'danger',
duration: 4000,
backgroundColor: ThemeStatic.delete,
onLongPress
});
export const tryAgainLaterNotification = () => showMessage({
message: 'Please try again later',
icon: 'danger',
type: 'danger',
duration: 4000
});
export const postReportedNotification = () => showMessage({
message: 'Post has been reported and submitted for review',
icon: 'info',
type: 'info',
backgroundColor: ThemeStatic.accent,
duration: 4000
});
export const postUpdatedNotification = () => showMessage({
message: 'Post has been updated',
icon: 'success',
type: 'success',
duration: 2000
});
export const postDeletedNotification = () => showMessage({
message: 'Post has been deleted',
icon: 'info',
type: 'info',
backgroundColor: ThemeStatic.accent,
duration: 2000
});
export const userBlockedNotification = (handle: string = 'User') => showMessage({
message: `${handle} has been blocked, please refresh your feed`,
icon: 'info',
type: 'info',
backgroundColor: ThemeStatic.accent,
duration: 4000
});
export const longPressUnblockNotification = (onLongPress, handle) => showMessage({
message: `Long press this notification to unblock ${handle}`,
icon: 'danger',
type: 'danger',
duration: 4000,
backgroundColor: ThemeStatic.delete,
onLongPress
});