Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Block: Chat #954

Closed
jasmussen opened this issue May 31, 2017 · 11 comments
Closed

Add Block: Chat #954

jasmussen opened this issue May 31, 2017 · 11 comments
Assignees
Labels
[Feature] Blocks Overall functionality of blocks Good First Issue An issue that's suitable for someone looking to contribute for the first time New Block Suggestion for a new block

Comments

@jasmussen
Copy link
Contributor

This block exists to be the counterpart to the Chat post format. See also #857.

Attributes

Good question. Do we want any? Decorative/float alignments, perhaps?

States

Placeholder:

chat placeholder

Neutral:

chat neutral

Selected:

chat selected

@jasmussen jasmussen added the [Feature] Blocks Overall functionality of blocks label May 31, 2017
@ellatrix ellatrix added the Good First Issue An issue that's suitable for someone looking to contribute for the first time label May 31, 2017
@mtias
Copy link
Member

mtias commented Jun 22, 2017

It'd be nice to have a much more condensed view of this. From a few posts I've been looking at, when people do full conversations like this it will waste a lot of space.

@jasmussen
Copy link
Contributor Author

Here's a more compact design:

chat

We can also go full-on iMessage:

chat alt

@mtias mtias added the New Block Suggestion for a new block label Jun 26, 2017
@swissspidy
Copy link
Member

Here are some solutions I found for parsing chat transcripts:

Regarding the layout: perhaps there could be a toggle to switch compact mode on/off?

Also, the iMessage layout would need to work with multiple people. Who would be on the right side, who on the left?

@jasmussen
Copy link
Contributor Author

Regarding the layout: perhaps there could be a toggle to switch compact mode on/off?

Good idea

Also, the iMessage layout would need to work with multiple people. Who would be on the right side, who on the left?

Solid point. Scratch that idea :)

@swissspidy
Copy link
Member

As mentioned on Slack yesterday:

  • There used to be a chat transcript parsing function in core during 3.6 development, see https://core.trac.wordpress.org/ticket/23625. We can perhaps borrow some stuff from there, mostly regarding to handling edge cases.
  • Ideally we shouldn't do any of the rendering server-side (what themes usually do). It can all happen in React and we then store the serialized markup in the database.

@swissspidy
Copy link
Member

One note regarding markup.

The HTML 5 spec says:

This specification does not define a specific element for marking up conversations, meeting minutes, chat transcripts, dialogues in screenplays, instant message logs, and other situations where different players take turns in discourse.

Authors are encouraged to mark up conversations using p elements and punctuation. Authors who need to mark the speaker for styling purposes are encouraged to use span or b. Paragraphs with their text wrapped in the i element can be used for marking up stage directions.

@justintadlock
Copy link
Contributor

The chat transcript parser in my tutorial linked to above has been worked on since then. You can find the latest here: https://github.com/justintadlock/hybrid-core/blob/master/inc/class-chat.php

It's nowhere near perfect, but feel free to utilize any parts of it needed.

@karmatosed
Copy link
Member

As the project moves towards merge proposal, we are moving issues that aren't needed for that to projects. This doesn't mean they won't get done, they totally can and that's why we're moving to projects. This allows us to focus on the issues that have to happen to Gutenberg.

@remouk
Copy link

remouk commented Jan 24, 2023

Hello, I am sorry if I bother anyone about this, but I can't find any information anywhere else. Is this block available? The issue seems closed/resolved, but I can't find the block in Gutenberg.

I am searching for a way to display chat logs in an elegant way.

@mtias
Copy link
Member

mtias commented Jan 25, 2023

Hi there. No, this block doesn't exist in core.

@remouk
Copy link

remouk commented Jan 25, 2023

Thank you for your answer! 🙏 I don't really know how this github works... Since the issue is closed I guess it won't ever be done?
Is there a way to push forward (should I create a new issue with some ideas/specs?)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks Good First Issue An issue that's suitable for someone looking to contribute for the first time New Block Suggestion for a new block
Projects
None yet
Development

No branches or pull requests

7 participants