Simple in-row chat like widget

Hello,

I try to migrate from Monday since I discover the power of Grist ^^, and one feature we commonly use is the in-row chat/discussion system.

So I’ve made a widget that embeds a chat-like session directly in a row. Can be used also to enhance a “comments” column and keep track of history.

It requires at least one column in the table where you want to embed chat/comment. Additionally, you can use a second column to manage the message author.

(Currently it’s a bit tricky; I update the main column first, which lets Grist update the user column - throw formula - then I read this update and add into the main column the message with the current author).

The widget is available here: GitHub - Varamil/grist-widget: Additionnal widgets for Grist and an example here: Message-Widget - Grist

8 Likes

Very nice! This will be super handy for cooperative work on documents.
Just a quick suggestion: It might be more robust to serialize the data to JSON rather than your custom ¤¤-delimited format. :smiley:

Thank you !

At the beginning I wanted some thing verry simple that anybody (non coding) can edit if need. But you’re right, JSON is much better, and by the way, I plan to add the message edit feature.

Widget has been updated to v0.3.

2 Likes

Excactly what I was looking for. Can I treat it like a journaling for every single entry? And can you probably help me to install it? Im pretty new to grist. Would really much appriciate it.
Edit: Using the desktop version. Found the documentation. My goodness this is absolutley amazing.
Love you. :slight_smile:

Marc

Hello @Marcoh_Oh

Thank you for your solicitude ^^

Regarding installation, all you need is in the readme of the Githb page, I’ve just updated it to give more details (and in french).

Let me know if you have any trouble.

3 Likes

This is a beauté :face_holding_back_tears:
Just tested and adopted.
Thank you so much!

The only thing is that my name isnt added to the message, whereas i set up the trigger user.name formula and it appears correctly in the column…and it is well mapped… i might have missed something

1 Like

Hello @aude

Hum, I don’t know, when I look at your page, I see that the last messages are named Anonymous, and if I try myself, I also see my message with Anonymous, even if I empty the C column first.

And it’s still working on my example page…

Is it possible that the instance hosted by anct not correctly define user.Name? Is the Name value in your account parameter display the right value?

Any error in the browser console (F12) ?

In the code, I wait that each update on the row is managed by the server before continuing, so I guess it’s not an issue of timing.

Sorry, for the moment I have no clue.

Hi, thanks a lot for checking it out! On the ANCT instance the user.Name is working correctly (i did add a column user.Name, and it returned the value, but it wasn’t appearing in the widget row), but…good news, i just re-tested today and it’s working fine now! awesome, thank you :smiley:

mmmm false alarm, it did work for some posts but now my name is saved as “null” again :thinking:

sadness

What I see when I open the link (and also on your capture) is the USER mapping is not set in the widget configuration.

If I set it and reload the page, now it looks to work properly.