This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +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
});