History of src/chat.c of a0377ebb9d1bb474
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/chat.c at check-in a0377ebb9d1bb474

2026-03-23
13:49
Update to the latest SQLite and rig Fossil to use sqlite3_atof() if that interface is available. When compiling with an older SQLite, it falls back to using atof(). file: [35858da273] check-in: [cb89386af5] user: drh branch: trunk, size: 51746
2025-12-23
14:50
Only require CSRF checks for /chat-send if the request was authenticated by cookie. Follow-up to [4caa8cb9ff819f7e]. file: [5b6b390185] check-in: [10006db404] user: drh branch: trunk, size: 51739
2025-12-11
13:01
Ensure that the TEMP TRIGGERs that keep the chat FTS index up-to-date exist before inserting new entries into the chat table itself. file: [11edeb3ffd] check-in: [614b3f7559] user: drh branch: trunk, size: 51709
12:40
Add the "fossil chat reindex" command. Add buttons in the /srchsetup and /setup_chat pages that will rebuild the chat FTS index. file: [e234466a4e] check-in: [43af043bd7] user: drh branch: trunk, size: 51716
11:24
Add the (undocumented) "fossil chat purge" command, for debugging. file: [c5e269eaaa] check-in: [3fe805acb6] user: drh branch: trunk, size: 51182
2025-11-27
13:16
Initial work on the /chat option to zoom a single message into its own view, the idea being that it will render pikchrs larger. The initial bits are in place but i've yet to find the CSS combination which will get the message widget to stretch out in the zoom view. file: [27eb37cf49] check-in: [ff297e1a35] user: stephan branch: chat-zoom-msg, size: 51029
2025-09-01
17:17
Finish writing a doc sentence started in the previous checkin. file: [9290b92848] check-in: [7a3d6d7057] user: stephan branch: trunk, size: 50747
16:58
Add a CSRF check to /chat-send. file: [875bbecf07] check-in: [4caa8cb9ff] user: stephan branch: trunk, size: 50723
2025-07-23
15:58
Minor optimization: replace calls to mprintf("%s", X) with fossil_strdup(X). file: [cbbc84da0b] check-in: [4c3e1728e1] user: danield branch: trunk, size: 50227
2025-04-11
18:52
Further refinements of the chat poll connection detection. The first N ignored errors are now spaced out unevenly. Use the server's configured chat-poll-timeout as the basis for calculating our client-side timeout time. file: [6965e8292e] check-in: [e8bbaf924f] user: stephan branch: trunk, size: 50227
2024-11-11
11:55
src/chat.c change. file: [9f59985a65] check-in: [40d3132fce] user: brickviking branch: bv-corrections01, size: 50167
2024-10-12
12:03
Emit only \n, not \r\n, even in places where protocols technically require a full \r\n. Provide a compile-time option -DSEND_CR=1 that includes the CRs when necessary. file: [740f642e22] check-in: [0dcce257b0] user: drh branch: omit-cr, size: 50240
2024-09-24
18:05
Fix a memleak in manifest_crosslink() when hooks are activated (one uuid leaked per checkin manifest). When posting a chat-robot message for a forum post, add links to the artifact and user's timeline to that message (as is done for checkins. file: [ecc49bf32d] check-in: [5fabb7ccb7] user: stephan branch: trunk, size: 50167
2024-08-08
12:10
Fix misinteraction of the chat send command and the chat search index. file: [09dee6cb02] check-in: [892dfd2b55] user: stephan branch: trunk, size: 49905
00:28
The "fossil chat send" mechanism was broken by check-in [fc853823b2218a76] (chat history) because of changes to chat_create_tables(). This fixes the issue. file: [af5b618449] check-in: [a913716b4c] user: drh branch: trunk, size: 49944
2024-08-03
19:54
Remove a redundant comment from the previous checkin. No code changes. file: [43706d2766] check-in: [4172bcdcea] user: stephan branch: trunk, size: 49905
19:49
/chat: when downloading a file via chat which has a text/... mimetype but it looks_like_binary(), change the mimetype to application/octet-stream. See code comments for the motivation behind this. file: [026f631151] check-in: [87edfb0a48] user: stephan branch: trunk, size: 50012
2024-07-09
17:30
Use the chat-timeline-user setting when formatting results for chat searches. file: [9758f84855] check-in: [02349c875d] user: dan branch: trunk, size: 49161
2024-07-03
12:55
Merge trunk into the markdown-tagrefs branch to begin experimentation with tying chat #NNN references into the new search capabilities. file: [a51fea6ad8] check-in: [5e26fd4c10] user: stephan branch: markdown-tagrefs, size: 48642
10:26
Apply the logic in/around [ec68aaf42536b4fb] to the chat search so that it does not abort, and generate an error log entry, when given characters which fts5 does not like. file: [8436119515] check-in: [b698ba9942] user: stephan branch: fts5-chat-search, size: 48570
2024-07-02
10:33
Add chat search for message by ID using search term #NNNN. file: [2c3fd031a7] check-in: [3449350042] user: stephan branch: fts5-chat-search, size: 48494
2024-07-01
18:36
Ensure that chat search results get placed in the proper parent DOM element (this fixes some layout unsightliness). Remove the DOM elements related to loading more search result context when they have no more results to load. file: [702ab2f7be] check-in: [2e8f1a9a15] user: stephan branch: fts5-chat-search, size: 48154
17:25
Teach /chat search to use the same tokenizer as the main search index, defaulting to porter if the main search index is off, and reindex chat if the tokenizer is changed. The search config should arguably be expanded to provide the option of disabling chat search altogether, but that is beyond today's ambitions. Minor search result layout tweaks but there are still some fixes to do there. file: [255cbb469d] check-in: [778efb30f7] user: stephan branch: fts5-chat-search, size: 48191
15:49
Do not filter out the chat-robot messages from /chat search, per feedback. file: [cd579670bd] check-in: [b5281f4e61] user: stephan branch: fts5-chat-search, size: 47357
15:22
Use temporary triggers, instead of normal schema triggers, to populate the fts index. Fossil disables schema triggers to prevent malicious uses. file: [d09e290218] check-in: [21d9ea4ade] user: dan branch: fts5-chat-search, size: 47625
11:31
Replace the /chat attach button SVG with the corresponding Unicode 6.0 glyph. Not sure why we didn't do that in the first place, as all of the other buttons use emoji icons. file: [149d7b35e0] check-in: [74479fb593] user: stephan branch: fts5-chat-search, size: 47553
08:11
Remove the now-superfluous /chat-search page. Preliminarily switch to long-format time strings in /chat messages, but that's up for reworking as we decide how we want to handle those. file: [951237dd1c] check-in: [e1f6c7f589] user: stephan branch: fts5-chat-search, size: 48575
2024-06-30
15:44
Add context-loading buttons to /chat search. file: [8ab1ca4eb6] check-in: [884214d0e3] user: stephan branch: fts5-chat-search, size: 49735
13:06
Main UI of chat history search for /chat, without the actual search functionality. file: [7ef112b082] check-in: [80b869acf9] user: stephan branch: fts5-chat-search, size: 49801
11:25
Teach stylesheet_url_var() to use the style_set_current_page() value, if set, instead of g.zPage, so that style_set_current_page() can be used to force closely-related pages (namely /chat and /chat-search) to use the same style.CurrentPageName.css, to avoid having to duplicate style sheets. Remove the now-unnecessary style.chat-search.css and port its handful of additions into style.chat.css. Adjust the /chat-search 'mark' CSS class to behave nicely in dark-mode themes. file: [b7459e6425] check-in: [3bf2275393] user: stephan branch: fts5-chat-search, size: 49349
10:47
Ensure that that the chatfts1 table and triggers are created in the repository db, rather than the main db, else it breaks when running via the ui command (where the checkout is the main db). file: [07f01fa784] check-in: [cdbdaee642] user: stephan branch: fts5-chat-search, size: 49279
09:59
Extend test-chat-formatter to be able to render both wiki and markdown. file: [be27e0f1f9] check-in: [09ee2c8e71] user: stephan branch: fts5-chat-search, size: 49235
09:25
Elide the chat-timeline-user's entries from /chat-search results. We would ideally elide those from the fts index altogether, but that name can be changed at any time and such a change would leave the fts update trigger out of sync. file: [10571c27fb] check-in: [1d64640ec7] user: stephan branch: fts5-chat-search, size: 49082
2024-06-24
20:52
Add new page /chat-search, for searching chat history. file: [8552e56d63] check-in: [89f82e6603] user: dan branch: fts5-chat-search, size: 48876
2024-03-05
12:53
Merge trunk into markdown-tagrefs branch. file: [3dfdb13ace] check-in: [0517bd2dd8] user: stephan branch: markdown-tagrefs, size: 45299
2024-02-23
00:38
Teach the chat pull subcommand to prompt for a password if no password has been remembered for the remote. Resolves the problem reported in [forum:ea82cf10d4|forum post ea82cf10d4]. file: [6c571e698c] check-in: [003c3e6c8a] user: stephan branch: trunk, size: 45227
2024-02-02
22:18
Remove trailing whitespace from non-external C files. file: [fa43df4123] check-in: [7db0a2d910] user: danield branch: fix-overlength-lines, size: 45024
2023-06-23
12:29
Use the new octet_length() SQL function in place of length() where it is appropriate to do so. file: [af623d16c6] check-in: [604e1a67d3] user: drh branch: trunk, size: 45040
2023-01-21
12:14
Merge trunk into markdown-tagrefs branch. file: [ac87bb7357] check-in: [baf038b1aa] user: stephan branch: markdown-tagrefs, size: 45100
2023-01-06
12:59
Fix the /chat-send page so that it works even with the recent same-origin security enhancements. file: [eb1bc66e6a] check-in: [4ba37b1c14] user: drh branch: trunk, size: 45028
2022-12-21
09:00
Improved consistency for --help option descriptions: begin with uppercase letter; do not use a period at the end of short-ish sentences. file: [a93d70fac8] check-in: [de684083c6] user: km branch: spelling-fixes, size: 44974
2022-11-29
20:59
/chat: add embedded view support for .wiki/.md/.pikchr file attachments, with the caveat that the rendering happens in an iframe and thus has some limitations/usability quirks compared to non-iframed content. Added based on feedback from a /chat session. file: [792d25cfb3] check-in: [fd5298f027] user: stephan branch: trunk, size: 44975
2022-11-13
16:26
Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 file: [076e858867] check-in: [1f231db380] user: ericwikman branch: wcag-2.1, size: 42982
2022-09-27
14:39
make chatbot message box transparent to avoid collisions

Suggested by mgagnon in /chat. Hint from stephan. file: [953ff79fdf] check-in: [c8b3ec1e6d] user: mark branch: trunk, size: 43015

13:47
Fix a bug in the chat-robot. file: [7a9ed20216] check-in: [b3f87ef7c2] user: drh branch: trunk, size: 42967
2022-09-15
17:48
Merge trunk into markdown-tagrefs branch. file: [c67c14f558] check-in: [8ef0347fd3] user: stephan branch: markdown-tagrefs, size: 43036
16:58
Added lmtime value to chat-timeline-user's chat messages, using the server's local time, to fix time display in the /chat message popup. file: [c264840a8f] check-in: [e1ad499265] user: stephan branch: trunk, size: 42964
15:35
Improved chat messages for the chat-timeline-robot. file: [8dcf651d28] check-in: [974cf3667c] user: drh branch: trunk, size: 42966
2022-09-14
19:24
Do not require that the chat-timeline robot username be an actual user in the USER table. If the chat-timeline-user config variable exists, then timeline events are announced in chat, regardless. file: [2573728c61] check-in: [1f5474ec31] user: drh branch: trunk, size: 40413
2022-09-13
20:11
Add the ability to designate a timeline robot user. If such a user exists, and if chat is enabled, then notifications of all timeline events appear in chat, from the robot user. file: [5a40123920] check-in: [e9d7cf3e92] user: drh branch: trunk, size: 40500
2022-06-20
22:18
/chat: added a missing JS dependency which broke the new text-toggle/copy feature. Bug introduced in [f98a4f5c94a844dd], caused by failure to check in one of the associated files. file: [c84696e1e7] check-in: [eeacf82158] user: stephan branch: trunk, size: 39172
2022-04-24
22:46
Merged in trunk, resolved conflicts introduced via the parallel development of the markdown-footnotes branch. file: [dd057536dc] check-in: [64af75b070] user: stephan branch: markdown-tagrefs, size: 39200
2022-04-14
17:41
Added new loadavg-exempt WEBPAGE: flag for mkindex.c which exempts a given page from the load_control() check. Currently applied to /chat and its dependents: /builtin and /style.css. file: [bb79d6e98b] check-in: [5c49ab3c7a] user: stephan branch: load-control-rework, size: 39128
2022-03-30
14:15
Merged in trunk. file: [5502880151] check-in: [28fa015357] user: stephan branch: markdown-tagrefs, size: 39110
2022-02-18
20:49
Rename the "fossil chat backup" command to "fossil chat pull". file: [7fde154a7b] check-in: [8ee8f03a77] user: drh branch: trunk, size: 39038
20:32
For "fossil chat backup", when transfering content from the transfer table into the repository, be explicit about column names, as the column names might be in a different order. file: [beadb739d3] check-in: [e983a7dc93] user: drh branch: trunk, size: 38967
20:25
Add the "fossil chat backup" command and the "/chat-backup" webpage to support it. file: [8591f5f763] check-in: [1827a31487] user: drh branch: trunk, size: 38800
2022-01-24
08:42
/chat: added optional 'raw' URL argument to specify that the xmsg text should be returned as-is instead of HTML-izing it. This is not used by /chat but is to support Brad Harder's standalone curses-based /chat client (and similar ones). file: [945f4a5cb8] check-in: [4359f4b573] user: stephan branch: trunk, size: 34934
2022-01-15
10:09
Merged in trunk. file: [7e3ea8c0b4] check-in: [d11cbb637b] user: stephan branch: markdown-tagrefs, size: 34602
2022-01-01
12:50
Added --as FILENAME option to the (chat send) command, which uses FILENAME as the attachment name for the file specified by the --file flag. Mimetype guessing for the attachment is based on the --as name. file: [21b6c03b94] check-in: [2bb3c76ad9] user: stephan branch: trunk, size: 34530
2021-12-16
04:20
Merged in trunk and resolved numerous code clashes in /chat. file: [b58eb37af7] check-in: [54dba74790] user: stephan branch: markdown-tagrefs, size: 34416
2021-11-13
13:10
Improvements to Chat documentation. No code changes. file: [834f406b75] check-in: [cedac53a47] user: drh branch: trunk, size: 34344
2021-10-26
18:55
An attempt to improve the built-in documentation for the "fossil chat" command. file: [6a13bd5ed6] check-in: [56d23baba1] user: drh branch: trunk, size: 33948
2021-10-12
20:28
/chat: fixed an error reporting bug which could cause server-triggered errors to not be displayed. When sending a message fails, the failed message is now presented as an error message, along with buttons to either retry or discard the message. file: [2a9523a0a2] check-in: [9d693ef80a] user: stephan branch: trunk, size: 33809
2021-10-10
04:13
/chat input field rework, as discussed in [forum:9e85f44f864eb1f5 | forum post 9e85f44f864eb1f5]. Part 1: revert to plain text input fields, with compact-mode toggle swapping between them. file: [1faf611161] check-in: [136d95b6f1] user: stephan branch: chat-input-revisited, size: 33807
2021-10-04
19:48
Merged in trunk for latest (and conflicting) /chat changes. file: [49700518d7] check-in: [7cae4c0981] user: stephan branch: markdown-tagrefs, size: 33434
19:01
/chat: replaced input-related buttons with span elements in an attempt to get more consistent cross-browser results. Renamed some internal element IDs for naming consistency's sake. file: [addf57bac3] check-in: [98b2cbe69b] user: stephan branch: trunk, size: 33362
2021-10-03
21:19
Improved the attachment button's visibility in dark-mode skins. file: [a54a260e02] check-in: [1390dd986d] user: stephan branch: chat-input-rework, size: 33313
20:15
Resized the attachment SVG to an integer number of pixels to avoid a tiny rounding error in some browsers which would truncate a pixel of the right edge. file: [36a2026895] check-in: [083927f575] user: stephan branch: chat-input-rework, size: 33271
19:56
Rotated the paperclip 45 degrees (it's now horizontal) and restored the behavior that ctrl-enter will send a message if there is only an attachment with no text. file: [bb17564ef1] check-in: [b8a20e20ff] user: stephan branch: chat-input-rework, size: 33111
19:44
Resized the attachment SVG - its bounding box was far, far wider than the glyph. file: [c5dc2886ae] check-in: [c6cc5557c0] user: stephan branch: chat-input-rework, size: 33023
19:34
Experimentally replace paperclip Unicode glyph with an embedded SVG, as the glyph looks greyed out/inactive in some environments. file: [bade92d511] check-in: [cc709782b4] user: stephan branch: chat-input-rework, size: 32816
2021-10-01
17:40
Removed the cumbersome and platform-dependent file selection widget from view and now proxy its activation via a new toolbar button. Saves space and looks nicer. file: [d94b5929bb] check-in: [2b07b66d59] user: stephan branch: chat-input-rework, size: 32290
15:49
Button size tweaks for compact mode, to make them slightly more accessible on mobile devices. file: [68b475a682] check-in: [858e8153a7] user: stephan branch: chat-input-rework, size: 32409
2021-09-30
19:32
Forcibly disable drop support in the new editor widget, as the browser will otherwise allow the user to drop images to it, which is confusing and does not work with our ability to upload images. Found a way to implement placeholder text in the contenteditable field. file: [bc449362f3] check-in: [86d6be3fe2] user: stephan branch: chat-input-rework, size: 32394
2021-09-29
22:08
Significant reworking of chat input mode to use a single contenteditable element instead of two text input elements. This required considerable collateral cleanup in how the various settings are handled and communicated within the app. file: [19f9e2482e] check-in: [b9c5792e34] user: stephan branch: chat-input-rework, size: 32477
16:50
Merged in trunk for latest changes. file: [9b7ddbc30a] check-in: [09f86815c6] user: stephan branch: markdown-tagrefs, size: 32840
16:45
Consolidated /wikiedit, /pikchrshow, /fileedit, and /chat to use shift-enter to run preview mode. The former 3 previously used ctrl-enter but it was poorly documented and probably not widely used like ctrl-enter is in chat (to send a message). file: [5dfa93e936] check-in: [13fabf3f4d] user: stephan branch: trunk, size: 32768
2021-09-28
11:06
Merged in trunk. /chat changed jump-to-message animation to fade out/in, per requests. Added HTML5 history to /chat clicks on #NNN message references but it's disabled because it's behaving unexpectedly. file: [6342dfc506] check-in: [99b23d0fa3] user: stephan branch: markdown-tagrefs, size: 32412
09:45
Moved chat.js to fossil.page.chat.js, for consistency with the other single-page apps and to emphasize that it is not to be loaded on arbitrary pages. Changed chat's startup to wait until the page on-load event to avoid a related timing issue. file: [747b6c060d] check-in: [3ec8c6c04d] user: stephan branch: trunk, size: 32340
2021-09-25
10:54
Improved the behavior in the face of multiple filters, applying only the most recent one. Added a button to clear filters which appears along the bottom of the message area if any filter is active. file: [2455f745d2] check-in: [93bf25055a] user: stephan branch: markdown-tagrefs, size: 32417
2021-09-24
17:01
Several minor cleanups, fixes, and presentation tweaks. file: [d0935e3672] check-in: [10107e4fbc] user: stephan branch: chat-user-filter, size: 32345
08:37
When chat view is filtered on a single user, the per-message popup now offers the option to jump to that message in the larger unfiltered context. When toggling the active user timestamps on, also toggle the active user setting on if it's not already on. file: [c5a4ef0def] check-in: [5aac6ae058] user: stephan branch: chat-user-filter, size: 32188
2021-09-23
15:15
Replaced recent activity list fieldset element with a fieldset-like element because of Safari fieldset layout/sizing bugs. file: [f655e6b9ac] check-in: [dc3f028290] user: stephan branch: chat-user-filter, size: 32178
13:26
Added a help buttonlet to the user activity list. file: [6abf9006f6] check-in: [f39c8326e2] user: stephan branch: chat-user-filter, size: 32188
12:03
Was supposed to be part of the previous commit :/. file: [ca82fc5ae1] check-in: [a3ea94205b] user: stephan branch: chat-user-filter, size: 31982
11:44
UI refinement of the chat user activity list. file: [04cb6fd42e] check-in: [7aea432a47] user: stephan branch: chat-user-filter, size: 31965
09:41
Proof of concept /chat "active user list" which keeps track only of users who have posted messages in the client's current list and allows filtering on those messages by tapping a user. Widget is hidden by default and can be toggled in the config area. There are still cases to figure out (e.g. new messages do not apply the current filter). file: [bf24891df2] check-in: [dafd549711] user: stephan branch: chat-user-filter, size: 31844
2021-09-22
11:15
Simplified and consolidated how /chat internally manages its 3 separate main views, with an eye towards making it easy to add additional views. No user-visible changes. file: [1fc266a924] check-in: [593d3a3a1e] user: stephan branch: trunk, size: 31793
2021-09-21
16:10
Reimplemented chat message operations popup as an inlined DOM element to enable a confirmation option on the global delete button, per request from drh (and it's also more platform-portable). file: [98813e7224] check-in: [fb9026e264] user: stephan branch: trunk, size: 31755
15:02
Updated changelog for chat preview. Hyperlinks in preview mode now have target=_blank. Removed extraneous FORM element around chat input area, as it caused only grief with regards to Enter key handling (always activating the first button in the list, which is now the preview button). file: [91b0f4a5cd] check-in: [60ed1ff951] user: stephan branch: trunk, size: 31742
14:24
/chat: close config/preview area if user sends a message, to help avoid confusion and a corner-case layout bug. Minor layout tweaking of the single-line edit mode via collaborative /chat effort. file: [94a50674d7] check-in: [03f33cd3c2] user: stephan branch: trunk, size: 31823
13:00
Prettified chat buttons via collaborative chat session dogfooding. file: [d347d55bca] check-in: [607854c90f] user: stephan branch: chat-markdown, size: 31760
11:20
Initial go at a preview mode for /chat. Still some UI/UX decisions to be made. file: [5e694b949c] check-in: [f33eefe2bb] user: stephan branch: chat-markdown, size: 31715
04:09
/chat: add a button to the user/timestamp popup to toggle between parsed and plain-text rendering for that message, per /chat request. file: [15b93201ce] check-in: [9a17e76ebf] user: stephan branch: chat-markdown, size: 31292
2021-09-20
11:28
/chat: add pikchr click handlers to incoming messages. file: [60018a92ef] check-in: [326eccf245] user: stephan branch: chat-markdown, size: 28887
2021-09-19
04:11
/chat now uses markdown, instead of its minimal custom markup. Chat messages are rendered at send-time, not save-time, so this retroactively affects all messages. file: [52853ac43f] check-in: [52d40548ed] user: stephan branch: chat-markdown, size: 28847
2021-09-18
02:36
/chat: re-enable inclusion of unversioned sound files (mp3, wav, ogg) in the list of chat notification sounds. file: [3c557d1cfb] check-in: [2a59a9a15a] user: stephan branch: chat-config-options, size: 30402
2021-09-17
23:21
Replace /chat config popup with a friendlier and more flexible widget. Reintroduces ability to select from multiple alerts. Seems to work but needs more testing. [forum:d97c869900 | Forum post d97c869900]. file: [e80b3ddd67] check-in: [6f5e04b340] user: stephan branch: chat-config-options, size: 30575
2021-08-25
23:47
More improvements to login redirects. See the discussion on the [forum:/forumpost/f81625500d96cc0f|forum thread f81625500d96cc0f]. file: [75238318fd] check-in: [e5c16594b3] user: drh branch: trunk, size: 30358
2021-06-14
10:48
Minor /chat-internal doc tweaks. file: [16c8a41531] check-in: [994bec3637] user: stephan branch: trunk, size: 30361
2021-04-07
10:09
The 'placeholder' attribute of the two /chat text input fields how includes the project name to help avoid confusion about which /chat one is typing into without requiring new screen real estate for a project-name label. file: [30c382eebd] check-in: [69135e4f61] user: stephan branch: trunk, size: 30389
07:35
/chat-send now uses the user name 'nobody' for guest-user posts. See [forum:/forumpost/e0be0eeb4c | forum post e0be0eeb4c] for details. file: [8ecfc0c70f] check-in: [5312f3738e] user: stephan branch: trunk, size: 30248
02:35
Resolved /chat-poll crash when xfrom is null, as described in [forum:/forumpost/e0be0eeb4c | forum post e0be0eeb4c]. file: [b26f701127] check-in: [92b5cc21ce] user: stephan branch: trunk, size: 30158
2021-03-27
16:04
/chat: removed the unused/unnecessary jump-to-top/bottom buttons. file: [702e19436b] check-in: [a044fea785] user: stephan branch: trunk, size: 29940
2021-03-21
18:25
Ported /chat from window.fetch to fossil.fetch, as FF versions as recently as 2017 fail with window.fetch. Needs more testing before merge but seems to work. file: [556d426545] check-in: [c973643209] user: stephan branch: chat-fetch-port, size: 30079
2021-02-18
13:54
API doc typo fix. file: [4732b8ac7d] check-in: [9eed26b0a0] user: stephan branch: trunk, size: 30070
2021-02-13
14:05
Do not omit the [..] around hyperlinks in chat. file: [b1189afa61] check-in: [bd67c3cdf0] user: drh branch: trunk, size: 30068
2021-02-04
00:57
Split off the automatic background color chooser into a separate source file "color.c". Add a separate routine "user_color()" to choose background colors based on user name. Abandon the "color-hash-seed" setting. Instead, provide the "user-color-map" setting for overriding the automatic color choices for a few users, which color collisions occur between key project members. file: [c46026d239] check-in: [4d0af2a68f] user: drh branch: user-color-revamp, size: 29948
2021-01-20
02:09
Enable secure_delete when deleting chat messages, so that there are no forensic traces left behind. file: [d74ac16cc9] check-in: [12a120dd37] user: drh branch: trunk, size: 29948
2021-01-12
13:50
Fix typos in help and other console output. file: [ebdaa5acbc] check-in: [2f78b2cb41] user: danield branch: trunk, size: 29865
2021-01-06
13:00
chat: home/end navigation buttons now unconditionally start toggled off, as they're rarely useful. file: [897713b827] check-in: [b19081f3a3] user: stephan branch: trunk, size: 29864
2021-01-05
20:07
Improvements to the way that the chat alert sound is configured. Remove the /chat-alert webpage. Access the sound files directly using /builtin. file: [279cbdbe3c] check-in: [21a870d02d] user: drh branch: trunk, size: 29834
19:23
Two new alert sounds. file: [1e233296ee] check-in: [35b07813a8] user: drh branch: trunk, size: 30137
19:05
Provide for two different chat-alert sounds in the /Admin/Chat configuration menu. file: [4bdc631282] check-in: [d8e6994350] user: drh branch: trunk, size: 30090
14:02
It's 2021 now, not 2020. file: [2b3ec2ccdb] check-in: [d0e81e5941] user: stephan branch: trunk, size: 29855
14:00
Removed the reference to the unversioned table from the chat alert list generation, since that table is optional and the alerts are currently disabled (problem reported in /forumpost/f3a522489b. Removed mention of the configurable alerts from chat.md. file: [1a75aea27e] check-in: [381ad0c846] user: stephan branch: trunk, size: 29855
05:19
Moved chat audio notification files to src/alerts, per chatroom discussion. Chat audio is now configurable using a selection of builtin WAV files and audio files stored in /uv/alert-sounds/*.XYZ (==ogg, wav, mp3). The addition of a selection list means that closing the chat settings popup now requires tapping either a popup entry or the settings button - tapping in the page body won't do it because that handling collides with the selection list event handling. file: [fbffd7ac5b] check-in: [4c34053c58] user: stephan branch: trunk, size: 29650
02:25
If the "fossil chat send" command fails, show an error message. file: [9c2c5a471f] check-in: [e514bb5b83] user: drh branch: trunk, size: 28622
02:13
Fix the "fossil chat send" command so that it sends the lmtime query parameter so that the chat display shows an appropriate local time. file: [667b0509ab] check-in: [62d67ed9a5] user: drh branch: trunk, size: 28286
02:05
In the "fossil chat send" command, detect extra arguments and throw an error if they are seen. file: [5ee4847bdf] check-in: [1814f528de] user: drh branch: trunk, size: 27997
01:32
Do not allow the "fossil chat send" command to transmit over an unencrypted channel unless the --unsafe option is used on the command-line. file: [ea2cd4f61b] check-in: [6da3a74d5f] user: drh branch: trunk, size: 27906
01:26
The "fossil chat send" command should throw an error if there are any unrecognized command-line options. file: [f5e7ac117e] check-in: [904a5a5612] user: drh branch: trunk, size: 27659
01:23
Add the "fossil chat send" command. file: [78836d9219] check-in: [1e81049063] user: drh branch: trunk, size: 27607
2021-01-03
16:48
Fix the "fossil chat" command so that it works on Windows. file: [e56a23f3d5] check-in: [f572b62f22] user: drh branch: trunk, size: 23646
16:40
Use the "plunk" sound for audiable alert in chat. Back out the "ping" processing logic. file: [1c8cade382] check-in: [f2fcdbc505] user: drh branch: trunk, size: 23565
11:08
chat: added preliminary audio notification support (may require toggling that capability on for a given server in the browser). Center-aligned chat error messages and removed the 'fossil' user name from them, for compatibility with upcoming timeline-style notifications. Added wav files to the binary-glob versioned setting. file: [f26b86cd03] check-in: [99caeec643] user: stephan branch: trunk, size: 24749
2021-01-02
06:05
In chat multi-line mode, the 'placeholder' text now mentions that Ctrl-Enter sends the message. file: [b58db78408] check-in: [16ba05da98] user: stephan branch: trunk, size: 24362
2020-12-29
16:49
Minor doc typo. file: [1a6673c913] check-in: [47655d3996] user: stephan branch: trunk, size: 24329
04:18
chat: send and poll can now report if the session is logged out, and client-side poll stops looping if that condition is detected. Both cases emit a message in the message area, from user 'fossil', with the CSS class 'error' and a link to the login page with a redirect back to the chat page. file: [5bd53f0a2b] check-in: [3c0c8954c7] user: stephan branch: trunk, size: 24329
2020-12-27
21:00
Put the <form> outside of the chat-input-area <div>. Safari requires this. file: [6ab5313628] check-in: [ca60df9238] user: drh branch: trunk, size: 22547
17:42
Chat: hide message home/end buttons by default in portrait mode and add a menu toggle for them, and swapped the button positions (seems more natural). Minor tweak to the div.content resize algo to make use of CSS calc(). file: [9f239e3df4] check-in: [deb9963ac6] user: stephan branch: trunk, size: 22547
09:05
chat: ARIA-related attribute changes suggested in the forum. file: [98b70878e6] check-in: [ca7aae80ad] user: stephan branch: trunk, size: 22547
08:32
chat: added buttons to jump to top/bottom of message list. Added a huge margin under the input area because Safari demands it. Improved the div.content auto-resize calculation to get a more precise fit. file: [20f04b0739] check-in: [2408082760] user: stephan branch: trunk, size: 22488
03:39
Eliminated top-down chat mode altogether in an attempt to eliminate some complexity and cruft. Re-added the toast-on-new-invisible-message from [0a00a103]. file: [a63d158de0] check-in: [421d657078] user: stephan branch: trunk, size: 22379
2020-12-26
20:47
Typo fix. Moved chat.file to the end of the schema, per forum suggestion. file: [dbff57888c] check-in: [fd73e79b83] user: stephan branch: trunk, size: 22380
20:24
Integrated client-local timestamp into chat so that participants can see the local time in their colleagues' time zones. file: [992aacb7e1] check-in: [3c5e2badc8] user: stephan branch: trunk, size: 22379
17:55
chat app now explicitly sets the body.chat CSS class, to account for skins which include a BODY tag in their header and therefore do not get one injected by the style API. file: [2772faa147] check-in: [feaa3b1640] user: stephan branch: trunk, size: 21826
16:24
Bottom-up chat mode. file: [20b3cd9631] check-in: [2572872bb0] user: drh branch: trunk, size: 21734
15:40
Implement bottom-up and top-down chat layouts in chat-only mode and normal mode. There is a minor scroll-on-new-message quirk or two to resolve, but it otherwise seems to work. file: [8fb4678475] check-in: [dfc20f4297] user: stephan branch: chat-mode-bottom-up, size: 20785
12:33
Make the /chat-poll timeout configurable using the chat-poll-timeout setting. file: [dda93fbc12] check-in: [8363e7b8e6] user: drh branch: trunk, size: 21594
2020-12-25
20:30
For the chat function, the server-to-client JSON uses strict ISO8601 time strings, including the "T" in the middle and the "Z" at the end. file: [d5e6a43d56] check-in: [13c95f0c75] user: drh branch: trunk, size: 20645
17:52
chat: added toggles for single/multi-line input (non-persistent) and monospace message font (persistent - affects message bodies and text input fields). file: [ae402097e4] check-in: [9d24a28490] user: stephan branch: trunk, size: 20594
16:08
chat internal cleanups in prep for upcoming changes. Possibly fixed the cosmetic bug where the titlebar says '(0) ...' after receiving an empty list of messages in response to an auto-reconnect after a timeout. file: [f2d4b46e4e] check-in: [e52d0fd5ce] user: stephan branch: trunk, size: 20431
14:58
Added chat setting chat-inline-images: specifies whether /chat images default to display inline or as download links. Various code-adjacent tweaks. file: [d09f378cd5] check-in: [9d86a4af61] user: stephan branch: trunk, size: 20418
12:09
Change /chat-poll so that it times out after 7 minutes. This prevents the server from timing out the request and generating errors in the log. file: [5036fecdb4] check-in: [08533f9095] user: drh branch: trunk, size: 20095
11:06
Moved chat.c inline CSS style to default.css. Various chat layout tweaks. file: [b5e48d7200] check-in: [467dbc8fd7] user: stephan branch: trunk, size: 19988
10:04
Added settings popup to chat. Currently only 1 setting - toggling the page header/footer on/off. file: [9bba89ab5c] check-in: [617e23bea3] user: stephan branch: trunk, size: 21276
2020-12-24
20:18
Initial impl of buttons to load older chat messages. The UI code is a bit more involved than might seem necessary, but is so largely because it needs to avoid UI/ajax race conditions. file: [f3077e254e] check-in: [6d676f6eb5] user: stephan branch: trunk, size: 21206
19:28
A valid /chat-ping request should set the Access-Control-Allow-Origin in the reply header, to avoid client-side errors. file: [93cb233cc9] check-in: [ffb40fd894] user: drh branch: trunk, size: 20025
19:15
Automatically purge older chat messages using the chat-keep-count and chat-keep-days settings to determine which messages to delete. file: [6790b7d6b8] check-in: [35fbf4995d] user: drh branch: trunk, size: 19955
18:46
Fix chat so that it detects hyperlinks at the end of a chat message. file: [41c8f7446d] check-in: [6f4fdfcd6f] user: drh branch: trunk, size: 19057
17:10
Disable CSP for /chat with a ping= query parameter. This is a drastic measure to get the feature working. We can work on providing a better solution later. file: [ed83ab15e6] check-in: [02961b8078] user: drh branch: trunk, size: 19069
15:58
Fix a harmless compiler warning. file: [453a5d23df] check-in: [b4862238ec] user: drh branch: trunk, size: 18961
15:57
Add the "fossil chat" command that attempts to bring up a chat window in the default web browser and provide alerts through the TTY. file: [77e0ce788b] check-in: [f62805ed85] user: drh branch: trunk, size: 18957
15:10
The ping=TCPPORT query parameter to /chat causes a call to /chat-ping on localhost and the given port whenever new chat content arrives. Can be used for notifications. file: [f288696824] check-in: [ebdd91b92f] user: drh branch: trunk, size: 17622
13:44
Hyperlink processing for chat messages is now handled on the server side, where we have knowledge of interwiki links, wiki page names, and valid artifact hashes. file: [0d9e47200d] check-in: [822653c269] user: drh branch: trunk, size: 16767
05:58
Added UI to delete chat posts (tap on the message header). Made a change to the semantics of when fossil.PopupWidget's refresh() callback is triggered to account for the common case of having to show() the popup twice in a row without a hide() in between. file: [5296cf730d] check-in: [b7f106da8a] user: stephan branch: trunk, size: 14225
03:34
The /chat page now redirects to the login page if needed. file: [e165bbc64a] check-in: [77d3058600] user: drh branch: trunk, size: 14380
01:04
Bungled merge. Was: The /chat page redirects to the login page if the user does not have appropriate permissions to use chat. file: [fe534379ee] check-in: [fee74ce5e7] user: drh branch: mistake, size: 13896
2020-12-23
23:27
Several internal cleanups in chat app, e.g. replace document.createXYZ with simpler fossil.dom API. Eliminate assignment to innerHTML, which is widely considered unsafe. file: [a3869f97a7] check-in: [68da24594f] user: stephan branch: trunk, size: 14531
22:58
chat: minor UI refinements. file: [3360f890c9] check-in: [8eb01c314b] user: stephan branch: trunk, size: 14487
20:58
Add the /Admin/Chat page. Add settings to configure the initial history load size of /chat, and to configure purging of historical messages. file: [8e3849f711] check-in: [15bc20f29d] user: drh branch: trunk, size: 14047
19:55
Turn off autocomplete on the chat entry form. file: [8f57adc4d2] check-in: [5715978d9f] user: drh branch: trunk, size: 12934
18:21
Fix the /chat-poll page so that it works even when called from "fossil ui". file: [6769fab36c] check-in: [6f424a32b5] user: drh branch: chatroom-dev, size: 12915
16:19
Additional documentation on the /chat-poll page. file: [99f3846686] check-in: [2261b29415] user: drh branch: chatroom-dev, size: 12841
16:08
Upon initial connect to the chatroom, only load the most recent 50 messages. This magic number "50" ought to be configurable, but is hard-coded for the moment. We also need a way for the user to request more history. file: [90381d6ef5] check-in: [c017a7b4d0] user: drh branch: chatroom-dev, size: 12660
15:35
Add the /chat-delete page that can be used to by an XHR to delete a particular chat message. file: [9a331ae04f] check-in: [2480ce9465] user: drh branch: chatroom-dev, size: 12279
15:12
chat: improved visual notification of drag/drop into the file input selector. file: [d760f9100c] check-in: [d521007602] user: stephan branch: chatroom-dev, size: 10335
15:00
chat: reworked the drag/drop bits to take advantage of Firefox and Chrome already supporting drag/drop onto a file input element. file: [cb58a7a258] check-in: [7e48953c16] user: stephan branch: chatroom-dev, size: 10161
14:21
Made chat drop zone smaller by replacing its text with a helplet button. Added 'chat' table to the list of those NOT nuked by rebuild. file: [35a7e6aef8] check-in: [85939ffcbe] user: stephan branch: chatroom-dev, size: 10392
10:28
Chat style tweaks. file: [bb1db9ff9f] check-in: [3e956a2354] user: stephan branch: chatroom-dev, size: 10518
10:23
chat: added drag/drop support for files. Images get previewed like those pasted from the clipboard. file: [dc4ebf76d9] check-in: [4c0146f180] user: stephan branch: chatroom-dev, size: 10428
08:21
Fixed incorrect chatMessage.fsize value being served with the message list JSON. file: [6c2df5c20f] check-in: [8f736e8456] user: stephan branch: chatroom-dev, size: 9897
07:45
Simplified some JSON quoting in chat.c. Bypass the paste-from-clipboard handling if the paste target is the input text field, to avoid a console-level error when the text cannot be parsed as an image. TODO: figure out how to handle the paste-image case properly when the event target is the text input field. file: [b339ca75c5] check-in: [2fe8d7c4b1] user: stephan branch: chatroom-dev, size: 9893
07:09
Implemented paste image into chat from clipboard. Fixed posted file download link but the files download with the same name as their message ID, which isn't very friendly. Not sure how to resolve that bit. file: [45ed854e18] check-in: [eb7845f339] user: stephan branch: chatroom-dev, size: 9907
06:26
Chat message precise timestamps are now shown via a tap/click popup, rather than hoverhelp, for mobile compatibility. file: [a0da07d873] check-in: [0101325f9d] user: stephan branch: chatroom-dev, size: 9755
05:44
Import fossil bootstrapping JS into the chat app, add current login name to window.fossil.user.name, and use that name as the initial 'me' value in chat.js (resolves the FIXME in that latter part). file: [f3466f8bae] check-in: [4e832e9f40] user: stephan branch: chatroom-dev, size: 9482
01:33
Basic chat functionality seems to be on-line again. file: [e0bcc32d77] check-in: [441ee6af06] user: drh branch: chatroom-dev, size: 9430
00:58
Get the /chat-send and /chat-poll interfaces working. file: [4aa6ee93b5] check-in: [25828eb581] user: drh branch: chatroom-dev, size: 8952
2020-12-22
20:11
Added: Begin trying to integrate the chatroom prototype into the Fossil core. New code is in src/chat.c and src/chat.js. Add the new "C" capability to enable access to chat. The new code compiles but is not yet functional. (This is an incremental check-in.) The original tools/chat.tcl Wapp script is still available for reference. file: [f673a7192f] check-in: [217b0d2548] user: drh branch: chatroom-dev, size: 5909