Separate chat #85
Labels
enhancement
New feature or request
frontend
Frontend functionality
implementation
Possible implementation idea to keep in mind
Milestone
Work on the
separate-chat
branch. (However I need to merge in some changes and push it first.)TODO (we can talk about what order to do these in):
SeparateMessageEditor
.SituatedMessageEditor
in terms of taking anonSubmit
andonCancel
.createSubmitHandler
call; the URL, HTTP method, and JSON body used there will eventually be moved to theonSubmit
inSeparateChat
.SongActionConfirm
likeSituatedMessageEditor
has.SeparateChatMessage
component similar toSituatedChatMessage
. This can probably go in the same file.dbTypes.ts
for theSeparateChatEvent
type.SeparateChatEvent
; two different components? Or just render each optional property conditionally?SeparateChatMessage
if you need to import the type; talk to me if this happens, but you might not need to import the type at all.SeparateChat
.SituatedChat
, but it will createonSubmit
andonCancel
callbacks forSeparateMessageEditor
similar toSavedSongRow
orDraftAdditionSongRow
.any[]
type and needs to be changed to the type of thePlaylistDocument
's chat. CheckdbTypes.ts
.createSubmitHandler
call inSeparateMessageEditor
for some guidance on what API request to make.reloadPlaylist
prop and instead get theloadPlaylist
function fromuseContext
like inSavedSongRow
.SeparateChat
andSeparateMessageEditor
's button..tsx
files (this may not have been the best decision in hindsight, see Migrate to CSS modules #53, but it is what it is).SeparateChat
will look, like the padding, background color, and most importantly vertical positioning of elements:SeparateMessageEditor
will likely be at the very bottom.DraftAdditionSongRow
)The API is minimally documented/typed in
apiTypes.ts
, however I don't think you will need to worry about that for the API request you make to post a message. The existing code inSituatedMessageEditor
andSavedSongRow
/DraftAdditionSongRow
are enough for that. The types indbTypes.ts
likeSeparateChatEvent
and its variants will be useful.The text was updated successfully, but these errors were encountered: