📨 The ultimate agentic social media scheduling tool 🤖
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: new creation modal
Nevo David48aa7e2cceb0
diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scssindex a6ea6d537..a3dcef39e 100644--- a/apps/frontend/src/app/global.scss+++ b/apps/frontend/src/app/global.scss@@ -599,6 +599,19 @@ html[dir='rtl'] [dir='ltr'] {outline: none;}+// the composer on phones follows the app typography+@media (max-width: 1025px) {+ .flat-editor .ProseMirror {+ font-family: inherit;+ font-size: 14px;+ line-height: 20px;+ }++ .flat-editor .tiptap p.is-editor-empty:first-child::before {+ color: #656464;+ }+}+.ProseMirror .mention {font-weight: bold;color: #ae8afc;diff --git a/apps/frontend/src/components/developer/developer.component.tsx b/apps/frontend/src/components/developer/developer.component.tsxindex 3defb4623..d754695be 100644--- a/apps/frontend/src/components/developer/developer.component.tsx+++ b/apps/frontend/src/components/developer/developer.component.tsx@@ -5,7 +5,10 @@ import { useFetch } from '@gitroom/helpers/utils/custom.fetch';import useSWR from 'swr';import { useToaster } from '@gitroom/react/toaster/toaster';import { useDecisionModal, useModals } from '@gitroom/frontend/components/layout/new-modal';-import { MediaBox } from '@gitroom/frontend/components/media/media.component';+import {+ MediaBox,+ mediaLibrarySize,+} from '@gitroom/frontend/components/media/media.component';import copy from 'copy-to-clipboard';import { useT } from '@gitroom/react/translation/get.transation.service.client';@@ -102,8 +105,8 @@ export const DeveloperComponent: FC = () => {askClose: false,closeOnEscape: true,fullScreen: true,- size: 'calc(100% - 80px)',- height: 'calc(100% - 80px)',+ size: mediaLibrarySize(),+ height: mediaLibrarySize(),children: (close: () => void) => (<MediaBoxsetMedia={changeMedia}diff --git a/apps/frontend/src/components/launches/ai.image.tsx b/apps/frontend/src/components/launches/ai.image.tsxindex 719174bbe..7de656b76 100644--- a/apps/frontend/src/components/launches/ai.image.tsx+++ b/apps/frontend/src/components/launches/ai.image.tsx@@ -147,7 +147,7 @@ export const AiImage: FC<{<divonClick={openImageModal}className={clsx(- 'cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]'+ 'cursor-pointer h-[30px] mobile:h-[40px] mobile:min-w-[40px] rounded-[6px] mobile:rounded-[8px] justify-center items-center flex bg-newColColor mobile:bg-newSettings px-[8px]')}>{loading && (@@ -166,6 +166,7 @@ export const AiImage: FC<{xmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/launches/ai.video.tsx b/apps/frontend/src/components/launches/ai.video.tsxindex ca54a0e56..76f508fdd 100644--- a/apps/frontend/src/components/launches/ai.video.tsx+++ b/apps/frontend/src/components/launches/ai.video.tsx@@ -90,7 +90,7 @@ export const Modal: FC<{<div><div className="relative h-[400px]"><div className="absolute left-0 top-0 w-full h-full overflow-hidden overflow-y-auto">- <div className="mt-[10px] flex w-full justify-center items-center gap-[10px]">+ <div className="mt-[10px] flex w-full justify-center items-center gap-[10px] mobile:flex-col mobile:items-stretch"><div className="flex-1 flex"><ButtonclassName="!flex-1"@@ -100,7 +100,7 @@ export const Modal: FC<{Vertical (Stories, Reels)</Button></div>- <div className="flex-1 flex mt-[10px]">+ <div className="flex-1 flex mt-[10px] mobile:mt-0"><ButtonclassName="!flex-1"onClick={() => setPosition('horizontal')}@@ -213,7 +213,7 @@ export const AiVideo: FC<{<divonClick={openVideoModal}className={clsx(- 'cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]'+ 'cursor-pointer h-[30px] mobile:h-[40px] mobile:min-w-[40px] rounded-[6px] mobile:rounded-[8px] justify-center items-center flex bg-newColColor mobile:bg-newSettings px-[8px]')}>{loading && (@@ -229,6 +229,7 @@ export const AiVideo: FC<{xmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/launches/helpers/date.picker.tsx b/apps/frontend/src/components/launches/helpers/date.picker.tsxindex 3b0eda8ac..efe1573d9 100644--- a/apps/frontend/src/components/launches/helpers/date.picker.tsx+++ b/apps/frontend/src/components/launches/helpers/date.picker.tsx@@ -1,26 +1,73 @@import { FC, useCallback, useState } from 'react';import dayjs from 'dayjs';+import clsx from 'clsx';import { Calendar, TimeInput } from '@mantine/dates';import { useClickOutside } from '@mantine/hooks';import { Button } from '@gitroom/react/form/button';import { isUSCitizen } from './isuscitizen.utils';import { useT } from '@gitroom/react/translation/get.transation.service.client';import { newDayjs } from '@gitroom/frontend/components/layout/set.timezone';-import { CalendarIcon } from '@gitroom/frontend/components/ui/icons';-export const DatePicker: FC<{+import {+ CalendarIcon,+ ChevronLeftIcon,+ ChevronRightIcon,+ DropdownArrowIcon,+} from '@gitroom/frontend/components/ui/icons';++// one part of the time in the mobile sheet, typed or stepped with the arrows+const TimeField: FC<{+ value: number;+ min: number;+ max: number;+ pad?: boolean;+ onChange: (value: number) => void;+}> = ({ value, min, max, pad, onChange }) => {+ const [text, setText] = useState<string | null>(null);+ const format = (num: number) =>+ pad ? String(num).padStart(2, '0') : String(num);+ const step = (delta: number) => () => {+ const range = max - min + 1;+ onChange(((value - min + delta + range) % range) + min);+ };++ return (+ <div className="w-[74px] min-w-[56px] flex flex-col items-center gap-[4px] text-textItemBlur">+ <div onClick={step(1)} className="cursor-pointer">+ <DropdownArrowIcon rotated={true} />+ </div>+ <input+ value={text ?? format(value)}+ placeholder={format(value)}+ inputMode="numeric"+ maxLength={2}+ onFocus={() => setText('')}+ onChange={(e) => setText(e.target.value.replace(/\D/g, ''))}+ onBlur={() => {+ const num = parseInt(text || '', 10);+ if (!isNaN(num)) {+ onChange(Math.min(max, Math.max(min, num)));+ }+ setText(null);+ }}+ className="w-full h-[52px] rounded-[10px] border border-newColColor focus:border-btnPrimary bg-newBgColorInner text-center text-[14px] text-textColor outline-none"+ />+ <div onClick={step(-1)} className="cursor-pointer">+ <DropdownArrowIcon />+ </div>+ </div>+ );+};++// the calendar and the time, in the desktop popover or in the mobile sheet+export const DatePickerPanel: FC<{date: dayjs.Dayjs;onChange: (day: dayjs.Dayjs) => void;+ sheet?: boolean;}> = (props) => {- const { date, onChange } = props;- const [open, setOpen] = useState(false);+ const { date, onChange, sheet } = props;const t = useT();+ const [month, setMonth] = useState(date.toDate());- const changeShow = useCallback(() => {- setOpen((prev) => !prev);- }, []);- const ref = useClickOutside<HTMLDivElement>(() => {- setOpen(false);- });const changeDate = useCallback((type: 'date' | 'time') => (day: Date) => {onChange(@@ -33,54 +80,228 @@ export const DatePicker: FC<{},[date]);++ const changeTime = useCallback(+ (hour: number, minute: number) => {+ onChange(+ newDayjs(+ date.format('YYYY-MM-DD') ++ ' ' ++ [hour, minute, 0].map((p) => String(p).padStart(2, '0')).join(':')+ )+ );+ },+ [date]+ );++ if (sheet) {+ const twelveHours = isUSCitizen();+ const pm = date.hour() >= 12;+ return (+ <div className="flex flex-col">+ <div className="flex items-center gap-[16px] mb-[12px]">+ <div className="w-[55px] text-[15px] font-[600]">+ {t('date', 'Date')}+ </div>+ <div className="flex-1 h-[52px] px-[16px] flex items-center rounded-[10px] border border-newColColor bg-newBgColorInner text-[14px]">+ {date.format('ddd, D MMMM')}+ </div>+ </div>+ <div className="bg-newSettings rounded-[12px] px-[16px] py-[12px] mb-[24px]">+ <div className="flex items-center gap-[8px] mb-[12px]">+ <div className="flex-1 text-[15px] font-[600]">+ {dayjs(month).format('MMMM, YYYY')}+ </div>+ <div+ onClick={() =>+ setMonth(dayjs(month).subtract(1, 'month').toDate())+ }+ className="w-[32px] h-[32px] flex justify-center items-center cursor-pointer text-textItemBlur"+ >+ <ChevronLeftIcon+ size={20}+ strokeWidth={1.8}+ className="rtl:rotate-180"+ />+ </div>+ <div+ onClick={() => setMonth(dayjs(month).add(1, 'month').toDate())}+ className="w-[32px] h-[32px] flex justify-center items-center cursor-pointer text-textItemBlur"+ >+ <ChevronRightIcon+ size={20}+ strokeWidth={1.8}+ className="rtl:rotate-180"+ />+ </div>+ </div>+ <Calendar+ fullWidth={true}+ locale={dayjs.locale()}+ month={month}+ onMonthChange={setMonth}+ onChange={(day) => {+ setMonth(day);+ changeDate('date')(day);+ }}+ value={date.toDate()}+ dayClassName={(day, modifiers) =>+ clsx(+ '!w-full !max-w-[40px] !h-[40px] !leading-[40px] !rounded-[8px] !text-[14px]',+ modifiers.selected+ ? '!bg-boxFocused !text-textItemFocused !font-[600] !outline-none'+ : modifiers.outside+ ? '!text-newTextColor/20 !font-[400]'+ : dayjs(day).isSame(dayjs(), 'day')+ ? '!text-[#FC69FF] !font-[600]'+ : '!text-textItemBlur !font-[400]'+ )+ }+ classNames={{+ calendarHeader: '!hidden',+ cell: '!py-[4px] !border-t-0 text-center',+ day: 'hover:bg-boxHover',+ weekday: '!text-[15px] !font-[600] !text-textItemBlur',+ weekdayCell: '!pb-[4px] !h-[39px]',+ }}+ />+ </div>+ <div className="flex items-center gap-[16px]">+ <div className="w-[55px] text-[15px] font-[600]">+ {t('time', 'Time')}+ </div>+ <div className="flex items-center gap-[12px] min-w-0">+ <div className="flex rtl:flex-row-reverse items-center gap-[4px] min-w-0">+ {twelveHours ? (+ <TimeField+ value={date.hour() % 12 || 12}+ min={1}+ max={12}+ onChange={(hour) =>+ changeTime((hour % 12) + (pm ? 12 : 0), date.minute())+ }+ />+ ) : (+ <TimeField+ value={date.hour()}+ min={0}+ max={23}+ pad={true}+ onChange={(hour) => changeTime(hour, date.minute())}+ />+ )}+ <div className="text-[14px] font-[600]">:</div>+ <TimeField+ value={date.minute()}+ min={0}+ max={59}+ pad={true}+ onChange={(minute) => changeTime(date.hour(), minute)}+ />+ </div>+ {twelveHours && (+ <div className="h-[52px] flex gap-[3px] p-[4px] rounded-[8px] border border-newColColor bg-newBgColorInner">+ {[false, true].map((isPm) => (+ <div+ key={String(isPm)}+ onClick={() =>+ changeTime(+ (date.hour() % 12) + (isPm ? 12 : 0),+ date.minute()+ )+ }+ className={clsx(+ 'w-[44px] h-[44px] flex justify-center items-center rounded-[6px] text-[14px] cursor-pointer select-none',+ isPm === pm+ ? 'bg-boxFocused text-textItemFocused'+ : 'text-textItemBlur'+ )}+ >+ {isPm ? 'pm' : 'am'}+ </div>+ ))}+ </div>+ )}+ </div>+ </div>+ </div>+ );+ }++ return (+ <>+ <Calendar+ onChange={changeDate('date')}+ value={date.toDate()}+ dayClassName={(date, modifiers) => {+ if (modifiers.weekend) {+ return '!text-customColor28';+ }+ if (modifiers.outside) {+ return '!text-gray';+ }+ if (modifiers.selected) {+ return '!text-white !bg-seventh !outline-none';+ }+ return '!text-textColor';+ }}+ classNames={{+ day: 'hover:bg-seventh',+ calendarHeaderControl: 'text-textColor hover:bg-third',+ calendarHeaderLevel: 'text-textColor hover:bg-third', // cell: 'child:!text-textColor'+ }}+ />+ <TimeInput+ onChange={changeDate('time')}+ label="Pick time"+ classNames={{+ label: 'text-textColor py-[12px]',+ input:+ 'bg-sixth h-[40px] border border-tableBorder text-textColor rounded-[4px] outline-none',+ }}+ defaultValue={date.toDate()}+ />+ </>+ );+};++export const DatePicker: FC<{+ date: dayjs.Dayjs;+ onChange: (day: dayjs.Dayjs) => void;+ // opens a picker somewhere else instead of the popover+ onOpen?: () => void;+}> = (props) => {+ const { date, onChange, onOpen } = props;+ const [open, setOpen] = useState(false);+ const t = useT();++ const changeShow = useCallback(() => {+ setOpen((prev) => !prev);+ }, []);+ const ref = useClickOutside<HTMLDivElement>(() => {+ setOpen(false);+ });return (<div- className="px-[16px] border border-newTextColor/10 rounded-[8px] justify-center flex gap-[8px] items-center relative h-[44px] text-[15px] mobile:text-[14px] whitespace-nowrap font-[600] ml-[7px] mobile:ml-0 select-none flex-1"- onClick={changeShow}+ className="px-[16px] border border-newTextColor/10 mobile:border-newTextColor/[0.08] rounded-[8px] mobile:rounded-[6px] justify-center flex gap-[8px] items-center relative h-[44px] mobile:h-[34px] text-[15px] mobile:text-[13px] whitespace-nowrap font-[600] ml-[7px] mobile:ml-0 select-none flex-1 mobile:min-w-0"+ onClick={onOpen || changeShow}ref={ref}><div className="cursor-pointer"><CalendarIcon /></div>- <div className="cursor-pointer">+ <div className="cursor-pointer mobile:hidden">{date.format(isUSCitizen() ? 'MM/DD/YYYY hh:mm A' : 'DD/MM/YYYY HH:mm')}</div>+ <div className="cursor-pointer hidden mobile:block truncate">+ {date.format(isUSCitizen() ? 'MMM D, h:mm A' : 'D MMM, HH:mm')}+ </div>{open && (<divonClick={(e) => e.stopPropagation()}- className="animate-fadeIn absolute bottom-[100%] mb-[16px] start-[50%] -translate-x-[50%] mobile:start-0 mobile:translate-x-0 bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col"+ className="animate-fadeIn absolute bottom-[100%] mb-[16px] start-[50%] -translate-x-[50%] bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col">- <Calendar- onChange={changeDate('date')}- value={date.toDate()}- dayClassName={(date, modifiers) => {- if (modifiers.weekend) {- return '!text-customColor28';- }- if (modifiers.outside) {- return '!text-gray';- }- if (modifiers.selected) {- return '!text-white !bg-seventh !outline-none';- }- return '!text-textColor';- }}- classNames={{- day: 'hover:bg-seventh',- calendarHeaderControl: 'text-textColor hover:bg-third',- calendarHeaderLevel: 'text-textColor hover:bg-third', // cell: 'child:!text-textColor'- }}- />- <TimeInput- onChange={changeDate('time')}- label="Pick time"- classNames={{- label: 'text-textColor py-[12px]',- input:- 'bg-sixth h-[40px] border border-tableBorder text-textColor rounded-[4px] outline-none',- }}- defaultValue={date.toDate()}- />+ <DatePickerPanel date={date} onChange={onChange} /><Button className="mt-[12px]" onClick={changeShow}>{t('close', 'Close')}</Button>diff --git a/apps/frontend/src/components/launches/information.component.tsx b/apps/frontend/src/components/launches/information.component.tsxindex 718a8eb64..dcb1fc231 100644--- a/apps/frontend/src/components/launches/information.component.tsx+++ b/apps/frontend/src/components/launches/information.component.tsx@@ -30,7 +30,7 @@ const Valid: FC = () => {);};-const Invalid: FC = () => {+const Invalid: FC<{ className?: string }> = ({ className }) => {return (<svgxmlns="http://www.w3.org/2000/svg"@@ -38,11 +38,12 @@ const Invalid: FC = () => {height="16"viewBox="0 0 16 16"fill="none"+ className={className}><g clipPath="url(#clip0_2482_97670)"><pathd="M8.00049 6.00015V8.66682M8.00049 11.3335H8.00715M7.07737 2.59464L1.59411 12.0657C1.28997 12.591 1.1379 12.8537 1.16038 13.0693C1.17998 13.2573 1.2785 13.4282 1.4314 13.5394C1.60671 13.6668 1.91022 13.6668 2.51723 13.6668H13.4837C14.0908 13.6668 14.3943 13.6668 14.5696 13.5394C14.7225 13.4282 14.821 13.2573 14.8406 13.0693C14.8631 12.8537 14.711 12.591 14.4069 12.0657L8.92361 2.59463C8.62056 2.07119 8.46904 1.80947 8.27135 1.72157C8.09892 1.64489 7.90206 1.64489 7.72962 1.72157C7.53193 1.80947 7.38041 2.07119 7.07737 2.59464Z"- stroke="white"+ stroke="currentColor"strokeWidth="1.2"strokeLinecap="round"strokeLinejoin="round"@@ -184,25 +185,51 @@ export const InformationComponent: FC<{return (<divclassName={clsx(- 'group rounded-[6px] gap-[4px] h-[30px] px-[6px] flex justify-center items-center relative',- isValid ? 'border border-newColColor' : 'bg-[#FF3F3F]'+ 'group rounded-[6px] gap-[4px] mobile:gap-[6px] h-[30px] px-[6px] mobile:px-0 flex justify-center items-center relative',+ isValid+ ? 'border border-newColColor mobile:border-0'+ : 'bg-[#FF3F3F] mobile:bg-transparent',+ !selectedIntegrations.length && 'mobile:hidden')}>- {isValid ? <Valid /> : <Invalid />}+ {isValid ? (+ <Valid />+ ) : (+ <Invalid className="text-white mobile:text-[#FF3F3F]" />+ )}{!isGlobal && (- <div className={clsx("text-[10px] font-[600] flex justify-center items-center", !isValid && 'text-white')}>+ <div+ className={clsx(+ 'text-[10px] mobile:text-[12px] font-[600] mobile:font-[500] flex justify-center items-center',+ isValid+ ? 'mobile:text-newTextColor/40'+ : 'text-white mobile:text-[#FF3F3F]'+ )}+ >{currentChars}/{totalAllowedChars}</div>)}{isGlobal && globalDisplayLimit !== null && (- <div className={clsx("text-[10px] font-[600] flex justify-center items-center", !isValid && 'text-white')}>+ <div+ className={clsx(+ 'text-[10px] mobile:text-[12px] font-[600] mobile:font-[500] flex justify-center items-center',+ isValid+ ? 'mobile:text-newTextColor/40'+ : 'text-white mobile:text-[#FF3F3F]'+ )}+ >{globalDisplayLimit.count}/{globalDisplayLimit.limit}</div>)}{((isGlobal && selectedIntegrations.length) || !isValid) && (<svg- className={clsx('group-hover:rotate-180', !isValid && 'text-white')}+ className={clsx(+ 'group-hover:rotate-180',+ isValid+ ? 'mobile:text-newTextColor/40'+ : 'text-white mobile:text-[#FF3F3F]'+ )}xmlns="http://www.w3.org/2000/svg"width="16"height="16"diff --git a/apps/frontend/src/components/launches/repeat.component.tsx b/apps/frontend/src/components/launches/repeat.component.tsxindex ad263bb01..0d571e704 100644--- a/apps/frontend/src/components/launches/repeat.component.tsx+++ b/apps/frontend/src/components/launches/repeat.component.tsx@@ -52,6 +52,7 @@ const getList = (t: (key: string, fallback: string) => string) => [export const RepeatComponent: FC<{repeat: number | null;onChange: (newVal: number) => void;+ list?: boolean;}> = (props) => {const { repeat } = props;const t = useT();@@ -72,6 +73,42 @@ export const RepeatComponent: FC<{return list.find((p) => p.value === repeat)?.label;}, [repeat, list]);+ if (props.list) {+ // the radio list starts with "do not repeat", the dropdown ends with cancel+ const options = [+ ...list.filter((p) => !p.value),+ ...list.filter((p) => p.value),+ ];+ return (+ <div className="flex flex-col gap-[8px]">+ {options.map((p) => {+ const selected = p.value ? repeat === p.value : !repeat;+ return (+ <div+ onClick={() => props.onChange(Number(p.value))}+ key={p.label}+ className="min-h-[48px] px-[12px] flex items-center justify-between gap-[12px] cursor-pointer select-none"+ >+ <div className="text-[14px] font-[400]">+ {p.value ? p.label : t('do_not_repeat', 'Do Not Repeat')}+ </div>+ <div+ className={clsx(+ 'w-[24px] h-[24px] rounded-full border-[1.5px] flex justify-center items-center',+ selected ? 'border-[#FC69FF]' : 'border-newTextColor/20'+ )}+ >+ {selected && (+ <div className="w-[12px] h-[12px] rounded-full bg-[#FC69FF]" />+ )}+ </div>+ </div>+ );+ })}+ </div>+ );+ }+return (<divref={ref}diff --git a/apps/frontend/src/components/launches/tags.component.tsx b/apps/frontend/src/components/launches/tags.component.tsxindex 3d08f0036..a8e93c620 100644--- a/apps/frontend/src/components/launches/tags.component.tsx+++ b/apps/frontend/src/components/launches/tags.component.tsx@@ -23,6 +23,7 @@ export const TagsComponent: FC<{name: string;label: string;initial: any[];+ list?: boolean;onChange: (event: {target: {value: any[];@@ -50,6 +51,7 @@ export const TagsComponentInner: FC<{label: string;initial: any[];allTags: any;+ list?: boolean;mutate: () => Promise<any>;onChange: (event: {target: {@@ -57,7 +59,7 @@ export const TagsComponentInner: FC<{name: string;};}) => void;-}> = ({ initial, onChange, name, mutate, allTags: data }) => {+}> = ({ initial, onChange, name, mutate, allTags: data, list }) => {const t = useT();const fetch = useFetch();const [isOpen, setIsOpen] = useState(false);@@ -103,7 +105,30 @@ export const TagsComponentInner: FC<{},});}- }, []);+ }, [tagValue, name, onChange, mutate, modals, t]);++ const toggleTag = useCallback(+ (tag: any) => () => {+ const exists = !!tagValue.find((a) => a.id === tag.id);+ let modify = [];+ if (exists) {+ modify = tagValue.filter((a) => a.id !== tag.id);+ } else {+ modify = [...tagValue, tag];+ }+ setTagValue(modify);+ onChange({+ target: {+ value: modify.map((p: any) => ({+ label: p.name,+ value: p.name,+ })),+ name,+ },+ });+ },+ [tagValue, name, onChange]+ );const deleteTag = useCallback(async (tag: any, e: React.MouseEvent) => {@@ -157,6 +182,42 @@ export const TagsComponentInner: FC<{[tagValue, name, onChange, mutate, fetch, modals, t]);+ if (list) {+ return (+ <div className="flex flex-col gap-[12px]">+ {(data?.tags || []).map((p: any) => (+ <div+ onClick={toggleTag(p)}+ key={p.name}+ className="min-h-[40px] flex gap-[8px] items-center cursor-pointer select-none"+ >+ <div className="flex-1 flex">+ <span+ className="text-[14px] font-[600] text-[#fff] px-[12px] pt-[4px] pb-[6px] rounded-[6px] text-shadow-tags break-all"+ style={{ backgroundColor: p.color }}+ >+ {p.name}+ </span>+ </div>+ <Check+ onChange={() => {}}+ value={!!tagValue.find((a) => a.id === p.id)}+ />+ </div>+ ))}+ <div+ onClick={addTag}+ className="cursor-pointer gap-[8px] flex w-full h-[44px] rounded-[8px] px-[16px] justify-center items-center bg-[#D82D7E] text-white select-none"+ >+ <PlusIcon size={20} />+ <div className="text-[15px] font-[600]">+ {t('add_new_tag', 'Add New Tag')}+ </div>+ </div>+ </div>+ );+ }+return (<divref={ref}@@ -197,25 +258,7 @@ export const TagsComponentInner: FC<{<div className="z-[300] absolute start-0 bottom-[100%] w-[240px] bg-newBgColorInner p-[12px] menu-shadow -translate-y-[10px] flex flex-col">{(data?.tags || []).map((p: any) => (<div- onClick={() => {- const exists = !!tagValue.find((a) => a.id === p.id);- let modify = [];- if (exists) {- modify = tagValue.filter((a) => a.id !== p.id);- } else {- modify = [...tagValue, p];- }- setTagValue(modify);- onChange({- target: {- value: modify.map((p: any) => ({- label: p.name,- value: p.name,- })),- name,- },- });- }}+ onClick={toggleTag(p)}key={p.name}className="min-h-[40px] py-[8px] px-[20px] -mx-[12px] flex gap-[8px] items-center group">@@ -258,10 +301,10 @@ export const TagsComponentInner: FC<{);};-const Check: FC<{ value: boolean; onChange: (value: boolean) => void }> = ({- value,- onChange,-}) => {+export const Check: FC<{+ value: boolean;+ onChange: (value: boolean) => void;+}> = ({ value, onChange }) => {return (<divonClick={() => onChange(!value)}diff --git a/apps/frontend/src/components/layout/new-modal.tsx b/apps/frontend/src/components/layout/new-modal.tsxindex 53a210f3a..cb7146f18 100644--- a/apps/frontend/src/components/layout/new-modal.tsx+++ b/apps/frontend/src/components/layout/new-modal.tsx@@ -195,7 +195,7 @@ export const Component: FC<{? modal.top? '': 'min-h-full pt-[100px] pb-[100px] mobile:pt-[24px] mobile:pb-[24px] mobile:px-[8px]'- : 'h-screen',+ : 'h-screen mobile:h-dvh',modal.size && modal.height? 'flex justify-center items-center': 'top-0 left-0'diff --git a/apps/frontend/src/components/media/media.component.tsx b/apps/frontend/src/components/media/media.component.tsxindex eccfad834..dbd5bf9b8 100644--- a/apps/frontend/src/components/media/media.component.tsx+++ b/apps/frontend/src/components/media/media.component.tsx@@ -48,6 +48,7 @@ import {DesignMediaIcon,VerticalDividerIcon,NoMediaIcon,+ TrashIcon,} from '@gitroom/frontend/components/ui/icons';import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store';import { useShallow } from 'zustand/react/shallow';@@ -57,6 +58,11 @@ const Polonto = dynamic(() => import('@gitroom/frontend/components/launches/polonto'));const showModalEmitter = new EventEmitter();+// on phones the media library takes the whole screen+export const mediaLibrarySize = () =>+ window.matchMedia('(max-width: 1025px)').matches+ ? '100%'+ : 'calc(100% - 80px)';export const Pagination: FC<{current: number;totalPages: number;@@ -131,7 +137,8 @@ export const Pagination: FC<{</div></li>{paginationItems.map((item, index) => (- <li key={index}>+ // phones show "2 / 6" instead of the page numbers+ <li key={index} className="mobile:hidden">{item === '...' ? (<span className="inline-flex items-center justify-center h-10 w-10 text-textColor select-none">...@@ -152,6 +159,9 @@ export const Pagination: FC<{)}</li>))}+ <li className="hidden mobile:flex h-10 items-center px-[8px] text-[14px] text-textColor">+ {current + 1} / {totalPages}+ </li><liclassName={clsx(current + 1 === totalPages && 'opacity-20 pointer-events-none'@@ -179,8 +189,8 @@ export const ShowMediaBoxModal: FC = () => {askClose: false,closeOnEscape: true,fullScreen: true,- size: 'calc(100% - 80px)',- height: 'calc(100% - 80px)',+ size: mediaLibrarySize(),+ height: mediaLibrarySize(),children: (close) => (<MediaBoxsetMedia={(media) => cCallback(media[0])}@@ -254,6 +264,19 @@ export const MediaBox: FC<{onEnd: () => setLoading(false),});+ // uploader messages (errors, processing warnings) stay after the upload ends+ const [uploadInfo, setUploadInfo] = useState(false);+ useEffect(() => {+ const show = () => setUploadInfo(true);+ const hide = () => setUploadInfo(false);+ uppy.on('info-visible', show);+ uppy.on('info-hidden', hide);+ return () => {+ uppy.off('info-visible', show);+ uppy.off('info-hidden', hide);+ };+ }, [uppy]);+const addRemoveSelected = useCallback((media: any) => () => {if (standalone) {@@ -396,6 +419,37 @@ export const MediaBox: FC<{[mutate]);+ // phones have no hover, so the selected media are deleted together+ const deleteSelected = useCallback(async () => {+ if (+ !(await deleteDialog(+ t(+ 'are_you_sure_you_want_to_delete_selected_media',+ 'Are you sure you want to delete the selected media?'+ )+ ))+ ) {+ return;+ }+ const toDelete = selected;+ setSelected([]);+ try {+ await Promise.all(+ toDelete.map((media: any) =>+ fetch(`/media/${media.id}`, {+ method: 'DELETE',+ })+ )+ );+ } finally {+ const result = await mutate();+ // deleting a whole last page leaves nothing to show there+ if (page >= (result?.pages || 1)) {+ setPage(Math.max(0, (result?.pages || 1) - 1));+ }+ }+ }, [selected, mutate, page, t]);+const btn = useMemo(() => {return (<button@@ -443,12 +497,35 @@ export const MediaBox: FC<{className="hidden"multiple={true}/>- <div className="flex gap-[8px]">+ <div className={clsx('flex gap-[8px]', !standalone && 'mobile:hidden')}>{btn}<ThirdPartyMediaLibrary onImported={() => mutate()} /></div>+ {!standalone && !!data?.results?.length && (+ <div className="hidden mobile:block basis-full text-[14px] font-[600]">+ {t(+ 'select_or_upload_pictures_max_1gb',+ 'Select or upload pictures (maximum 1 GB per upload).'+ )}+ </div>+ )}+ {!!selected.length && (+ <div+ onClick={deleteSelected}+ className="hidden mobile:flex basis-full justify-center items-center gap-[8px] h-[24px] text-[15px] font-[600] text-[#FF3F3F] cursor-pointer select-none"+ >+ <TrashIcon size={18} />+ {t('delete_selected', 'Delete Selected')} ({selected.length})+ </div>+ )}</div>- <div className="w-full pointer-events-none relative mt-[5px] mb-[5px]">+ <div+ className={clsx(+ 'w-full pointer-events-none relative mt-[5px] mb-[5px]',+ // phones only keep the upload progress while there is something to show+ !loading && !uploadInfo && 'mobile:hidden'+ )}+ ><div className="w-full h-[46px] overflow-hidden absolute left-0 bg-newBgColorInner uppyChange"><Dashboardheight={46}@@ -474,7 +551,7 @@ export const MediaBox: FC<{><divclassName={clsx(- 'absolute -left-[3px] -top-[3px] withp3 h-full overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner',+ 'absolute -left-[3px] -top-[3px] withp3 h-full overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner mobile:-left-[6px] mobile:-top-[6px] mobile:!w-[calc(100%+12px)] mobile:!h-[calc(100%+12px)]',!isLoading &&!data?.results?.length &&'flex justify-center items-center gap-[20px] flex-col'@@ -505,7 +582,7 @@ export const MediaBox: FC<{'You can also drag & drop pictures.')}</div>- <div className="forceChange flex gap-[8px]">+ <div className="forceChange flex gap-[8px] mobile:w-full mobile:max-w-[300px] mobile:child:flex-1">{btn}<ThirdPartyMediaLibrary onImported={() => mutate()} /></div>@@ -516,7 +593,7 @@ export const MediaBox: FC<{{[...new Array(16)].map((_, i) => (<divclassName={clsx(- 'px-[3px] py-[3px] float-left rounded-[6px] cursor-pointer w8-max mobile:!w-1/3 mobile:!max-w-[33.333%] aspect-square'+ 'px-[3px] py-[3px] mobile:p-[6px] float-left rounded-[6px] cursor-pointer w8-max mobile:!w-1/2 mobile:!max-w-[50%] aspect-square')}key={i}>@@ -537,7 +614,7 @@ export const MediaBox: FC<{.map((media: any) => (<divclassName={clsx(- 'group px-[3px] py-[3px] float-left rounded-[6px] w8-max mobile:!w-1/3 mobile:!max-w-[33.333%] aspect-square',+ 'group px-[3px] py-[3px] mobile:p-[6px] float-left rounded-[6px] w8-max mobile:!w-1/2 mobile:!max-w-[50%] aspect-square',!standalone && 'cursor-pointer')}key={media.id}@@ -557,18 +634,30 @@ export const MediaBox: FC<{</div>) : (<DeleteCircleIcon- className="cursor-pointer hidden z-[100] group-hover:block absolute -top-[5px] -end-[5px]"+ className={clsx(+ 'cursor-pointer hidden z-[100] group-hover:block absolute -top-[5px] -end-[5px]',+ // the picker deletes the selected media on phones+ !standalone && 'mobile:!hidden'+ )}onClick={deleteImage(media)}/>)}- <div className="absolute bottom-[10px] start-[10px] end-[10px] z-[100] truncate text-end mobile:text-[12px]">+ <div+ className={clsx(+ 'absolute bottom-[10px] start-[10px] end-[10px] z-[100] truncate text-end mobile:text-[12px]',+ !standalone && 'mobile:hidden'+ )}+ >{media.originalName}</div><div className="w-full h-full rounded-[6px] overflow-hidden relative"><div className="absolute z-[20] left-[50%] top-[50%] -translate-x-[50%] -translate-y-[50%]"><divonClick={maximize(media)}- className="cursor-pointer p-[4px] bg-black/40 hidden group-hover:block hover:scale-150 transition-all"+ className={clsx(+ 'cursor-pointer p-[4px] bg-black/40 hidden group-hover:block hover:scale-150 transition-all',+ !standalone && 'mobile:!hidden'+ )}><svgwidth="30"@@ -609,10 +698,16 @@ export const MediaBox: FC<{/>)}{!standalone && (- <div className="flex justify-end mt-[32px] gap-[8px]">+ <div className="flex justify-end mt-[32px] gap-[8px] mobile:flex-col mobile:mt-[16px] mobile:gap-[12px]">+ {!isLoading && !!data?.results?.length && (+ <div className="hidden mobile:flex gap-[8px] mobile:child:flex-1">+ {btn}+ <ThirdPartyMediaLibrary onImported={() => mutate()} />+ </div>+ )}<buttononClick={() => modals.closeCurrent()}- className="cursor-pointer h-[52px] px-[20px] items-center justify-center border border-newTextColor/10 flex rounded-[10px]"+ className="cursor-pointer h-[52px] px-[20px] items-center justify-center border border-newTextColor/10 flex rounded-[10px] mobile:hidden">{t('cancel', 'Cancel')}</button>@@ -620,7 +715,7 @@ export const MediaBox: FC<{<buttononClick={standalone ? () => {} : addMedia}disabled={selected.length === 0}- className="cursor-pointer text-white disabled:opacity-80 disabled:cursor-not-allowed h-[52px] px-[20px] items-center justify-center bg-[#612BD3] flex rounded-[10px]"+ className="cursor-pointer text-white disabled:opacity-80 disabled:cursor-not-allowed h-[52px] px-[20px] items-center justify-center bg-[#612BD3] flex rounded-[10px] mobile:h-[44px] mobile:rounded-[8px] mobile:font-[600] mobile:disabled:opacity-100 mobile:disabled:bg-btnSimple mobile:disabled:text-textItemBlur">{t('add_selected_media', 'Add selected media')}</button>@@ -654,6 +749,10 @@ export const MultiMediaComponent: FC<{onOpen?: () => void;onClose?: () => void;toolBar?: React.ReactNode;+ // after the tools, outside of their scroll+ toolBarEnd?: React.ReactNode;+ toolsClassName?: string;+ toolsStyle?: React.CSSProperties;information?: React.ReactNode;insertInContent?: (media: Array<{ id: string; path: string }>) => void;onChange: (event: {@@ -678,6 +777,9 @@ export const MultiMediaComponent: FC<{allData,dummy,toolBar,+ toolBarEnd,+ toolsClassName,+ toolsStyle,information,mediaNotAvailable,insertInContent,@@ -728,8 +830,8 @@ export const MultiMediaComponent: FC<{askClose: false,closeOnEscape: true,fullScreen: true,- size: 'calc(100% - 80px)',- height: 'calc(100% - 80px)',+ size: mediaLibrarySize(),+ height: mediaLibrarySize(),children: (close) => (<MediaBoxsetMedia={changeMedia}@@ -769,9 +871,9 @@ export const MultiMediaComponent: FC<{return (<>- <div className="b1 flex flex-col gap-[8px] rounded-bl-[8px] select-none w-full">- <div className="flex gap-[10px] px-[12px]">- {!!currentMedia && (+ <div className="b1 flex flex-col gap-[8px] mobile:gap-[16px] rounded-bl-[8px] select-none w-full">+ <div className="flex gap-[10px] px-[12px] mobile:px-0 mobile:empty:hidden">+ {!!currentMedia?.length && (<ReactSortablelist={currentMedia}setList={(value) =>@@ -783,7 +885,7 @@ export const MultiMediaComponent: FC<{handle=".dragging">{currentMedia.map((media, index) => (- <div key={media.id} className="cursor-pointer rounded-[5px] w-[40px] h-[40px] border-2 border-tableBorder relative flex transition-all">+ <div key={media.id} className="cursor-pointer rounded-[5px] w-[40px] h-[40px] mobile:w-[60px] mobile:h-[60px] mobile:rounded-[8px] border-2 mobile:border-0 border-tableBorder relative flex transition-all"><DragHandleIcon className="z-[20] dragging absolute pe-[1px] pb-[3px] -start-[4px] -top-[4px] cursor-move" /><div className="w-full h-full relative group">@@ -823,7 +925,7 @@ export const MultiMediaComponent: FC<{<VideoFrame url={mediaDirectory.set(media?.path)} />) : (<img- className="w-full h-full object-cover rounded-[4px]"+ className="w-full h-full object-cover rounded-[4px] mobile:rounded-[8px]"src={mediaDirectory.set(media?.path)}/>)}@@ -831,69 +933,90 @@ export const MultiMediaComponent: FC<{<CloseCircleIcononClick={clearMedia(index)}- className="absolute -end-[4px] -top-[4px] z-[20] rounded-full bg-white"+ className="absolute -end-[4px] -top-[4px] mobile:-end-[8px] mobile:-top-[8px] mobile:w-[24px] mobile:h-[24px] z-[20] rounded-full bg-white"/></div>))}</ReactSortable>)}</div>- <div className="flex gap-[8px] mobile:gap-x-[4px] mobile:gap-y-0 mobile:flex-wrap px-[12px] border-t border-newColColor w-full b1 text-textColor">- {!mediaNotAvailable && (- <div className="flex py-[10px] mobile:pb-0 b2 items-center gap-[4px] mobile:flex-wrap">- <div- onClick={showModal}- className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"- >- <div className="flex gap-[8px] items-center">- <div>- <InsertMediaIcon />+ {/* on phones the info stays with the post, the tools can move to the bottom */}+ {information && (+ <div className="hidden mobile:flex justify-end">{information}</div>+ )}+ <div+ className={clsx(+ 'flex gap-[8px] px-[12px] mobile:px-0 border-t border-newColColor mobile:border-t-0 w-full b1 text-textColor',+ toolsClassName+ )}+ style={toolsStyle}+ >+ <div className="flex gap-[8px] mobile:gap-[4px] mobile:flex-1 mobile:min-w-0 mobile:overflow-x-auto mobile:scrollbar-none b1">+ {!mediaNotAvailable && (+ <div className="flex py-[10px] mobile:py-0 mobile:shrink-0 b2 items-center gap-[4px]">+ <div+ onClick={showModal}+ className="cursor-pointer h-[30px] mobile:h-[40px] mobile:min-w-[40px] rounded-[6px] mobile:rounded-[8px] justify-center items-center flex bg-newColColor mobile:bg-newSettings px-[8px]"+ >+ <div className="flex gap-[8px] items-center">+ <div>+ <InsertMediaIcon className="mobile:w-[20px] mobile:h-[20px]" />+ </div>+ <div className="text-[10px] font-[600] maxMedia:hidden block">+ {t('insert_media', 'Insert Media')}+ </div></div>- <div className="text-[10px] font-[600] maxMedia:hidden block">- {t('insert_media', 'Insert Media')}+ </div>+ <div+ onClick={designMedia}+ className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px] mobile:hidden"+ >+ <div className="flex gap-[5px] items-center">+ <div>+ <DesignMediaIcon />+ </div>+ <div className="text-[10px] font-[600] iconBreak:hidden block">+ {t('design_media', 'Design Media')}+ </div></div></div>++ {!insertInContent && (+ <ThirdPartyMedia allData={allData} onChange={changeMedia} />+ )}++ {!!user?.tier?.ai && (+ <>+ <AiImage value={text} onChange={changeMedia} />+ {!insertInContent && (+ <AiVideo value={text} onChange={changeMedia} />+ )}+ </>+ )}</div>+ )}+ {!mediaNotAvailable && (<div- onClick={designMedia}- className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"+ className={clsx(+ 'text-newColColor h-full flex items-center mobile:shrink-0 mobile:px-[4px]',+ !toolBar && 'mobile:hidden'+ )}>- <div className="flex gap-[5px] items-center">- <div>- <DesignMediaIcon />- </div>- <div className="text-[10px] font-[600] iconBreak:hidden block">- {t('design_media', 'Design Media')}- </div>- </div>+ <VerticalDividerIcon /></div>-- {!insertInContent && (- <ThirdPartyMedia allData={allData} onChange={changeMedia} />- )}-- {!!user?.tier?.ai && (- <>- <AiImage value={text} onChange={changeMedia} />- {!insertInContent && (- <AiVideo value={text} onChange={changeMedia} />- )}- </>- )}- </div>- )}- {!mediaNotAvailable && (- <div className="text-newColColor h-full flex items-center mobile:hidden">- <VerticalDividerIcon />- </div>- )}- {!!toolBar && (- <div className="flex py-[10px] b2 items-center gap-[4px]">- {toolBar}- </div>- )}+ )}+ {!!toolBar && (+ <div className="flex py-[10px] mobile:py-0 mobile:shrink-0 b2 items-center gap-[4px]">+ {toolBar}+ </div>+ )}+ {!!toolBar && (+ <div className="hidden mobile:block sticky end-0 shrink-0 w-[40px] pointer-events-none bg-gradient-to-l rtl:bg-gradient-to-r from-newBgColorInner" />+ )}+ </div>+ {toolBarEnd}{information && (- <div className="flex-1 justify-end flex py-[10px] b2 items-center gap-[4px]">+ <div className="flex-1 justify-end flex py-[10px] mobile:hidden b2 items-center gap-[4px]">{information}</div>)}@@ -973,8 +1096,8 @@ export const MediaComponent: FC<{askClose: false,closeOnEscape: true,fullScreen: true,- size: 'calc(100% - 80px)',- height: 'calc(100% - 80px)',+ size: mediaLibrarySize(),+ height: mediaLibrarySize(),children: (close) => (<MediaBox setMedia={changeMedia} closeModal={close} type={type} />),@@ -1004,7 +1127,10 @@ export const MediaComponent: FC<{)}<div className="flex gap-[5px]"><Button onClick={showModal}>{t('select', 'Select')}</Button>- <Button onClick={showDesignModal} className="!bg-customColor45">+ <Button+ onClick={showDesignModal}+ className="!bg-customColor45 mobile:hidden"+ >{t('editor', 'Editor')}</Button><Button secondary={true} onClick={clearMedia}>diff --git a/apps/frontend/src/components/new-launch/a.component.tsx b/apps/frontend/src/components/new-launch/a.component.tsxindex c1f68ea18..d33198c5d 100644--- a/apps/frontend/src/components/new-launch/a.component.tsx+++ b/apps/frontend/src/components/new-launch/a.component.tsx@@ -38,12 +38,13 @@ export const AComponent: FC<{data-tooltip-id="tooltip"data-tooltip-content="Link"onClick={mark}- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/new-launch/add.post.button.tsx b/apps/frontend/src/components/new-launch/add.post.button.tsxindex c43c991e3..837fea7ce 100644--- a/apps/frontend/src/components/new-launch/add.post.button.tsx+++ b/apps/frontend/src/components/new-launch/add.post.button.tsx@@ -16,7 +16,7 @@ export const AddPostButton: FC<{<div className="flex"><divonClick={onClick}- className="select-none cursor-pointer h-[34px] rounded-[6px] flex bg-[#D82D7E] gap-[8px] justify-center items-center pl-[16px] pr-[20px] text-[13px] font-[600] mt-[12px]"+ className="select-none cursor-pointer h-[34px] rounded-[6px] flex bg-[#D82D7E] gap-[8px] justify-center items-center pl-[16px] pr-[20px] text-[13px] font-[600] mt-[12px] mobile:w-[40px] mobile:h-[40px] mobile:p-0 mobile:mt-0 mobile:rounded-[8px]"><div><svg@@ -35,7 +35,7 @@ export const AddPostButton: FC<{/></svg></div>- <div className="!text-white">+ <div className="!text-white mobile:hidden">{t(...(props.postComment === PostComment.ALL? ['add_comment_or_post', 'Add comment or post']diff --git a/apps/frontend/src/components/new-launch/bold.text.tsx b/apps/frontend/src/components/new-launch/bold.text.tsxindex 76ef1d80f..f0c7c13bd 100644--- a/apps/frontend/src/components/new-launch/bold.text.tsx+++ b/apps/frontend/src/components/new-launch/bold.text.tsx@@ -84,12 +84,13 @@ export const BoldText: FC<{data-tooltip-id="tooltip"data-tooltip-content="Bold Text"onClick={mark}- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/new-launch/bullets.component.tsx b/apps/frontend/src/components/new-launch/bullets.component.tsxindex 24cb33447..2fbf84666 100644--- a/apps/frontend/src/components/new-launch/bullets.component.tsx+++ b/apps/frontend/src/components/new-launch/bullets.component.tsx@@ -14,12 +14,13 @@ export const Bullets: FC<{data-tooltip-id="tooltip"data-tooltip-content="Bullets"onClick={bullet}- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/new-launch/editor.tsx b/apps/frontend/src/components/new-launch/editor.tsxindex 83a55a98a..43537010a 100644--- a/apps/frontend/src/components/new-launch/editor.tsx+++ b/apps/frontend/src/components/new-launch/editor.tsx@@ -241,6 +241,13 @@ export const EditorWrapper: FC<{return global;}, [internal, global]);+ // phones show one toolbar, for the post that is being edited+ const [activeIndex, setActiveIndex] = useState<number | null>(null);+ const [focusIndex, setFocusIndex] = useState<number | null>(null);+ // without comments only the first post is shown+ const last = comments ? items.length - 1 : 0;+ const active = canEdit ? Math.min(activeIndex ?? last, last) : -1;+const setValue = useCallback((value: string[]) => {const newValue = value.map((p, index) => {@@ -317,6 +324,7 @@ export const EditorWrapper: FC<{const changeOrder = useCallback((index: number) => (direction: 'up' | 'down') => {+ setFocusIndex(null);if (internal) {changeOrderInternal(current, index, direction);return setLoaded(false);@@ -351,6 +359,10 @@ export const EditorWrapper: FC<{top: document.querySelector('#social-content').scrollHeight,});}, 20);+ setActiveIndex(index + 1);+ if (window.matchMedia('(max-width: 1025px)').matches) {+ setFocusIndex(index + 1);+ }if (internal) {return addInternalValue(index, current, [{@@ -388,6 +400,8 @@ export const EditorWrapper: FC<{return;}+ setActiveIndex((p) => (p !== null && p > index ? p - 1 : p));+ setFocusIndex(null);if (internal) {deleteInternalValue(current, index);return setLoaded(false);@@ -399,6 +413,41 @@ export const EditorWrapper: FC<{[current, global, internal, t]);+ const postButtons = (index: number) => (+ <div className="flex items-center mobile:flex-row-reverse mobile:gap-[8px]">+ <div className="flex-1 mobile:flex-none mobile:empty:hidden">+ {comments && (+ <AddPostButton+ num={index}+ onClick={addValue(index)}+ postComment={postComment}+ />+ )}+ </div>+ {!!internal && !existingData?.integration && (+ <div+ className="mt-[12px] flex gap-[20px] items-center cursor-pointer select-none mobile:mt-0 mobile:w-[40px] mobile:h-[40px] mobile:justify-center mobile:rounded-[8px] mobile:bg-btnSimple"+ onClick={goBackToGlobal}+ >+ <div className="flex gap-[6px] items-center mobile:hidden">+ <div className="w-[8px] h-[8px] rounded-full bg-[#FC69FF]" />+ <div className="text-[14px] font-[600]">+ {t('editing_a_specific_network', 'Editing a Specific Network')}+ </div>+ </div>+ <div className="flex gap-[6px] items-center">+ <div>+ <ResetIcon />+ </div>+ <div className="text-[13px] font-[600] mobile:hidden">+ {t('back_to_global', 'Back to global')}+ </div>+ </div>+ </div>+ )}+ </div>+ );+if (!loaded || !loadedState) {return null;}@@ -406,10 +455,11 @@ export const EditorWrapper: FC<{return (<divclassName={clsx(- 'relative flex-col gap-[20px] flex-1 min-w-0',+ // on phones the toolbar is fixed at the bottom, the posts leave room for it+ 'relative flex-col gap-[20px] flex-1 min-w-0 mobile:flex mobile:gap-0 mobile:pb-[64px]',(items.length === 1 || !canEdit || !comments) && 'flex',((!canEdit && !isCreateSet) || !comments) &&- 'bg-newSettings rounded-[12px]'+ 'bg-newSettings mobile:bg-transparent rounded-[12px]')}>{isCreateSet && current !== 'global' && (@@ -419,16 +469,16 @@ export const EditorWrapper: FC<{<div className="w-[54px] h-[54px] rounded-full absolute z-[101] flex justify-center items-center"><LockIcon /></div>- <div className="w-[54px] h-[54px] rounded-full bg-newSettings opacity-80" />+ <div className="w-[54px] h-[54px] rounded-full bg-newSettings opacity-80 mobile:bg-newBgColorInner mobile:opacity-100" /></div>- <div className="text-[14px] font-[600] text-white">+ <div className="text-[14px] font-[600] text-white mobile:text-textColor">{t('cant_edit_networks_when_creating_set',"You can't edit networks when creating a set")}</div></div>- <div className="absolute w-full h-full left-0 top-0 bg-newBackdrop opacity-60 z-[100] rounded-[12px]" />+ <div className="absolute w-full h-full left-0 top-0 bg-newBackdrop opacity-60 mobile:bg-newSettings mobile:opacity-100 z-[100] rounded-[12px]" /></>)}{!canEdit && !isCreateSet && (@@ -444,9 +494,9 @@ export const EditorWrapper: FC<{<div className="w-[54px] h-[54px] rounded-full absolute z-[101] flex justify-center items-center"><LockIcon /></div>- <div className="w-[54px] h-[54px] rounded-full bg-newSettings opacity-80" />+ <div className="w-[54px] h-[54px] rounded-full bg-newSettings opacity-80 mobile:bg-newBgColorInner mobile:opacity-100" /></div>- <div className="text-[14px] font-[600] text-white">+ <div className="text-[14px] font-[600] text-white mobile:text-textColor">{t('click_to_exit_global_editing','Click this button to exit global editing and customize the post for this channel'@@ -458,28 +508,36 @@ export const EditorWrapper: FC<{</div></div></div>- <div className="absolute w-full h-full left-0 top-0 bg-newBackdrop opacity-60 z-[100] rounded-[12px]" />+ <div className="absolute w-full h-full left-0 top-0 bg-newBackdrop opacity-60 mobile:bg-newSettings mobile:opacity-100 z-[100] rounded-[12px]" /></>)}{items.map((g, index) => (<divkey={g.id}className={clsx(- 'relative flex flex-col gap-[20px] flex-1 bg-newSettings',+ 'relative flex flex-col gap-[20px] flex-1 bg-newSettings mobile:bg-transparent',+ index !== last && 'mobile:flex-none',index === 0 && 'rounded-t-[12px]',(index === items.length - 1 || !comments) && 'rounded-b-[12px]',!canEdit && !isCreateSet && 'blur-s',((!canEdit && index > 0) || (!comments && index > 0)) && 'hidden')}>- <div className="flex gap-[5px] flex-1 w-full min-w-0">+ <div className="flex gap-[5px] mobile:gap-[16px] flex-1 w-full min-w-0"><div className="flex-1 flex w-full min-w-0">{index > 0 && (- <div className="flex justify-center pl-[12px] text-newSep">+ <div className="flex justify-center pl-[12px] text-newSep mobile:hidden"><ConnectionLineIcon /></div>)}<Editor+ flat={true}+ active={active === index}+ autoFocus={focusIndex === index}+ onActive={() => {+ setActiveIndex(index);+ setFocusIndex(null);+ }}comments={comments}editorType={editor}inlineImages={editor === 'html' && inlineImages && index === 0}@@ -500,55 +558,29 @@ export const EditorWrapper: FC<{selectedIntegration={selectedIntegration}chars={chars}childButton={- <>- {(canEdit && items.length - 1 === index) || !comments ? (- <div className="flex items-center">- <div className="flex-1">- {comments && (- <AddPostButton- num={index}- onClick={addValue(index)}- postComment={postComment}- />- )}- </div>- {!!internal && !existingData?.integration && (- <div- className="mt-[12px] flex gap-[20px] items-center cursor-pointer select-none"- onClick={goBackToGlobal}- >- <div className="flex gap-[6px] items-center">- <div className="w-[8px] h-[8px] rounded-full bg-[#FC69FF]" />- <div className="text-[14px] font-[600]">- {t(- 'editing_a_specific_network',- 'Editing a Specific Network'- )}- </div>- </div>- <div className="flex gap-[6px] items-center">- <div>- <ResetIcon />- </div>- <div className="text-[13px] font-[600]">- {t('back_to_global', 'Back to global')}- </div>- </div>- </div>- )}- </div>- ) : null}- </>+ (canEdit && items.length - 1 === index) || !comments+ ? postButtons(index)+ : null}+ toolBarEnd={active === index ? postButtons(index) : undefined}/></div>{comments && (- <div className="flex flex-col items-center gap-[10px] pe-[12px]">- <UpDownArrow- isUp={index !== 0}- isDown={index !== items.length - 1}- onChange={changeOrder(index)}- />+ <div+ className={clsx(+ // on phones the icons sit in the corner, next to the first line+ 'flex flex-col items-center gap-[10px] pe-[12px] mobile:absolute mobile:top-[24px] mobile:end-0 mobile:z-[100] mobile:flex-row-reverse mobile:gap-[12px] mobile:pe-0',+ // the first post can't be deleted on phones, like the app+ index === 0 && 'mobile:hidden'+ )}+ >+ <div className="mobile:hidden">+ <UpDownArrow+ isUp={index !== 0}+ isDown={index !== items.length - 1}+ onChange={changeOrder(index)}+ />+ </div>{items.length > 1 && (<TrashIcononClick={deletePost(index)}@@ -573,6 +605,12 @@ export const EditorWrapper: FC<{};export const Editor: FC<{+ flat?: boolean;+ // phones: the post that is being edited shows the toolbar+ active?: boolean;+ autoFocus?: boolean;+ onActive?: () => void;+ toolBarEnd?: React.ReactNode;editorType?: 'none' | 'normal' | 'markdown' | 'html';inlineImages?: boolean;totalPosts: number;@@ -594,6 +632,11 @@ export const Editor: FC<{childButton?: React.ReactNode;}> = (props) => {const {+ flat,+ active,+ autoFocus,+ onActive,+ toolBarEnd,editorType = 'normal',inlineImages = false,allValues,@@ -832,16 +875,63 @@ export const Editor: FC<{}, 20);}, [showEditor]);+ // phones: a tap on an empty part of the post starts typing in it+ const focusOnEmpty = useCallback((e: React.MouseEvent<HTMLDivElement>) => {+ const control = (e.target as HTMLElement).closest(+ '.ProseMirror, .cursor-pointer, .group, .post-toolbar, button, input, aside, img, video'+ );+ if (+ !window.matchMedia('(max-width: 1025px)').matches ||+ editorRef?.current?.editor?.isFocused ||+ (control && e.currentTarget.contains(control))+ ) {+ return;+ }+ editorRef?.current?.editor?.commands?.focus('end');+ }, []);++ // phones: the toolbar of the edited post sits right above the on-screen keyboard+ const [keyboard, setKeyboard] = useState(0);+ useEffect(() => {+ const viewport = window.visualViewport;+ if (!flat || !active || !viewport) {+ return;+ }++ const update = () => {+ setKeyboard(+ Math.max(0, window.innerHeight - viewport.height - viewport.offsetTop)+ );+ };+ update();+ viewport.addEventListener('resize', update);+ viewport.addEventListener('scroll', update);+ return () => {+ viewport.removeEventListener('resize', update);+ viewport.removeEventListener('scroll', update);+ };+ }, [flat, active]);+if (!showEditor) {return null;}return (- <div className="flex flex-col gap-[20px] flex-1 min-w-0">+ <div+ className={clsx(+ 'flex flex-col gap-[20px] flex-1 min-w-0',+ flat && 'flat-editor'+ )}+ onClick={flat ? focusOnEmpty : undefined}+ ><divclassName={clsx('relative flex-1 px-[12px] pt-[12px] pb-[12px] flex flex-col',- num > 0 && '!rounded-bs-[0]'+ num > 0 && '!rounded-bs-[0]',+ // the composer has no cards on phones, the text lines up with the page+ flat && 'mobile:px-0 mobile:pb-0',+ // the space above a comment belongs to it, so a tap there types in it+ flat && (num ? 'mobile:pt-[24px]' : 'mobile:pt-0'))}id={id}>@@ -855,18 +945,31 @@ export const Editor: FC<{>{t('drop_files_here_to_upload', 'Drop your files here to upload')}</div>- <div className="px-[10px] pt-[10px] bg-newBgColorInner rounded-t-[6px] relative z-[99]">+ <div+ onFocus={onActive}+ className={clsx(+ 'px-[10px] pt-[10px] bg-newBgColorInner rounded-t-[6px] relative z-[99]',+ flat && 'mobile:px-0 mobile:pt-0',+ flat && !active && 'mobile:text-textItemBlur',+ // room for the delay and delete icons of a comment+ flat && !!num && 'mobile:pe-[68px]'+ )}+ ><OnlyEditorvalue={props.value}editorType={editorType}inlineImages={inlineImages}onChange={props.onChange}paste={paste}+ autoFocus={autoFocus}ref={editorRef}/></div><div- className="bg-newBgColorInner flex-1"+ className={clsx(+ 'bg-newBgColorInner flex-1',+ flat && 'mobile:hidden'+ )}onClick={() => {if (editorRef?.current?.editor?.isFocused) {return;@@ -875,7 +978,7 @@ export const Editor: FC<{}}/><div className="w-full pointer-events-none">- <div className="w-full h-[46px] overflow-hidden absolute left-0 bg-newBgColorInner uppyChange">+ <div className="w-full h-[46px] overflow-hidden absolute left-0 bg-newBgColorInner uppyChange mobile:isolate"><Dashboardheight={46}uppy={uppy}@@ -890,7 +993,11 @@ export const Editor: FC<{</div></div><div- className="w-full h-[46px] bg-newBgColorInner cursor-text"+ className={clsx(+ 'w-full h-[46px] bg-newBgColorInner cursor-text',+ // the upload progress shows over this space+ flat && !loading && 'mobile:hidden'+ )}onClick={() => {if (editorRef?.current?.editor?.isFocused) {return;@@ -898,106 +1005,141 @@ export const Editor: FC<{editorRef?.current?.editor?.commands?.focus('end');}}/>- <div className="flex bg-newBgColorInner rounded-b-[6px] cursor-default">- {setImages && (- <MultiMediaComponent- mediaNotAvailable={num > 0 && comments === 'no-media'}- allData={allValues}- text={valueWithoutHtml}- label={t('attachments', 'Attachments')}- description=""- value={props.pictures}- dummy={dummy}- name="image"- insertInContent={- inlineImages- ? (media) =>- insertImages(editorRef?.current?.editor, media)- : undefined- }- information={- <InformationComponent- isPicture={pictures?.length > 0}- chars={chars}- totalChars={valueWithoutHtml.length}- totalAllowedChars={props.totalChars}- text={valueWithoutHtml}- />- }- toolBar={- <div className="flex gap-[5px] mobile:flex-wrap">- <SignatureBox editor={editorRef?.current?.editor} />- {editorType !== 'none' && (- <>- <UText- editor={editorRef?.current?.editor}- currentValue={props.value!}- />- <BoldText- editor={editorRef?.current?.editor}- currentValue={props.value!}- />- </>- )}- {(editorType === 'markdown' || editorType === 'html') &&- identifier !== 'telegram' && (+ <div className={clsx('flex flex-col', flat && 'mobile:pt-[16px]')}>+ <div className="flex bg-newBgColorInner rounded-b-[6px] cursor-default">+ {setImages && (+ <MultiMediaComponent+ mediaNotAvailable={num > 0 && comments === 'no-media'}+ allData={allValues}+ text={valueWithoutHtml}+ label={t('attachments', 'Attachments')}+ description=""+ value={props.pictures}+ dummy={dummy}+ name="image"+ insertInContent={+ inlineImages+ ? (media) =>+ insertImages(editorRef?.current?.editor, media)+ : undefined+ }+ information={+ <InformationComponent+ isPicture={pictures?.length > 0}+ chars={chars}+ totalChars={valueWithoutHtml.length}+ totalAllowedChars={props.totalChars}+ text={valueWithoutHtml}+ />+ }+ toolBar={+ <div className="flex gap-[5px] mobile:gap-[4px]">+ <SignatureBox editor={editorRef?.current?.editor} />+ {editorType !== 'none' && (<>- <AComponent+ <UTexteditor={editorRef?.current?.editor}currentValue={props.value!}/>- <Bullets- editor={editorRef?.current?.editor}- currentValue={props.value!}- />- <HeadingComponent+ <BoldTexteditor={editorRef?.current?.editor}currentValue={props.value!}/></>)}- <div- data-tooltip-id="tooltip"- data-tooltip-content={t('insert_emoji', 'Insert Emoji')}- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"- onClick={() => setEmojiPickerOpen(!emojiPickerOpen)}- >- <EmojiIcon />- </div>- <div className="relative">+ {(editorType === 'markdown' || editorType === 'html') &&+ identifier !== 'telegram' && (+ <>+ <AComponent+ editor={editorRef?.current?.editor}+ currentValue={props.value!}+ />+ <Bullets+ editor={editorRef?.current?.editor}+ currentValue={props.value!}+ />+ <HeadingComponent+ editor={editorRef?.current?.editor}+ currentValue={props.value!}+ />+ </>+ )}<div- className={clsx(- 'absolute z-[500] -start-[50px]',- num === 0 && allValues?.length > 1- ? 'top-[35px]'- : 'bottom-[35px]'+ data-tooltip-id="tooltip"+ data-tooltip-content={t(+ 'insert_emoji',+ 'Insert Emoji')}+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"+ onClick={() => setEmojiPickerOpen(!emojiPickerOpen)}>- <EmojiPicker- height={400}- theme={- (localStorage.getItem('mode') as Theme) ||- Theme.DARK- }- onEmojiClick={(e) => {- addText(e.emoji);- setEmojiPickerOpen(false);- }}- open={emojiPickerOpen}- />+ <EmojiIcon className="mobile:w-[20px] mobile:h-[20px]" />+ </div>+ <div className="relative">+ {emojiPickerOpen && (+ <div+ className="hidden mobile:block fixed inset-0 z-[499]"+ onClick={(e) => {+ e.stopPropagation();+ setEmojiPickerOpen(false);+ }}+ />+ )}+ <div+ className={clsx(+ 'absolute z-[500] -start-[50px]',+ num === 0 && allValues?.length > 1+ ? 'top-[35px]'+ : 'bottom-[35px]',+ // the toolbar scrolls on phones and would cut the picker+ 'mobile:fixed mobile:inset-x-0 mobile:top-auto mobile:bottom-[72px] mobile:flex mobile:justify-center mobile:pointer-events-none mobile:child:pointer-events-auto'+ )}+ >+ <EmojiPicker+ height={400}+ theme={+ (localStorage.getItem('mode') as Theme) ||+ Theme.DARK+ }+ onEmojiClick={(e) => {+ addText(e.emoji);+ setEmojiPickerOpen(false);+ }}+ open={emojiPickerOpen}+ />+ </div></div></div>- </div>- }- onChange={(value) => {- setImages(value.target.value);- }}- onOpen={() => {}}- onClose={() => {}}- />- )}+ }+ toolsClassName={+ flat+ ? active+ ? clsx(+ 'post-toolbar mobile:fixed mobile:bottom-0 mobile:inset-x-0 mobile:items-center mobile:px-[16px] mobile:py-[12px] mobile:bg-newBgColorInner',+ // the picker opens from the bar and has to cover the top bar+ emojiPickerOpen ? 'mobile:z-[500]' : 'mobile:z-[440]'+ )+ : 'mobile:hidden'+ : undefined+ }+ toolsStyle={+ flat && active && keyboard ? { bottom: keyboard } : undefined+ }+ toolBarEnd={+ flat && active ? (+ <div className="hidden mobile:flex">{toolBarEnd}</div>+ ) : undefined+ }+ onChange={(value) => {+ setImages(value.target.value);+ }}+ onOpen={() => {}}+ onClose={() => {}}+ />+ )}+ </div>+ <div className="mobile:hidden">{childButton}</div></div>- <div>{childButton}</div></div></div></div>@@ -1013,8 +1155,9 @@ export const OnlyEditor = forwardRef<value: string;onChange: (value: string) => void;paste?: (event: ClipboardEvent | File[], slice?: Slice) => boolean;+ autoFocus?: boolean;}->(({ editorType, inlineImages, value, onChange, paste }, ref) => {+>(({ editorType, inlineImages, value, onChange, paste, autoFocus }, ref) => {const t = useT();const fetch = useFetch();@@ -1195,6 +1338,7 @@ export const OnlyEditor = forwardRef<}),],content: value || '',+ autofocus: autoFocus ? 'end' : false,shouldRerenderOnTransaction: true,immediatelyRender: false,editorProps: {diff --git a/apps/frontend/src/components/new-launch/heading.component.tsx b/apps/frontend/src/components/new-launch/heading.component.tsxindex 99ba129cf..e84059849 100644--- a/apps/frontend/src/components/new-launch/heading.component.tsx+++ b/apps/frontend/src/components/new-launch/heading.component.tsx@@ -13,13 +13,14 @@ export const HeadingComponent: FC<{};return (- <div className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center group relative">+ <div className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center group relative mobile:w-auto mobile:h-auto mobile:bg-transparent"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"viewBox="0 0 16 16"fill="none"+ className="mobile:hidden"><pathd="M3.9974 2.66602V13.3327M11.9974 2.66602V13.3327M5.33073 2.66602H2.66406M11.9974 7.99935L3.9974 7.99935M5.33073 13.3327H2.66406M13.3307 13.3327H10.6641M13.3307 2.66602H10.6641"@@ -32,12 +33,16 @@ export const HeadingComponent: FC<{<divdata-tooltip-id="tooltip"data-tooltip-content="Title"- className="flex p-[10px] gap-[5px] -left-[50%] rounded-[6px] bottom-[100%] opacity-0 pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100 bg-newColColor border border-newColColor z-[100] absolute transition-all"+ className="flex p-[10px] gap-[5px] -left-[50%] rounded-[6px] bottom-[100%] opacity-0 pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100 bg-newColColor border border-newColColor z-[100] absolute transition-all mobile:static mobile:p-0 mobile:gap-[4px] mobile:opacity-100 mobile:pointer-events-auto mobile:bg-transparent mobile:border-0">- <div onClick={setHeading(1)}>+ <div+ onClick={setHeading(1)}+ className="mobile:w-[40px] mobile:h-[40px] mobile:rounded-[8px] mobile:bg-newSettings mobile:flex mobile:justify-center mobile:items-center"+ ><svgwidth="20"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 24 24"fill="none"xmlns="http://www.w3.org/2000/svg"@@ -48,10 +53,14 @@ export const HeadingComponent: FC<{/></svg></div>- <div onClick={setHeading(2)}>+ <div+ onClick={setHeading(2)}+ className="mobile:w-[40px] mobile:h-[40px] mobile:rounded-[8px] mobile:bg-newSettings mobile:flex mobile:justify-center mobile:items-center"+ ><svgwidth="20"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 24 24"fill="none"xmlns="http://www.w3.org/2000/svg"@@ -62,10 +71,14 @@ export const HeadingComponent: FC<{/></svg></div>- <div onClick={setHeading(3)}>+ <div+ onClick={setHeading(3)}+ className="mobile:w-[40px] mobile:h-[40px] mobile:rounded-[8px] mobile:bg-newSettings mobile:flex mobile:justify-center mobile:items-center"+ ><svgwidth="20"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 24 24"fill="none"xmlns="http://www.w3.org/2000/svg"diff --git a/apps/frontend/src/components/new-launch/manage.modal.tsx b/apps/frontend/src/components/new-launch/manage.modal.tsxindex 9ef635dad..2a2d10986 100644--- a/apps/frontend/src/components/new-launch/manage.modal.tsx+++ b/apps/frontend/src/components/new-launch/manage.modal.tsx@@ -15,10 +15,17 @@ import { useT } from '@gitroom/react/translation/get.transation.service.client';import { PicksSocialsComponent } from '@gitroom/frontend/components/new-launch/picks.socials.component';import { EditorWrapper } from '@gitroom/frontend/components/new-launch/editor';import { SelectCurrent } from '@gitroom/frontend/components/new-launch/select.current';-import { ShowAllProviders } from '@gitroom/frontend/components/new-launch/providers/show.all.providers';+import {+ Providers,+ ShowAllProviders,+} from '@gitroom/frontend/components/new-launch/providers/show.all.providers';+import { getProviderSettingsMeta } from '@gitroom/frontend/components/new-launch/providers/high.order.provider';import { useExistingData } from '@gitroom/frontend/components/launches/helpers/use.existing.data';import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store';-import { DatePicker } from '@gitroom/frontend/components/launches/helpers/date.picker';+import {+ DatePicker,+ DatePickerPanel,+} from '@gitroom/frontend/components/launches/helpers/date.picker';import { useShallow } from 'zustand/react/shallow';import { RepeatComponent } from '@gitroom/frontend/components/launches/repeat.component';import { TagsComponent } from '@gitroom/frontend/components/launches/tags.component';@@ -34,11 +41,26 @@ import { DummyCodeComponent } from '@gitroom/frontend/components/new-launch/dummimport { CreationMethodBadge } from '@gitroom/frontend/components/launches/creation.method.badge';import {SettingsIcon,+ SettingsOutlineIcon,ChevronDownIcon,CloseIcon,TrashIcon,DropdownArrowSmallIcon,+ PlusIcon,+ EyeIcon,+ TagIcon,+ RepeatIcon,} from '@gitroom/frontend/components/ui/icons';+import {+ MobileTopBar,+ MobileTopBarAction,+} from '@gitroom/frontend/components/new-launch/mobile.top.bar';+import {+ BottomSheet,+ BottomSheetButton,+ BottomSheetHeader,+ BottomSheetRow,+} from '@gitroom/frontend/components/ui/bottom.sheet.component';import { useHasScroll } from '@gitroom/frontend/components/ui/is.scroll.hook';import { useShortlinkPreference } from '@gitroom/frontend/components/settings/shortlink-preference.component';import dayjs from 'dayjs';@@ -55,6 +77,9 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {const modal = useModals();const [showSettings, setShowSettings] = useState(false);const [mobileTab, setMobileTab] = useState<'edit' | 'preview'>('edit');+ const [mobileSheet, setMobileSheet] = useState<+ 'channels' | 'settings' | 'tags' | 'repeat' | 'date' | null+ >(null);const [showPostNow, setShowPostNow] = useState(false);const postNowRef = useClickOutside<HTMLDivElement>(() => {setShowPostNow(false);@@ -96,6 +121,8 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {activateExitButton: state.activateExitButton,})));+ // the date sheet applies its changes only on save+ const [dateDraft, setDateDraft] = useState(date);useEffect(() => {if (hide) {@@ -107,10 +134,10 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {if (current === 'global') {return (<div className="flex items-center gap-[10px]">- <div className="relative">+ <div className="relative mobile:hidden"><SettingsIcon size={15} className="text-white" /></div>- <div>Settings</div>+ <div>{t('settings', 'Settings')}</div></div>);}@@ -119,7 +146,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {return (<div className="flex items-center gap-[10px]">- <div className="relative">+ <div className="relative mobile:hidden"><imgsrc={`/icons/platforms/${currentIntegration.identifier}.png`}className="w-[20px] h-[20px] rounded-[4px]"@@ -488,55 +515,136 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {[ref, repeater, tags, date, addEditSets, dummy, shortlinkPreferenceData]);+ const scheduleLabel = dummy+ ? t('create_output', 'Create output')+ : !existingData?.integration+ ? t('add_to_calendar', 'Add to calendar')+ : existingData?.posts?.[0]?.state === 'DRAFT'+ ? t('schedule', 'Schedule')+ : t('update', 'Update');++ const mobileActions: MobileTopBarAction[] = addEditSets+ ? [+ {+ label: t('save_set', 'Save Set'),+ variant: 'primary',+ onClick: schedule('draft'),+ },+ ]+ : [+ {+ label: scheduleLabel,+ variant: 'primary',+ onClick: schedule('schedule'),+ },+ ...(!dummy+ ? [+ {+ label: t('post_now', 'Post Now'),+ variant: 'secondary' as const,+ onClick: schedule('now'),+ },+ ]+ : []),+ {+ label: t('save_as_draft', 'Save as Draft'),+ variant: 'tertiary',+ onClick: schedule('draft'),+ },+ ];++ // the settings sheet links to the channel settings only when there are any+ const hasChannelSettings = useMemo(() => {+ const identifiers =+ current === 'global'+ ? selectedIntegrations.map((p) => p.integration.identifier)+ : [integrations.find((p) => p.id === current)?.identifier];++ return identifiers.some(+ (identifier) =>+ !!getProviderSettingsMeta(+ Providers.find((p) => p.identifier === identifier)?.component+ )?.SettingsComponent+ );+ }, [current, selectedIntegrations, integrations]);++ // on phones, the settings, tags, repeat and delete live in a settings sheet+ const settingsButton = !dummy && (+ <div+ onClick={() => setMobileSheet('settings')}+ className="hidden mobile:flex shrink-0 w-[32px] h-[44px] justify-end items-center cursor-pointer text-[#A3A3A3]"+ >+ <SettingsOutlineIcon />+ </div>+ );++ // phones have no room for the preview column, it replaces the editor instead+ const previewButton = (+ <div+ onClick={() => setMobileTab(mobileTab === 'preview' ? 'edit' : 'preview')}+ className={clsx(+ 'hidden mobile:flex shrink-0 w-[32px] h-[44px] justify-end items-center cursor-pointer',+ mobileTab === 'preview' ? 'text-[#FC69FF]' : 'text-[#A3A3A3]'+ )}+ >+ <EyeIcon />+ </div>+ );+return (<div className="w-full h-full flex-1 p-[40px] mobile:p-0 mobile:h-auto mobile:min-h-full flex relative"><div className="flex flex-1 min-w-0 bg-newBgColorInner rounded-[20px] mobile:rounded-none flex-col">+ <MobileTopBar+ onBack={askClose}+ actions={mobileActions}+ disabled={selectedIntegrations.length === 0 || loading || locked}+ loading={loading}+ >+ <DatePicker+ onChange={setDate}+ date={date}+ onOpen={() => {+ setDateDraft(date);+ setMobileSheet('date');+ }}+ />+ </MobileTopBar><div className="flex-1 flex mobile:contents">- <div className="flex flex-col flex-1 min-w-0 border-e border-newBorder mobile:border-e-0 mobile:flex-none">- <div className="bg-newBgColor h-[65px] rounded-s-[20px] !rounded-b-[0] mobile:rounded-none flex items-center gap-[12px] px-[20px] mobile:px-[16px] text-[20px] font-[600]">+ <div+ className={clsx(+ 'flex flex-col flex-1 min-w-0 border-e border-newBorder mobile:border-e-0',+ mobileTab === 'preview' && 'mobile:flex-none'+ )}+ >+ <div className="bg-newBgColor h-[65px] rounded-s-[20px] !rounded-b-[0] mobile:hidden flex items-center gap-[12px] px-[20px] text-[20px] font-[600]">{t('create_post_title', 'Create Post')}<CreationMethodBadgecreationMethod={existingData?.posts?.[0]?.creationMethod}size="sm"/>- <div className="hidden mobile:block ms-auto cursor-pointer">- <CloseIcon onClick={askClose} className="text-[#A3A3A3]" />- </div>- </div>- <div className="hidden mobile:flex mx-[12px] mt-[12px] p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500]">- {(['edit', 'preview'] as const).map((tab) => (- <div- key={tab}- onClick={() => setMobileTab(tab)}- className={clsx(- 'flex-1 pt-[6px] pb-[5px] cursor-pointer text-center rounded-[6px]',- mobileTab === tab && 'text-textItemFocused bg-boxFocused'- )}- >- {tab === 'edit'- ? t('edit', 'Edit')- : t('post_preview', 'Post Preview')}- </div>- ))}</div>- <div- className={clsx(- 'flex-1 flex flex-col gap-[16px]',- mobileTab === 'preview' && 'mobile:hidden'- )}- >+ <div className="flex-1 flex flex-col gap-[16px]"><div- className={clsx('flex-1 relative', showSettings && 'hidden')}+ className={clsx(+ // mobile:flex wins over hidden, the settings sheet opens above the editor on phones+ 'flex-1 relative mobile:flex mobile:flex-col',+ showSettings && 'hidden'+ )}><divid="social-content"- className="gap-[32px] flex flex-col pe-[8px] pt-[20px] ps-[20px] mobile:px-[12px] mobile:static absolute top-0 left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"+ className="gap-[32px] mobile:gap-[16px] flex flex-col pe-[8px] pt-[20px] ps-[20px] mobile:px-[16px] mobile:pt-[12px] mobile:static mobile:flex-1 absolute top-0 left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner">- <div className="flex w-full">+ <div+ className={clsx(+ 'flex w-full',+ !existingData.integration && 'mobile:hidden'+ )}+ ><div className="flex flex-1"><PicksSocialsComponent toolTip={true} /></div>- <div>+ <div className="mobile:hidden">{!dummy && (<SelectCustomeronChange={changeCustomer}@@ -544,71 +652,131 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {/>)}</div>+ {!!existingData.integration && (+ <>+ <div className="hidden mobile:flex items-center">+ <CreationMethodBadge+ creationMethod={+ existingData?.posts?.[0]?.creationMethod+ }+ size="sm"+ />+ </div>+ {previewButton}+ {settingsButton}+ </>+ )}</div>- <div className="flex flex-1 gap-[6px] flex-col">- <div>{!existingData.integration && <SelectCurrent />}</div>- <div className="flex-1 flex">+ <div className="flex flex-1 gap-[6px] mobile:gap-[16px] flex-col">+ <div className="flex mobile:items-center mobile:gap-[4px]">+ <div className="flex-1 mobile:flex-initial mobile:min-w-0">+ {!existingData.integration && <SelectCurrent />}+ </div>+ {!existingData.integration && (+ <>+ <div+ onClick={() => setMobileSheet('channels')}+ className="hidden mobile:flex shrink-0 w-[44px] h-[44px] rounded-[8px] bg-btnSimple justify-center items-center cursor-pointer"+ >+ <PlusIcon size={24} />+ </div>+ <div className="hidden mobile:block flex-1" />+ {previewButton}+ {settingsButton}+ </>+ )}+ </div>+ <div+ className={clsx(+ 'flex-1 flex',+ mobileTab === 'preview' && 'mobile:hidden'+ )}+ >{!hide && <EditorWrapper totalPosts={1} value="" />}</div><divid="social-empty"className={clsx(- 'pb-[16px]'+ 'pb-[16px] mobile:pb-0'// current !== 'global' && 'hidden')}/></div></div></div>+ {/* on phones the settings open as a bottom sheet */}<div- id="wrapper-settings"- className={clsx(- 'pb-[20px] px-[20px] mobile:px-[12px] select-none',- showSettings && 'flex-1 flex pt-[20px]',- current === 'global' && 'hidden'- )}+ className={clsx('contents', !showSettings && 'mobile:hidden')}>- <div className="flex-1 flex flex-col rounded-[12px] gap-[12px] overflow-hidden bg-newSettings">+ {showSettings && (<div- onClick={() => setShowSettings(!showSettings)}- className={clsx(- 'bg-[#612BD3] rounded-[12px] flex items-center gap-[8px] cursor-pointer p-[12px]',- showSettings ? '!rounded-b-none' : ''- )}- >- <div className="flex-1 text-[14px] font-[600] text-white">- {currentIntegrationText}- </div>- <div>- <ChevronDownIcon- rotated={showSettings}- className="text-white"+ onClick={() => setShowSettings(false)}+ className="hidden mobile:block fixed inset-0 z-[599] bg-popup backdrop-blur-[8px] animate-fadeIn touch-none"+ />+ )}+ <div+ id="wrapper-settings"+ className={clsx(+ 'pb-[20px] px-[20px] select-none',+ showSettings &&+ 'flex-1 flex pt-[20px] mobile:fixed mobile:inset-x-0 mobile:bottom-0 mobile:z-[600] mobile:max-h-[90%] mobile:p-0',+ current === 'global' && 'hidden'+ )}+ >+ <div className="flex-1 flex flex-col rounded-[12px] gap-[12px] overflow-hidden bg-newSettings mobile:rounded-none mobile:rounded-t-[24px] mobile:gap-0 mobile:pt-[8px] mobile:pb-[24px] mobile:bg-newBgColorInner mobile:animate-fade">+ <div className="hidden mobile:contents">+ <BottomSheetHeader+ title={currentIntegrationText}+ onClose={() => setShowSettings(false)}/></div>- </div>- <div- className={clsx(- !showSettings ? 'hidden' : 'flex-1',- 'text-[14px] text-textColor font-[500] relative'- )}- >- <div className="absolute mobile:static left-0 top-0 w-full h-full mobile:h-auto flex flex-col overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newBgColorInner scrollbar-track-newColColor">- <div- id="social-settings"- className="flex flex-col gap-[20px] bg-newBgColor"+ <div+ onClick={() => setShowSettings(!showSettings)}+ className={clsx(+ 'bg-[#612BD3] rounded-[12px] flex items-center gap-[8px] cursor-pointer p-[12px] mobile:hidden',+ showSettings ? '!rounded-b-none' : ''+ )}+ >+ <div className="flex-1 text-[14px] font-[600] text-white">+ {currentIntegrationText}+ </div>+ <div>+ <ChevronDownIcon+ rotated={showSettings}+ className="text-white"+ />+ </div>+ </div>+ <div+ className={clsx(+ !showSettings ? 'hidden' : 'flex-1',+ 'text-[14px] text-textColor font-[500] relative mobile:min-h-0 mobile:overflow-y-auto mobile:overscroll-contain'+ )}+ >+ <div className="absolute mobile:static left-0 top-0 w-full h-full mobile:h-auto flex flex-col overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newBgColorInner scrollbar-track-newColColor">+ <div+ id="social-settings"+ className="flex flex-col gap-[20px] bg-newBgColor mobile:bg-transparent"+ />+ </div>+ </div>+ <div className="hidden mobile:contents">+ <BottomSheetButton+ label={t('done', 'Done')}+ onClick={() => setShowSettings(false)}/></div>+ <style>+ {`#social-settings [data-id="${current}"] {display: block !important;}`}+ </style></div>- <style>- {`#social-settings [data-id="${current}"] {display: block !important;}`}- </style></div></div></div></div><divclassName={clsx(- 'w-[580px] tablet:w-[440px] mobile:!w-full flex flex-col mobile:order-3 mobile:flex-1',+ 'w-[580px] tablet:w-[440px] mobile:!w-full flex flex-col mobile:flex-1',mobileTab === 'edit' && 'mobile:hidden')}>@@ -621,21 +789,17 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {<div className="flex-1 relative"><ScrollablescrollClasses="!pe-[20px]"- className="absolute mobile:static top-0 p-[20px] pe-[8px] mobile:p-[12px] left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"+ className="absolute mobile:static top-0 p-[20px] pe-[8px] mobile:p-[16px] left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"><ShowAllProviders ref={ref} /></Scrollable></div></div></div>- <div className="select-none h-[84px] py-[20px] border-t border-newBorder flex items-center mobile:contents">- <div- className={clsx(- 'flex-1 flex ps-[20px] gap-[8px] mobile:order-2 mobile:flex-wrap mobile:flex-none mobile:p-[12px]',- mobileTab === 'preview' && 'mobile:hidden'- )}- >- {!dummy && (+ <div className="select-none h-[84px] py-[20px] border-t border-newBorder flex items-center mobile:hidden">+ <div className="flex-1 flex ps-[20px] gap-[8px]">+ {/* keep a single tags component mounted, the tags sheet has its own */}+ {!dummy && mobileSheet !== 'tags' && (<TagsComponentname="tags"label={t('tags', 'Tags')}@@ -650,7 +814,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {<RepeatComponent repeat={repeater} onChange={setRepeater} />)}</div>- <div className="pe-[20px] flex items-center justify-end gap-[8px] mobile:order-4 mobile:sticky mobile:bottom-0 mobile:z-[20] mobile:mt-auto mobile:flex-wrap mobile:p-[12px] mobile:bg-newBgColorInner mobile:border-t mobile:border-newBorder">+ <div className="pe-[20px] flex items-center justify-end gap-[8px]">{existingData?.integration && (<buttononClick={deletePost}@@ -683,7 +847,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {)}{addEditSets && (<button- className="text-white text-[15px] font-[600] min-w-[180px] mobile:basis-full btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"+ className="text-white text-[15px] font-[600] min-w-[180px] btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"disabled={selectedIntegrations.length === 0 || loading || locked}@@ -693,16 +857,13 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {</button>)}{!addEditSets && (- <div- ref={postNowRef}- className="group cursor-pointer relative mobile:basis-full"- >+ <div ref={postNowRef} className="group cursor-pointer relative"><buttondisabled={selectedIntegrations.length === 0 || loading || locked}onClick={schedule('schedule')}- className="text-white relative min-w-[180px] mobile:w-full btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"+ className="text-white relative min-w-[180px] btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]">{loading && (<div className="absolute left-[50%] top-[50%] -translate-y-[50%] -translate-x-[50%]">@@ -711,19 +872,13 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {)}<divclassName={clsx(- 'text-[15px] font-[600] mobile:flex-1',+ 'text-[15px] font-[600]',loading && 'invisible')}>{selectedIntegrations.length === 0? t('check_circles_above', 'Check the circles above')- : dummy- ? t('create_output', 'Create output')- : !existingData?.integration- ? t('add_to_calendar', 'Add to calendar')- : existingData?.posts?.[0]?.state === 'DRAFT'- ? t('schedule', 'Schedule')- : t('update', 'Update')}+ : scheduleLabel}</div>{!dummy && (<div@@ -731,7 +886,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {e.stopPropagation();setShowPostNow(!showPostNow);}}- className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] mobile:pt-0 mobile:h-[44px] mobile:w-[44px] mobile:-me-[16px] mobile:border-s mobile:border-white/20 arrow-change"+ className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] arrow-change"><DropdownArrowSmallIconclassName={clsx(@@ -750,7 +905,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {selectedIntegrations.length === 0 || loading || locked}className={clsx(- 'rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 absolute bottom-[100%] -left-[12px] mobile:left-0 p-[12px] mobile:px-0 w-[206px] mobile:w-full bg-newBgColorInner',+ 'rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 absolute bottom-[100%] -left-[12px] p-[12px] w-[206px] bg-newBgColorInner',showPostNow ? 'flex' : 'hidden group-hover:flex')}>@@ -764,8 +919,131 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {</div></div></div>+ {mobileSheet === 'channels' && (+ <BottomSheet+ title={t('select_channels', 'Select Channels')}+ onClose={() => setMobileSheet(null)}+ button={{+ label: t('done', 'Done'),+ onClick: () => setMobileSheet(null),+ disabled: selectedIntegrations.length === 0,+ }}+ >+ {!dummy && (+ <div className="flex pb-[8px] empty:hidden">+ <SelectCustomer+ onChange={changeCustomer}+ integrations={integrations}+ />+ </div>+ )}+ <PicksSocialsComponent list={true} />+ </BottomSheet>+ )}+ {mobileSheet === 'settings' && (+ <BottomSheet+ title={t('settings', 'Settings')}+ onClose={() => setMobileSheet(null)}+ >+ <div className="flex flex-col gap-[12px] pb-[30px]">+ {hasChannelSettings && (+ <BottomSheetRow+ icon={<SettingsOutlineIcon size={24} />}+ label={+ current === 'global'+ ? t('channels_settings', 'Channel Settings')+ : `${integrations.find((p) => p.id === current)?.name} ${t(+ 'channel_settings',+ 'Settings'+ )}`+ }+ onClick={() => {+ setMobileSheet(null);+ setShowSettings(true);+ }}+ />+ )}+ <BottomSheetRow+ icon={<TagIcon width={24} height={24} />}+ label={t('add_tag', 'Add Tag')}+ onClick={() => setMobileSheet('tags')}+ />+ <BottomSheetRow+ icon={<RepeatIcon size={24} />}+ label={t('repeat_post', 'Repeat Post')}+ onClick={() => setMobileSheet('repeat')}+ />+ {existingData?.integration && (+ <div+ onClick={deletePost}+ className="flex items-center gap-[12px] py-[8px] cursor-pointer text-[#FF3F3F]"+ >+ <TrashIcon size={24} />+ <div className="text-[15px] font-[600]">+ {t('delete_post', 'Delete Post')}+ </div>+ </div>+ )}+ </div>+ </BottomSheet>+ )}+ {mobileSheet === 'tags' && (+ <BottomSheet+ title={t('add_tag', 'Add Tag')}+ onClose={() => setMobileSheet(null)}+ button={{+ label: t('done', 'Done'),+ onClick: () => setMobileSheet(null),+ }}+ >+ <TagsComponent+ name="tags"+ label={t('tags', 'Tags')}+ initial={tags}+ onChange={(e) => {+ setTags(e.target.value);+ }}+ list={true}+ />+ </BottomSheet>+ )}+ {mobileSheet === 'date' && (+ <BottomSheet+ title={t('change_date_or_time', 'Change Date or Time')}+ onClose={() => setMobileSheet(null)}+ button={{+ label: t('save', 'Save'),+ onClick: () => {+ setDate(dateDraft);+ setMobileSheet(null);+ },+ }}+ >+ <DatePickerPanel+ date={dateDraft}+ onChange={setDateDraft}+ sheet={true}+ />+ </BottomSheet>+ )}+ {mobileSheet === 'repeat' && (+ <BottomSheet+ title={t('repeat_post', 'Repeat Post')}+ onClose={() => setMobileSheet(null)}+ button={{+ label: t('done', 'Done'),+ onClick: () => setMobileSheet(null),+ }}+ >+ <RepeatComponent+ repeat={repeater}+ onChange={setRepeater}+ list={true}+ />+ </BottomSheet>+ )}<CopilotPopup- className="mobile:!bottom-[136px]"+ className="mobile:!z-[460] mobile:!bottom-[112px]"hitEscapeToClose={false}clickOutsideToClose={true}instructions={`diff --git a/apps/frontend/src/components/new-launch/mobile.top.bar.tsx b/apps/frontend/src/components/new-launch/mobile.top.bar.tsxnew file mode 100644index 000000000..fc3e6c869--- /dev/null+++ b/apps/frontend/src/components/new-launch/mobile.top.bar.tsx@@ -0,0 +1,94 @@+'use client';++import React, { FC, ReactNode, useState } from 'react';+import clsx from 'clsx';+import { useClickOutside } from '@mantine/hooks';+import { useT } from '@gitroom/react/translation/get.transation.service.client';+import {+ ChevronLeftIcon,+ DropdownArrowIcon,+} from '@gitroom/frontend/components/ui/icons';++export interface MobileTopBarAction {+ label: string;+ variant: 'primary' | 'secondary' | 'tertiary';+ onClick: () => void;+}++const actionColors = {+ primary: 'bg-btnPrimary text-white',+ secondary: 'bg-[#D82D7E] text-white',+ tertiary: 'bg-btnSimple text-btnText',+};++// the composer header on phones, a single action is triggered directly,+// more than one opens a menu+export const MobileTopBar: FC<{+ onBack: () => void;+ actions: MobileTopBarAction[];+ disabled: boolean;+ loading: boolean;+ children: ReactNode;+}> = ({ onBack, actions, disabled, loading, children }) => {+ const t = useT();+ const [open, setOpen] = useState(false);+ const ref = useClickOutside<HTMLDivElement>(() => setOpen(false));+ const single = actions.length === 1;++ return (+ <div className="hidden mobile:flex sticky top-0 z-[450] h-[60px] items-center gap-[8px] px-[16px] bg-newBgColorInner select-none">+ <div+ onClick={onBack}+ className="w-[24px] h-[24px] flex justify-center items-center cursor-pointer text-[#A3A3A3]"+ >+ <ChevronLeftIcon strokeWidth={1.5} className="rtl:rotate-180" />+ </div>+ <div className="flex-1 min-w-0 flex">{children}</div>+ <div ref={ref} className="relative">+ <button+ disabled={disabled}+ onClick={() => (single ? actions[0].onClick() : setOpen(!open))}+ className={clsx(+ 'relative min-w-[92px] h-[34px] rounded-[6px] flex justify-center items-center gap-[8px] text-[13px] font-[600] bg-btnPrimary text-white disabled:bg-btnSimple disabled:text-textItemBlur disabled:cursor-not-allowed',+ single ? 'px-[16px]' : 'ps-[24px] pe-[12px]'+ )}+ >+ {loading && (+ <div className="absolute left-[50%] top-[50%] -translate-y-[50%] -translate-x-[50%]">+ <div className="animate-spin h-[20px] w-[20px] border-4 border-white border-t-transparent rounded-full" />+ </div>+ )}+ <div className={clsx(loading && 'invisible')}>+ {single ? actions[0].label : t('post', 'Post')}+ </div>+ {!single && (+ <DropdownArrowIcon+ size={16}+ rotated={open}+ className={clsx(loading && 'invisible')}+ />+ )}+ </button>+ {open && (+ <div className="absolute end-0 top-[100%] mt-[8px] w-[228px] p-[12px] flex flex-col gap-[12px] bg-newBgColorInner menu-shadow z-[300]">+ {actions.map((action, index) => (+ <button+ key={index}+ onClick={() => {+ setOpen(false);+ action.onClick();+ }}+ className={clsx(+ 'h-[34px] rounded-[6px] text-[13px] font-[600]',+ actionColors[action.variant]+ )}+ >+ {action.label}+ </button>+ ))}+ </div>+ )}+ </div>+ </div>+ );+};diff --git a/apps/frontend/src/components/new-launch/picks.socials.component.tsx b/apps/frontend/src/components/new-launch/picks.socials.component.tsxindex 116395ca9..0979a1931 100644--- a/apps/frontend/src/components/new-launch/picks.socials.component.tsx+++ b/apps/frontend/src/components/new-launch/picks.socials.component.tsx@@ -6,12 +6,32 @@ import SafeImage from '@gitroom/react/helpers/safe.image';import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store';import { useShallow } from 'zustand/react/shallow';import { useExistingData } from '@gitroom/frontend/components/launches/helpers/use.existing.data';-import { makeId } from '@gitroom/nestjs-libraries/services/make.is';import ImageWithFallback from '@gitroom/react/helpers/image.with.fallback';+import { Check } from '@gitroom/frontend/components/launches/tags.component';+import { Integrations } from '@gitroom/frontend/components/launches/calendar.context';-export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({- toolTip,-}) => {+const PlatformBadge: FC<{ integration: Integrations }> = ({ integration }) => {+ return integration.identifier === 'youtube' ? (+ <img+ src="/icons/platforms/youtube.svg"+ className="absolute z-10 bottom-0 -end-[5px] min-w-[16px]"+ width={16}+ />+ ) : (+ <SafeImage+ src={`/icons/platforms/${integration.identifier}.png`}+ className="rounded-[4px] absolute z-10 bottom-0 -end-[5px] min-w-[16px] min-h-[16px]"+ alt={integration.identifier}+ width={16}+ height={16}+ />+ );+};++export const PicksSocialsComponent: FC<{+ toolTip?: boolean;+ list?: boolean;+}> = ({ toolTip, list }) => {const exising = useExistingData();const {@@ -28,76 +48,105 @@ export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({})));+ const availableIntegrations = integrations.filter((f) => {+ if (exising.integration) {+ return f.id === exising.integration;+ }+ return !f.inBetweenSteps && !f.disabled;+ });++ const toggleIntegration = (integration: Integrations) => () => {+ if (exising.integration) {+ return;+ }+ addOrRemoveSelectedIntegration(integration, {});+ };++ if (list) {+ return (+ <div+ className={clsx(+ 'flex flex-col gap-[4px]',+ locked && 'opacity-50 pointer-events-none'+ )}+ >+ {availableIntegrations.map((integration) => {+ const selected = selectedIntegrations.some(+ (p) => p.integration.id === integration.id+ );++ return (+ <div+ key={integration.id}+ onClick={toggleIntegration(integration)}+ className="flex items-center gap-[12px] py-[8px] cursor-pointer select-none"+ >+ <div className="relative">+ <ImageWithFallback+ fallbackSrc="/no-picture.jpg"+ src={integration.picture || '/no-picture.jpg'}+ className="rounded-[8px] min-w-[40px] min-h-[40px]"+ alt={integration.identifier}+ width={40}+ height={40}+ />+ <PlatformBadge integration={integration} />+ </div>+ <div className="flex-1 min-w-0 truncate text-[14px] font-[600]">+ {integration.name}+ </div>+ <Check onChange={() => {}} value={selected} />+ </div>+ );+ })}+ </div>+ );+ }+return (<div className={clsx('flex', locked && 'opacity-50 pointer-events-none')}><div className="flex flex-1"><div className="innerComponent flex-1 flex"><div className="flex flex-wrap gap-[12px] flex-1">- {integrations- .filter((f) => {- if (exising.integration) {- return f.id === exising.integration;- }- return !f.inBetweenSteps && !f.disabled;- })- .map((integration) => (+ {availableIntegrations.map((integration) => (+ <div+ key={integration.id}+ className="flex gap-[8px] items-center"+ {...(toolTip && {+ 'data-tooltip-id': 'tooltip',+ 'data-tooltip-content': integration.name,+ })}+ ><div- key={integration.id}- className="flex gap-[8px] items-center"- {...(toolTip && {- 'data-tooltip-id': 'tooltip',- 'data-tooltip-content': integration.name,- })}+ onClick={toggleIntegration(integration)}+ className={clsx(+ 'cursor-pointer border-[2px] relative rounded-full flex justify-center items-center bg-fifth filter transition-all duration-500',+ selectedIntegrations.findIndex(+ (p) => p.integration.id === integration.id+ ) === -1+ ? 'grayscale border-transparent'+ : 'border-[#622FF6]'+ )}>- <div- onClick={() => {- if (exising.integration) {- return;- }- addOrRemoveSelectedIntegration(integration, {});- }}+ <ImageWithFallback+ fallbackSrc="/no-picture.jpg"+ src={integration.picture || '/no-picture.jpg'}className={clsx(- 'cursor-pointer border-[2px] relative rounded-full flex justify-center items-center bg-fifth filter transition-all duration-500',+ 'rounded-full transition-all min-w-[42px] border-[1.5px] min-h-[42px]',selectedIntegrations.findIndex((p) => p.integration.id === integration.id) === -1- ? 'grayscale border-transparent'- : 'border-[#622FF6]'- )}- >- <ImageWithFallback- fallbackSrc="/no-picture.jpg"- src={integration.picture || '/no-picture.jpg'}- className={clsx(- 'rounded-full transition-all min-w-[42px] border-[1.5px] min-h-[42px]',- selectedIntegrations.findIndex(- (p) => p.integration.id === integration.id- ) === -1- ? 'border-transparent'- : 'border-[#000]'- )}- alt={integration.identifier}- width={42}- height={42}- />- {integration.identifier === 'youtube' ? (- <img- src="/icons/platforms/youtube.svg"- className="absolute z-10 bottom-0 -end-[5px] min-w-[16px]"- width={16}- />- ) : (- <SafeImage- src={`/icons/platforms/${integration.identifier}.png`}- className="rounded-[4px] absolute z-10 bottom-0 -end-[5px] min-w-[16px] min-h-[16px]"- alt={integration.identifier}- width={16}- height={16}- />+ ? 'border-transparent'+ : 'border-[#000]')}- </div>+ alt={integration.identifier}+ width={42}+ height={42}+ />+ <PlatformBadge integration={integration} /></div>- ))}+ </div>+ ))}</div></div></div>diff --git a/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx b/apps/frontend/src/components/new-launch/providers/high.order.provider.tsxindex 58087ce66..93d29f2b2 100644--- a/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx+++ b/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx@@ -307,7 +307,7 @@ export const withProvider = function <T extends object>(params: {))}{(SettingsComponent || !!data?.internalPlugs?.length) &&createPortal(- <div data-id={props.id} className={isGlobal ? 'bg-newSettings pb-[12px] px-[12px]' : 'hidden bg-newSettings px-[12px] pb-[12px]'}>+ <div data-id={props.id} className={isGlobal ? 'bg-newSettings pb-[12px] px-[12px] mobile:bg-transparent mobile:px-[16px]' : 'hidden bg-newSettings px-[12px] pb-[12px] mobile:bg-transparent mobile:px-[16px]'}>{isGlobal && (<style>{`#wrapper-settings {display: flex !important} #social-empty {display: block !important;}`}</style>)}diff --git a/apps/frontend/src/components/new-launch/select.current.tsx b/apps/frontend/src/components/new-launch/select.current.tsxindex e94b5f620..bea6d8edf 100644--- a/apps/frontend/src/components/new-launch/select.current.tsx+++ b/apps/frontend/src/components/new-launch/select.current.tsx@@ -94,11 +94,11 @@ export const SelectCurrent: FC = () => {return (<>- <div className="select-none left-0 absolute w-full z-[100] px-[20px]">+ <div className="select-none left-0 absolute w-full z-[100] px-[20px] mobile:static mobile:px-0"><divref={contentRef}className={clsx(- 'flex gap-[6px] w-full overflow-x-auto scrollbar scrollbar-thumb-tableBorder scrollbar-track-secondary',+ 'flex gap-[6px] mobile:gap-[4px] w-full overflow-x-auto scrollbar scrollbar-thumb-tableBorder scrollbar-track-secondary mobile:scrollbar-none',locked && 'opacity-50 pointer-events-none')}>@@ -108,14 +108,14 @@ export const SelectCurrent: FC = () => {setCurrent('global');}}className={clsx(- 'cursor-pointer flex gap-[8px] rounded-[8px] w-[40px] h-[40px] justify-center items-center bg-newBgLineColor',+ 'cursor-pointer flex gap-[8px] rounded-[8px] w-[40px] h-[40px] mobile:w-[44px] mobile:h-[44px] mobile:shrink-0 justify-center items-center bg-newBgLineColor mobile:bg-newSettings',current !== 'global'? 'text-[#A3A3A3]'- : 'border border-[#FC69FF] text-[#FC69FF]'+ : 'border mobile:border-[1.5px] border-[#FC69FF] text-[#FC69FF]')}><div>- <GlobalIcon />+ <GlobalIcon className="mobile:w-[24px] mobile:h-[24px]" /></div></div>{selectedIntegrations.map(({ integration }) => (@@ -126,7 +126,7 @@ export const SelectCurrent: FC = () => {}}key={integration.id}className={clsx(- 'border cursor-pointer relative flex gap-[8px] w-[40px] h-[40px] rounded-[8px] items-center bg-newBgLineColor justify-center',+ 'border mobile:border-[1.5px] cursor-pointer relative flex gap-[8px] w-[40px] h-[40px] mobile:w-[44px] mobile:h-[44px] mobile:shrink-0 rounded-[8px] items-center bg-newBgLineColor mobile:bg-newSettings justify-center',current === integration.id? 'border-[#FC69FF] text-[#FC69FF]': 'border-transparent'@@ -134,7 +134,7 @@ export const SelectCurrent: FC = () => {><divonClick={removeSocial(integration)}- className="absolute justify-center items-center flex w-[8px] h-[8px] -top-[1px] -start-[3px] bg-red-500 rounded-full text-white text-[8px]"+ className="absolute justify-center items-center flex mobile:hidden w-[8px] h-[8px] -top-[1px] -start-[3px] bg-red-500 rounded-full text-white text-[8px]">X</div>@@ -179,7 +179,9 @@ export const SelectCurrent: FC = () => {))}</div></div>- <div className={clsx(hasScroll ? 'h-[55px]' : 'h-[40px]')} />+ <div+ className={clsx(hasScroll ? 'h-[55px]' : 'h-[40px]', 'mobile:hidden')}+ /></>);};diff --git a/apps/frontend/src/components/new-launch/u.text.tsx b/apps/frontend/src/components/new-launch/u.text.tsxindex a03d392b9..68b266faf 100644--- a/apps/frontend/src/components/new-launch/u.text.tsx+++ b/apps/frontend/src/components/new-launch/u.text.tsx@@ -84,12 +84,13 @@ export const UText: FC<{data-tooltip-id="tooltip"data-tooltip-content="Underline"onClick={mark}- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/settings/signatures.component.tsx b/apps/frontend/src/components/settings/signatures.component.tsxindex 6ed08fdb7..cf10632e6 100644--- a/apps/frontend/src/components/settings/signatures.component.tsx+++ b/apps/frontend/src/components/settings/signatures.component.tsx@@ -1,4 +1,4 @@-import React, { FC, Fragment, useCallback } from 'react';+import React, { FC, useCallback } from 'react';import { useFetch } from '@gitroom/helpers/utils/custom.fetch';import useSWR from 'swr';import { Button } from '@gitroom/react/form/button';@@ -67,7 +67,7 @@ export const SignaturesComponent: FC<{'You can add signatures to your account to be used in your posts.')}</div>- <div className="my-[16px] mt-[16px] bg-sixth border-fifth items-center border rounded-[4px] p-[24px] flex gap-[24px]">+ <div className="my-[16px] mt-[16px] bg-sixth border-fifth items-center border rounded-[4px] p-[24px] mobile:p-[12px] flex gap-[24px]"><div className="flex flex-col w-full">{!!data?.length && (<div@@ -75,56 +75,81 @@ export const SignaturesComponent: FC<{!!appendSignature? 'grid-cols-[1fr,1fr,1fr,1fr,1fr]': 'grid-cols-[1fr,1fr,1fr,1fr]'- } w-full gap-y-[10px]`}+ } mobile:grid-cols-1 w-full gap-y-[10px] mobile:gap-y-[8px]`}>- <div>{t('content', 'Content')}</div>- <div className="text-center">{t('auto_add', 'Auto Add?')}</div>+ <div className="mobile:hidden">{t('content', 'Content')}</div>+ <div className="text-center mobile:hidden">+ {t('auto_add', 'Auto Add?')}+ </div>{!!appendSignature && (- <div className="text-center">{t('actions', 'Actions')}</div>+ <div className="text-center mobile:hidden">+ {t('actions', 'Actions')}+ </div>)}- <div className="text-center">{t('edit', 'Edit')}</div>- <div className="text-center">{t('delete', 'Delete')}</div>+ <div className="text-center mobile:hidden">{t('edit', 'Edit')}</div>+ <div className="text-center mobile:hidden">+ {t('delete', 'Delete')}+ </div>{data?.map((p: any) => (- <Fragment key={p.id}>- <div className="relative flex-1 me-[20px] overflow-x-hidden">- <div className="absolute start-0 line-clamp-1 top-[50%] -translate-y-[50%] text-ellipsis">+ // a row of the table, a card on phones+ <div+ key={p.id}+ className="contents mobile:flex mobile:flex-wrap mobile:gap-[8px] mobile:p-[12px] mobile:rounded-[8px] mobile:border mobile:border-newColColor"+ >+ <div className="relative flex-1 me-[20px] overflow-x-hidden mobile:basis-full mobile:me-0">+ <div className="absolute start-0 line-clamp-1 top-[50%] -translate-y-[50%] text-ellipsis mobile:static mobile:translate-y-0">{p.content.slice(0, 15) + '...'}</div></div>- <div className="flex flex-col justify-center relative me-[20px]">- <div className="text-center w-full absolute start-0 line-clamp-1 top-[50%] -translate-y-[50%]">+ <div className="flex flex-col justify-center relative me-[20px] mobile:basis-full mobile:me-0">+ <div className="text-center w-full absolute start-0 line-clamp-1 top-[50%] -translate-y-[50%] mobile:static mobile:translate-y-0 mobile:text-start mobile:text-[12px] mobile:text-newTextColor/60">+ <span className="hidden mobile:inline">+ {t('auto_add', 'Auto Add?')}{' '}+ </span>{p.autoAdd ? 'Yes' : 'No'}</div></div>{!!appendSignature && (- <div className="flex justify-center">- <Button onClick={() => appendSignature(p.content)}>+ <div className="flex justify-center mobile:basis-full">+ <Button+ className="mobile:w-full mobile:px-[12px]"+ onClick={() => appendSignature(p.content)}+ >{t('use_signature', 'Use Signature')}</Button></div>)}- <div className="flex justify-center">- <div>- <Button onClick={addSignature(p)}>+ <div className="flex justify-center mobile:flex-1">+ <div className="mobile:w-full">+ <Button+ className="mobile:w-full mobile:px-[12px]"+ onClick={addSignature(p)}+ >{t('edit', 'Edit')}</Button></div></div>- <div className="flex justify-center">- <div>- <Button onClick={deleteSignature(p)}>+ <div className="flex justify-center mobile:flex-1">+ <div className="mobile:w-full">+ <Button+ className="mobile:w-full mobile:px-[12px]"+ onClick={deleteSignature(p)}+ >{t('delete', 'Delete')}</Button></div></div>- </Fragment>+ </div>))}</div>)}<div><ButtononClick={addSignature()}- className={clsx((data?.length || 0) > 0 && 'my-[16px]')}+ className={clsx(+ (data?.length || 0) > 0 && 'my-[16px]',+ 'mobile:w-full'+ )}>{t('add_a_signature', 'Add a signature')}</Button>diff --git a/apps/frontend/src/components/signature.tsx b/apps/frontend/src/components/signature.tsxindex fbacf2374..afe26ee86 100644--- a/apps/frontend/src/components/signature.tsx+++ b/apps/frontend/src/components/signature.tsx@@ -26,12 +26,13 @@ export const SignatureBox: FC<{onClick={addSignature}data-tooltip-id="tooltip"data-tooltip-content="Add Signature"- className="select-none cursor-pointer rounded-[6px] w-[30px] h-[30px] bg-newColColor flex justify-center items-center"+ className="select-none cursor-pointer rounded-[6px] mobile:rounded-[8px] w-[30px] h-[30px] mobile:w-[40px] mobile:h-[40px] bg-newColColor mobile:bg-newSettings flex justify-center items-center"><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"+ className="mobile:w-[20px] mobile:h-[20px]"viewBox="0 0 16 16"fill="none">diff --git a/apps/frontend/src/components/third-parties/third-party.media.tsx b/apps/frontend/src/components/third-parties/third-party.media.tsxindex c523bcdc5..b75b346a8 100644--- a/apps/frontend/src/components/third-parties/third-party.media.tsx+++ b/apps/frontend/src/components/third-parties/third-party.media.tsx@@ -181,7 +181,7 @@ export const ThirdPartyMedia: FC<{return (<>- <div className="relative group">+ <div className="relative group mobile:hidden"><divclassName={clsx('cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]'diff --git a/apps/frontend/src/components/ui/bottom.sheet.component.tsx b/apps/frontend/src/components/ui/bottom.sheet.component.tsxnew file mode 100644index 000000000..dec6911fe--- /dev/null+++ b/apps/frontend/src/components/ui/bottom.sheet.component.tsx@@ -0,0 +1,87 @@+'use client';++import React, { FC, ReactNode } from 'react';+import {+ ChevronRightIcon,+ CloseIcon,+} from '@gitroom/frontend/components/ui/icons';++export const BottomSheetHeader: FC<{+ title: ReactNode;+ onClose: () => void;+}> = ({ title, onClose }) => {+ return (+ <>+ <div className="self-center w-[33px] h-[4px] mb-[8px] rounded-[2px] bg-newSep" />+ <div className="flex items-center gap-[8px] h-[60px] mb-[16px] px-[16px]">+ <div className="flex-1 text-[20px] font-[600]">{title}</div>+ <div+ onClick={onClose}+ className="w-[32px] h-[32px] flex justify-end items-center cursor-pointer text-[#A3A3A3]"+ >+ <CloseIcon />+ </div>+ </div>+ </>+ );+};++export const BottomSheetButton: FC<{+ label: string;+ onClick: () => void;+ disabled?: boolean;+}> = ({ label, onClick, disabled }) => {+ return (+ <div className="px-[16px] pt-[12px]">+ <button+ disabled={disabled}+ onClick={onClick}+ className="w-full h-[44px] rounded-[8px] bg-btnPrimary text-white text-[15px] font-[600] disabled:bg-btnSimple disabled:text-textItemBlur"+ >+ {label}+ </button>+ </div>+ );+};++// slides up from the bottom of the screen, opened from the mobile layout+export const BottomSheet: FC<{+ title: string;+ onClose: () => void;+ children: ReactNode;+ // the main action under the content, like Done or Save+ button?: { label: string; onClick: () => void; disabled?: boolean };+}> = ({ title, onClose, children, button }) => {+ return (+ <div className="fixed inset-0 z-[600] flex flex-col justify-end">+ <div+ onClick={onClose}+ className="absolute inset-0 bg-popup backdrop-blur-[8px] animate-fadeIn touch-none"+ />+ <div className="relative max-h-[90%] flex flex-col bg-newBgColorInner rounded-t-[24px] pt-[8px] pb-[24px] animate-fade">+ <BottomSheetHeader title={title} onClose={onClose} />+ <div className="flex-1 min-h-0 overflow-y-auto overscroll-contain px-[16px] scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner">+ {children}+ </div>+ {button && <BottomSheetButton {...button} />}+ </div>+ </div>+ );+};++export const BottomSheetRow: FC<{+ icon: ReactNode;+ label: string;+ onClick: () => void;+}> = ({ icon, label, onClick }) => {+ return (+ <div+ onClick={onClick}+ className="flex items-center gap-[12px] py-[8px] cursor-pointer select-none"+ >+ <div className="text-[#A3A3A3]">{icon}</div>+ <div className="flex-1 text-[15px] font-[600]">{label}</div>+ <ChevronRightIcon size={20} className="text-[#A3A3A3] rtl:rotate-180" />+ </div>+ );+};diff --git a/apps/frontend/src/components/ui/icons/index.tsx b/apps/frontend/src/components/ui/icons/index.tsxindex 5991386a0..0ef85072d 100644--- a/apps/frontend/src/components/ui/icons/index.tsx+++ b/apps/frontend/src/components/ui/icons/index.tsx@@ -41,6 +41,58 @@ export const SettingsIcon: FC<IconProps> = ({</svg>);+// Settings/Gear Outline Icon+export const SettingsOutlineIcon: FC<IconProps> = ({+ size = 20,+ className,+ ...props+}) => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width={size}+ height={size}+ viewBox="0 0 20 20"+ fill="none"+ className={className}+ {...props}+ >+ <path+ d="M7.82888 16.1419L8.31591 17.2373C8.4607 17.5634 8.69698 17.8404 8.9961 18.0348C9.29522 18.2293 9.64434 18.3327 10.0011 18.3327C10.3579 18.3327 10.707 18.2293 11.0061 18.0348C11.3052 17.8404 11.5415 17.5634 11.6863 17.2373L12.1733 16.1419C12.3467 15.7533 12.6383 15.4292 13.0067 15.216C13.3773 15.0022 13.8061 14.9111 14.2317 14.9558L15.4233 15.0827C15.778 15.1202 16.136 15.054 16.4539 14.8921C16.7717 14.7302 17.0358 14.4796 17.2141 14.1706C17.3925 13.8619 17.4776 13.5079 17.4588 13.1518C17.4401 12.7956 17.3184 12.4525 17.1085 12.1642L16.403 11.1947C16.1517 10.847 16.0175 10.4284 16.0196 9.99935C16.0195 9.57151 16.155 9.15464 16.4067 8.80861L17.1122 7.83916C17.3221 7.55081 17.4438 7.20774 17.4625 6.85158C17.4813 6.49541 17.3962 6.14147 17.2178 5.83268C17.0395 5.52371 16.7754 5.27309 16.4576 5.1112C16.1397 4.94932 15.7817 4.88312 15.427 4.92065L14.2354 5.0475C13.8098 5.09219 13.381 5.00112 13.0104 4.78731C12.6413 4.57289 12.3496 4.24715 12.177 3.85676L11.6863 2.76139C11.5415 2.43532 11.3052 2.15828 11.0061 1.96385C10.707 1.76942 10.3579 1.66596 10.0011 1.66602C9.64434 1.66596 9.29522 1.76942 8.9961 1.96385C8.69698 2.15828 8.4607 2.43532 8.31591 2.76139L7.82888 3.85676C7.65632 4.24715 7.3646 4.57289 6.99554 4.78731C6.62489 5.00112 6.1961 5.09219 5.77054 5.0475L4.57517 4.92065C4.22045 4.88312 3.86246 4.94932 3.5446 5.1112C3.22675 5.27309 2.96269 5.52371 2.78443 5.83268C2.60595 6.14147 2.52092 6.49541 2.53965 6.85158C2.55839 7.20774 2.68009 7.55081 2.88999 7.83916L3.59554 8.80861C3.84716 9.15464 3.98266 9.57151 3.98258 9.99935C3.98266 10.4272 3.84716 10.8441 3.59554 11.1901L2.88999 12.1595C2.68009 12.4479 2.55839 12.791 2.53965 13.1471C2.52092 13.5033 2.60595 13.8572 2.78443 14.166C2.96286 14.4748 3.22696 14.7253 3.54476 14.8872C3.86257 15.049 4.22047 15.1153 4.57517 15.0781L5.76684 14.9512C6.1924 14.9065 6.62119 14.9976 6.99184 15.2114C7.36228 15.4252 7.65535 15.751 7.82888 16.1419Z"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ <path+ d="M9.99961 12.4993C11.3803 12.4993 12.4996 11.3801 12.4996 9.99935C12.4996 8.61864 11.3803 7.49935 9.99961 7.49935C8.6189 7.49935 7.49961 8.61864 7.49961 9.99935C7.49961 11.3801 8.6189 12.4993 9.99961 12.4993Z"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+);++// Eye Icon+export const EyeIcon: FC<IconProps> = ({ size = 20, className, ...props }) => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ className={className}+ {...props}+ >+ <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />+ <circle cx="12" cy="12" r="3" />+ </svg>+);+// Chevron Down Icon (rotatable)export const ChevronDownIcon: FC<IconProps & { rotated?: boolean }> = ({size = 20,diff --git a/i18n.lock b/i18n.lockindex 93a43fef5..b6242e31d 100644--- a/i18n.lock+++ b/i18n.lock@@ -799,3 +799,12 @@ checksums:preview_comment_text_changed: 6a4298cc0304d150e0d150689fa049f4preview_no_comments_yet: e9bda0977d617e8ee0079feba73b3c3asome_files_failed_to_upload: 87c15cf17373c535da85470188df68c7+ done: ffd408fa29d5bc9039ef8ea1b9b699bb+ add_tag: 2cfa04ceea966149f2b5d40d9c131141+ repeat_post: fb5ad8292bcc2fe131e69a62ff1fa9d3+ do_not_repeat: 4b92afcdc3206cb17da5257809c21fb6+ change_date_or_time: 76fcdf62ab2834115a1bea54d2ef0779+ time: b504a03d52e8001bfdc5cb6205364f42+ channels_settings: 770e5ae7cec0a83e1454246b52591093+ delete_selected: adad57b0659260858fbf786ef31e9612+ are_you_sure_you_want_to_delete_selected_media: 2fcf9a6ddcd40aa74d2cf914730ecc4bdiff --git a/libraries/react-shared-libraries/src/translation/locales/ar/translation.json b/libraries/react-shared-libraries/src/translation/locales/ar/translation.jsonindex a54763d0c..d8a536ac3 100644--- a/libraries/react-shared-libraries/src/translation/locales/ar/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ar/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "التعليقات على النص المحدد تفقد تمييزها إذا تم تعديل النص لاحقًا.","preview_comment_text_changed": "تم تغيير النص","preview_no_comments_yet": "لا توجد تعليقات بعد. حدد بعض النص في المنشور للتعليق عليه، أو أضف تعليقًا عامًا.",- "some_files_failed_to_upload": "فشل تحميل بعض الملفات، يرجى المحاولة مرة أخرى"+ "some_files_failed_to_upload": "فشل تحميل بعض الملفات، يرجى المحاولة مرة أخرى",+ "done": "تم",+ "add_tag": "إضافة وسم",+ "repeat_post": "تكرار المنشور",+ "do_not_repeat": "عدم التكرار",+ "change_date_or_time": "تغيير التاريخ أو الوقت",+ "time": "الوقت",+ "channels_settings": "إعدادات القناة",+ "delete_selected": "حذف المحدد",+ "are_you_sure_you_want_to_delete_selected_media": "هل أنت متأكد أنك تريد حذف الوسائط المحددة؟"}diff --git a/libraries/react-shared-libraries/src/translation/locales/bn/translation.json b/libraries/react-shared-libraries/src/translation/locales/bn/translation.jsonindex 31663d694..e94990edf 100644--- a/libraries/react-shared-libraries/src/translation/locales/bn/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/bn/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "নির্বাচিত টেক্সটে মন্তব্য করলে, টেক্সট সম্পাদনার পর হাইলাইট হারিয়ে যেতে পারে।","preview_comment_text_changed": "টেক্সট পরিবর্তিত হয়েছে","preview_no_comments_yet": "এখনও কোনো মন্তব্য নেই। পোস্টে কিছু টেক্সট নির্বাচন করে অথবা সাধারণ মন্তব্য যোগ করে মন্তব্য করুন।",- "some_files_failed_to_upload": "কিছু ফাইল আপলোড করতে ব্যর্থ হয়েছে, অনুগ্রহ করে আবার চেষ্টা করুন"+ "some_files_failed_to_upload": "কিছু ফাইল আপলোড করতে ব্যর্থ হয়েছে, অনুগ্রহ করে আবার চেষ্টা করুন",+ "done": "সম্পন্ন",+ "add_tag": "ট্যাগ যোগ করুন",+ "repeat_post": "পোস্ট পুনরাবৃত্তি",+ "do_not_repeat": "পুনরাবৃত্তি করবেন না",+ "change_date_or_time": "তারিখ বা সময় পরিবর্তন করুন",+ "time": "সময়",+ "channels_settings": "চ্যানেল সেটিংস",+ "delete_selected": "নির্বাচিতগুলো মুছে ফেলুন",+ "are_you_sure_you_want_to_delete_selected_media": "আপনি কি নিশ্চিত যে আপনি নির্বাচিত মিডিয়া মুছে ফেলতে চান?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/de/translation.json b/libraries/react-shared-libraries/src/translation/locales/de/translation.jsonindex 9f3c2ddb9..f20dcf9b3 100644--- a/libraries/react-shared-libraries/src/translation/locales/de/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/de/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Kommentare zu ausgewähltem Text verlieren ihre Markierung, wenn der Text später bearbeitet wird.","preview_comment_text_changed": "Text geändert","preview_no_comments_yet": "Noch keine Kommentare. Wählen Sie einen Text im Beitrag aus, um ihn zu kommentieren, oder fügen Sie einen allgemeinen Kommentar hinzu.",- "some_files_failed_to_upload": "Einige Dateien konnten nicht hochgeladen werden. Bitte versuchen Sie es erneut."+ "some_files_failed_to_upload": "Einige Dateien konnten nicht hochgeladen werden. Bitte versuchen Sie es erneut.",+ "done": "Fertig",+ "add_tag": "Schlagwort hinzufügen",+ "repeat_post": "Beitrag wiederholen",+ "do_not_repeat": "Nicht wiederholen",+ "change_date_or_time": "Datum oder Uhrzeit ändern",+ "time": "Uhrzeit",+ "channels_settings": "Kanaleinstellungen",+ "delete_selected": "Ausgewählte löschen",+ "are_you_sure_you_want_to_delete_selected_media": "Bist du sicher, dass du die ausgewählten Medien löschen möchtest?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/en/translation.json b/libraries/react-shared-libraries/src/translation/locales/en/translation.jsonindex 4ead7f9a5..915a52f43 100644--- a/libraries/react-shared-libraries/src/translation/locales/en/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/en/translation.json@@ -796,5 +796,14 @@"preview_comment_detach_hint": "Comments on selected text lose their highlight if the text is edited later.","preview_comment_text_changed": "Text changed","preview_no_comments_yet": "No comments yet. Select some text in the post to comment on it, or add a general comment.",- "some_files_failed_to_upload": "Some files failed to upload, please try again"+ "some_files_failed_to_upload": "Some files failed to upload, please try again",+ "done": "Done",+ "add_tag": "Add Tag",+ "repeat_post": "Repeat Post",+ "do_not_repeat": "Do Not Repeat",+ "change_date_or_time": "Change Date or Time",+ "time": "Time",+ "channels_settings": "Channel Settings",+ "delete_selected": "Delete Selected",+ "are_you_sure_you_want_to_delete_selected_media": "Are you sure you want to delete the selected media?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/es/translation.json b/libraries/react-shared-libraries/src/translation/locales/es/translation.jsonindex 8e13f5293..2fecea932 100644--- a/libraries/react-shared-libraries/src/translation/locales/es/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/es/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Los comentarios sobre texto seleccionado pierden su resalte si el texto se edita más tarde.","preview_comment_text_changed": "Texto modificado","preview_no_comments_yet": "Aún no hay comentarios. Selecciona texto en la publicación para comentarlo o agrega un comentario general.",- "some_files_failed_to_upload": "Algunos archivos no se pudieron subir, por favor inténtalo de nuevo"+ "some_files_failed_to_upload": "Algunos archivos no se pudieron subir, por favor inténtalo de nuevo",+ "done": "Listo",+ "add_tag": "Agregar etiqueta",+ "repeat_post": "Repetir publicación",+ "do_not_repeat": "No repetir",+ "change_date_or_time": "Cambiar fecha u hora",+ "time": "Hora",+ "channels_settings": "Configuración del canal",+ "delete_selected": "Eliminar seleccionados",+ "are_you_sure_you_want_to_delete_selected_media": "¿Estás seguro de que quieres eliminar los medios seleccionados?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/fr/translation.json b/libraries/react-shared-libraries/src/translation/locales/fr/translation.jsonindex 328accd70..80d19af6e 100644--- a/libraries/react-shared-libraries/src/translation/locales/fr/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/fr/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Les commentaires sur le texte sélectionné perdent leur surlignement si le texte est modifié par la suite.","preview_comment_text_changed": "Texte modifié","preview_no_comments_yet": "Aucun commentaire pour le moment. Sélectionnez du texte dans la publication pour le commenter, ou ajoutez un commentaire général.",- "some_files_failed_to_upload": "Échec du téléversement de certains fichiers, veuillez réessayer."+ "some_files_failed_to_upload": "Échec du téléversement de certains fichiers, veuillez réessayer.",+ "done": "Terminé",+ "add_tag": "Ajouter un tag",+ "repeat_post": "Répéter la publication",+ "do_not_repeat": "Ne pas répéter",+ "change_date_or_time": "Modifier la date ou l'heure",+ "time": "Heure",+ "channels_settings": "Paramètres des canaux",+ "delete_selected": "Supprimer la sélection",+ "are_you_sure_you_want_to_delete_selected_media": "Êtes-vous sûr de vouloir supprimer les médias sélectionnés ?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/he/translation.json b/libraries/react-shared-libraries/src/translation/locales/he/translation.jsonindex e22a74063..71b5a5218 100644--- a/libraries/react-shared-libraries/src/translation/locales/he/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/he/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "תגובות על טקסט נבחר מאבדות הדגשה אם הטקסט נערך מאוחר יותר.","preview_comment_text_changed": "הטקסט השתנה","preview_no_comments_yet": "עדיין אין תגובות. בחר טקסט בפוסט כדי להגיב עליו, או הוסף תגובה כללית.",- "some_files_failed_to_upload": "חלק מהקבצים לא הועלו, אנא נסה שוב"+ "some_files_failed_to_upload": "חלק מהקבצים לא הועלו, אנא נסה שוב",+ "done": "סיום",+ "add_tag": "הוסף תגית",+ "repeat_post": "חזרה על הפוסט",+ "do_not_repeat": "ללא חזרה",+ "change_date_or_time": "שינוי תאריך או שעה",+ "time": "שעה",+ "channels_settings": "הגדרות ערוץ",+ "delete_selected": "מחק את הנבחרים",+ "are_you_sure_you_want_to_delete_selected_media": "האם אתה בטוח שברצונך למחוק את המדיה שנבחרה?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/it/translation.json b/libraries/react-shared-libraries/src/translation/locales/it/translation.jsonindex d917f7402..ae3befca3 100644--- a/libraries/react-shared-libraries/src/translation/locales/it/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/it/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "I commenti su testo selezionato perdono l'evidenziazione se il testo viene modificato successivamente.","preview_comment_text_changed": "Testo modificato","preview_no_comments_yet": "Nessun commento ancora. Seleziona del testo nel post per commentarlo, oppure aggiungi un commento generale.",- "some_files_failed_to_upload": "Alcuni file non sono stati caricati, riprova"+ "some_files_failed_to_upload": "Alcuni file non sono stati caricati, riprova",+ "done": "Fatto",+ "add_tag": "Aggiungi tag",+ "repeat_post": "Ripeti post",+ "do_not_repeat": "Non ripetere",+ "change_date_or_time": "Cambia data o ora",+ "time": "Ora",+ "channels_settings": "Impostazioni del canale",+ "delete_selected": "Elimina selezionati",+ "are_you_sure_you_want_to_delete_selected_media": "Sei sicuro di voler eliminare i media selezionati?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/ja/translation.json b/libraries/react-shared-libraries/src/translation/locales/ja/translation.jsonindex f952bf02f..c5ee8d26d 100644--- a/libraries/react-shared-libraries/src/translation/locales/ja/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ja/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "選択テキストへのコメントは、テキストが後から編集されるとハイライトが失われます。","preview_comment_text_changed": "テキストが変更されました","preview_no_comments_yet": "まだコメントはありません。投稿内のテキストを選択してコメントするか、一般的なコメントを追加してください。",- "some_files_failed_to_upload": "いくつかのファイルのアップロードに失敗しました。もう一度お試しください。"+ "some_files_failed_to_upload": "いくつかのファイルのアップロードに失敗しました。もう一度お試しください。",+ "done": "完了",+ "add_tag": "タグを追加",+ "repeat_post": "投稿を繰り返す",+ "do_not_repeat": "繰り返さない",+ "change_date_or_time": "日付または時刻を変更",+ "time": "時刻",+ "channels_settings": "チャンネル設定",+ "delete_selected": "選択したものを削除",+ "are_you_sure_you_want_to_delete_selected_media": "選択したメディアを削除してもよろしいですか?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/ko/translation.json b/libraries/react-shared-libraries/src/translation/locales/ko/translation.jsonindex 47ab8a4e5..e4c8efd40 100644--- a/libraries/react-shared-libraries/src/translation/locales/ko/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ko/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "선택한 텍스트에 단 댓글은, 텍스트가 나중에 수정되면 강조가 사라집니다.","preview_comment_text_changed": "텍스트가 변경됨","preview_no_comments_yet": "아직 댓글이 없습니다. 게시물에서 텍스트를 선택해 댓글을 남기거나, 일반 댓글을 추가하세요.",- "some_files_failed_to_upload": "일부 파일을 업로드하지 못했습니다. 다시 시도해 주세요."+ "some_files_failed_to_upload": "일부 파일을 업로드하지 못했습니다. 다시 시도해 주세요.",+ "done": "완료",+ "add_tag": "태그 추가",+ "repeat_post": "게시물 반복",+ "do_not_repeat": "반복 안 함",+ "change_date_or_time": "날짜 또는 시간 변경",+ "time": "시간",+ "channels_settings": "채널 설정",+ "delete_selected": "선택 항목 삭제",+ "are_you_sure_you_want_to_delete_selected_media": "선택한 미디어를 삭제하시겠습니까?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/pt/translation.json b/libraries/react-shared-libraries/src/translation/locales/pt/translation.jsonindex 67dd663e1..298656d7d 100644--- a/libraries/react-shared-libraries/src/translation/locales/pt/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/pt/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Comentários em textos selecionados perdem o destaque se o texto for editado depois.","preview_comment_text_changed": "Texto alterado","preview_no_comments_yet": "Ainda não há comentários. Selecione um trecho do post para comentar ou adicione um comentário geral.",- "some_files_failed_to_upload": "Alguns arquivos não foram carregados, tente novamente"+ "some_files_failed_to_upload": "Alguns arquivos não foram carregados, tente novamente",+ "done": "Concluído",+ "add_tag": "Adicionar tag",+ "repeat_post": "Repetir post",+ "do_not_repeat": "Não repetir",+ "change_date_or_time": "Alterar data ou hora",+ "time": "Hora",+ "channels_settings": "Configurações do canal",+ "delete_selected": "Excluir selecionados",+ "are_you_sure_you_want_to_delete_selected_media": "Tem certeza de que deseja excluir as mídias selecionadas?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/ru/translation.json b/libraries/react-shared-libraries/src/translation/locales/ru/translation.jsonindex 36176fea6..3d5767fbd 100644--- a/libraries/react-shared-libraries/src/translation/locales/ru/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ru/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Комментарии к выделенному тексту теряют выделение, если текст позже изменяется.","preview_comment_text_changed": "Текст изменён","preview_no_comments_yet": "Пока нет ни одного комментария. Выделите текст в публикации, чтобы оставить к нему комментарий, или добавьте общий комментарий.",- "some_files_failed_to_upload": "Не удалось загрузить некоторые файлы, пожалуйста, попробуйте еще раз"+ "some_files_failed_to_upload": "Не удалось загрузить некоторые файлы, пожалуйста, попробуйте еще раз",+ "done": "Готово",+ "add_tag": "Добавить тег",+ "repeat_post": "Повтор поста",+ "do_not_repeat": "Не повторять",+ "change_date_or_time": "Изменить дату или время",+ "time": "Время",+ "channels_settings": "Настройки канала",+ "delete_selected": "Удалить выбранные",+ "are_you_sure_you_want_to_delete_selected_media": "Вы уверены, что хотите удалить выбранные медиа?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/tr/translation.json b/libraries/react-shared-libraries/src/translation/locales/tr/translation.jsonindex 889a89cb8..1506b3608 100644--- a/libraries/react-shared-libraries/src/translation/locales/tr/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/tr/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Seçili metindeki yorumlar, metin daha sonra değiştirilirse vurgusunu kaybeder.","preview_comment_text_changed": "Metin değişti","preview_no_comments_yet": "Henüz yorum yok. Yorum yapmak için gönderide bir metin seçin veya genel bir yorum ekleyin.",- "some_files_failed_to_upload": "Bazı dosyalar yüklenemedi, lütfen tekrar deneyin"+ "some_files_failed_to_upload": "Bazı dosyalar yüklenemedi, lütfen tekrar deneyin",+ "done": "Bitti",+ "add_tag": "Etiket Ekle",+ "repeat_post": "Gönderiyi Tekrarla",+ "do_not_repeat": "Tekrarlama",+ "change_date_or_time": "Tarihi veya Saati Değiştir",+ "time": "Saat",+ "channels_settings": "Kanal Ayarları",+ "delete_selected": "Seçilenleri sil",+ "are_you_sure_you_want_to_delete_selected_media": "Seçili medyayı silmek istediğinizden emin misiniz?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/vi/translation.json b/libraries/react-shared-libraries/src/translation/locales/vi/translation.jsonindex 3121edd33..02e2152d1 100644--- a/libraries/react-shared-libraries/src/translation/locales/vi/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/vi/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "Bình luận trên đoạn văn bản được chọn sẽ mất nổi bật nếu văn bản bị chỉnh sửa sau đó.","preview_comment_text_changed": "Nội dung đã thay đổi","preview_no_comments_yet": "Chưa có bình luận nào. Chọn một đoạn văn bản trong bài viết để bình luận, hoặc thêm bình luận chung.",- "some_files_failed_to_upload": "Một số tệp không tải lên được, vui lòng thử lại"+ "some_files_failed_to_upload": "Một số tệp không tải lên được, vui lòng thử lại",+ "done": "Xong",+ "add_tag": "Thêm thẻ",+ "repeat_post": "Lặp lại bài đăng",+ "do_not_repeat": "Không lặp lại",+ "change_date_or_time": "Thay đổi ngày hoặc giờ",+ "time": "Giờ",+ "channels_settings": "Cài đặt kênh",+ "delete_selected": "Xóa mục đã chọn",+ "are_you_sure_you_want_to_delete_selected_media": "Bạn có chắc muốn xóa phương tiện đã chọn không?"}diff --git a/libraries/react-shared-libraries/src/translation/locales/zh/translation.json b/libraries/react-shared-libraries/src/translation/locales/zh/translation.jsonindex 46960af9f..b9a5813f3 100644--- a/libraries/react-shared-libraries/src/translation/locales/zh/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/zh/translation.json@@ -794,5 +794,14 @@"preview_comment_detach_hint": "如果后续编辑了所选文本,所选文本上的评论高亮将丢失。","preview_comment_text_changed": "文本已更改","preview_no_comments_yet": "还没有评论。选中帖子中的某些文本以进行评论,或添加一个总体评论。",- "some_files_failed_to_upload": "部分文件上传失败,请重试"+ "some_files_failed_to_upload": "部分文件上传失败,请重试",+ "done": "完成",+ "add_tag": "添加标签",+ "repeat_post": "重复发布",+ "do_not_repeat": "不重复",+ "change_date_or_time": "更改日期或时间",+ "time": "时间",+ "channels_settings": "频道设置",+ "delete_selected": "删除所选",+ "are_you_sure_you_want_to_delete_selected_media": "你确定要删除所选媒体吗?"}