merge: bring notifications-realtime + modules into master (preserves files attachments)
This commit is contained in:
@@ -15,6 +15,9 @@ interface Props {
|
||||
tagOptions: string[];
|
||||
onSubmit: (v: CardFormValues) => Promise<void> | void;
|
||||
onCancel: () => void;
|
||||
// When set, the chat panel auto-scrolls to this message id and pulses
|
||||
// it briefly. Used when opening a card from a notification click.
|
||||
highlightMessageId?: string;
|
||||
}
|
||||
|
||||
export function CardEditPanel({
|
||||
@@ -25,6 +28,7 @@ export function CardEditPanel({
|
||||
tagOptions,
|
||||
onSubmit,
|
||||
onCancel,
|
||||
highlightMessageId,
|
||||
}: Props) {
|
||||
const [messages, setMessages] = useState<CardMessage[]>([]);
|
||||
const [liveCard, setLiveCard] = useState(card);
|
||||
@@ -75,6 +79,7 @@ export function CardEditPanel({
|
||||
currentUserId={currentUserId}
|
||||
onMessagesChange={setMessages}
|
||||
onFileUploaded={bumpFiles}
|
||||
highlightMessageId={highlightMessageId}
|
||||
/>
|
||||
</Box>
|
||||
</Tabs.Panel>
|
||||
|
||||
Reference in New Issue
Block a user