Skip to content

New document detail section#400

Draft
maxjmohr wants to merge 14 commits into
devfrom
more-prominent-chat
Draft

New document detail section#400
maxjmohr wants to merge 14 commits into
devfrom
more-prominent-chat

Conversation

@maxjmohr

@maxjmohr maxjmohr commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR contains an entirely new document detail section!

There are lots of changes:

export interface RecordEventInput {
  eventType: EventType;
  eventAction: EventAction;
  objectId: string;
  workspaceOrigin: string;
  objectName?: string;
  docId?: string;
  versionCid?: string;
  version?: string;
  actorType?: EventActorType;
  actorNodeId?: string;
  actorUserId?: string;
  /** Override timestamp (ISO 8601). Defaults to now. */
  timestamp?: string;
}
  • Automatically refresh the Chat & Activities section in the frontend through a minimal event bus, where notifyDocumentActivity adds an activity notification and components can subscribe via useDocumentActivitySubscription!
  • Detect and display chat messages differently if they were created by the logged-in user
  • Update previews for pdf (scroll instead of click through pages), docx and editable files.
  • When clicking on a document, display the latest Chat & Activities (so by default scrolled to the bottom)
  • Ability to edit chat messages [Feature]: Edit document messages #399
  • Ability to like messages: likes are stored as new files in IPFS, which are then joined with chat messages with a new chatId per message:
export interface ChatLikeMeta {
  type: "chatLike";
  chatId: string;
  timestamp: string;
  creatorNodeId: string;
  creatorUserId: string;
  creatorName?: string;
}

Testing Instructions

Run this branch and test whether everything works and test the features that trigger chats & activities

Type of Change

Please delete options that are not relevant.

  • ✨ New feature

@maxjmohr maxjmohr linked an issue Jun 23, 2026 that may be closed by this pull request
Comment thread backend/src/modules/chats/infrastructure/chats-ipfs.repository.ts Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

2 participants