Files
nahodka-front/src/config/feedConstants.js
SlimusMinus 3dd174afa5 Add verification questions, claim flow and scam warnings
- post form: up to 3 verification questions (loss and found) and a
  "how not to get scammed" note; sent as verificationQuestions JSON
- feed card: "I found it" / "It's mine" instead of "Write" for posts with
  questions; phone shows "after check" until the author approves
- chat draft shows ClaimForm; VerificationPanel lets the author approve or
  reject answers and locks the claimant's input until approval, then offers
  the author's phone
- messages: claim answers card, verification system line, fraudSignal
  warnings for the recipient; ChatSafetyNotice with new-account mark
- tests, README

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

50 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const NAV_ITEMS = [
{ icon: "grid", key: "home", labelKey: "nav.home" },
{ icon: "box", key: "items", labelKey: "nav.items" },
{ icon: "paw", key: "pets", labelKey: "nav.pets" },
{ icon: "file", key: "myads", labelKey: "nav.myAds" },
{ icon: "chat", key: "chat", labelKey: "nav.chat" },
{ icon: "plus", key: "create", labelKey: "nav.create" },
];
export const NAV_BOTTOM = [
{ icon: "star", key: "reviews", labelKey: "nav.reviews" },
{ icon: "rules", key: "rules", labelKey: "nav.rules" },
];
/**
* Категории объявления.
*
* value — то, что уходит на бэкенд и хранится в БД (в т.ч. у уже созданных
* объявлений), поэтому это стабильные значения, а НЕ переводы. Раньше сюда
* клали i18n-ключи и отправляли t(key), из-за чего одно и то же объявление
* получало разный category в зависимости от языка интерфейса.
*/
export const CATEGORIES = [
{ value: "Вещь", labelKey: "categories.item" },
{ value: "Питомец", labelKey: "categories.pet" },
{ value: "Другое", labelKey: "categories.other" },
];
export const CATEGORY_ITEM = "Вещь";
export const CATEGORY_PET = "Питомец";
export const CATEGORY_OTHER = "Другое";
export const EMPTY_FORM = {
type: "loss",
title: "",
description: "",
category: "",
location: "",
phone: "",
// Согласие на показ номера (152-ФЗ). По умолчанию — «только чат»
phoneVisible: false,
date: "",
address: "",
rulesAccepted: false,
reward: false,
rewardText: "",
// Контрольные вопросы находки; пустая строка — одно незаполненное поле
verificationQuestions: [""]
};