• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use ad_include_contract and revise current usages (e.g. write_p was not used anywhere)

Use ad_include_contract on this page

Bring all sql inline

Replace silent catch idiom

Use ad_include_contract

Provide a working way to configure the plain xowiki chat includelet:

at Chat class instantiation one can now specify a configuration dict that will be

persisted in an nsv and used to set option parameters (instance variables) such as login messages, logout messages

and the messages time window (and potentially other options in the future). This persistent configuration happpens whenever a client

logs in.

  1. … 2 more files in changeset.
Retract configurability for plain xowiki includelet as, without some way of persisisting the conf over subsequent object instantiations, would really not work and also ignore chat room configs

  1. … 2 more files in changeset.
Give a UI for chat admins to retrieve and copy xowiki includelet code to embed a chat in xowiki pages

Allow also plain xowiki includelet to specifiy if we want login and logout messages and the past messages time window through includelet parameters

  1. … 2 more files in changeset.
Converge styling of chat in a single css file for both xowiki and chat packages

This might fork in the future, but there is no need atm

  1. … 1 more file in changeset.
Chat reform:

- reduce code duplication by determining the proper chat class dynamically and storing it in an nsv

- move static content in the resources path. Serving them is now independent from the mounted xowiki path

- get rid of the ajax url path

  1. … 11 more files in changeset.
Chat Redesign: simplify style of 'Full Screen' icon

  1. … 1 more file in changeset.
Chat Redesign: simplify send icon svg and styles associated

  1. … 1 more file in changeset.
Chat Redesign: add send button + svg icon

  1. … 2 more files in changeset.
Chat Redesign: make 'Full screen' images color filling easy to change in css

  1. … 1 more file in changeset.
Give xowiki chat also some kind of nice skin and centralize css retrieval

TODO: something smarter can be done in order to retrieve the proper css, based e.g. on theme, chat skin (to be implemented) etc. To be discussed is some way to resolve resources based on the theme.

  1. … 2 more files in changeset.
New chat_room includelet, behaving as the existing chat one, but plugged with extra chat package's feature (transcript management...)

To avoid package_id to be overridden, we force it always to the one of the current chat

  1. … 1 more file in changeset.
whitespace changes

- make clear, that on_submit causes always an "ad_script_abort"

- prefer "export_vars" over manual URL construction

Remove trailing whitespace

Add missing 'ad_script_abort' after 'ad_returnredirect'

Increase z-index property for 'Full screen' mode, to avoid issues with the footer of the openacs bootstrap theme

Chat Redesign:

+ Add avatars to chat user list.

+ acs-subsite: new default avatar images (x50 and x100)

+ acs-subsite: provide with a default avatar (x50) on portrait-bits.tcl

+ acs-subsite: restrict portrait-bits.tcl to authenticated users

+ xowiki and chat: add blocks and styles for the user picture

  1. … 4 more files in changeset.
Chat Redesign: improve screen usage on 'Full screen' mode

Fix typo in z-index property

Chat Redesign: 'Full screen' trigger + icon, making the chat use the whole browser window.

  1. … 2 more files in changeset.
Chat Redesign: add LinkRegex global parameter to the chat package, containing the regexp that will look for URLs inside chat messages, so they can be properly formatted as html links.

  1. … 2 more files in changeset.
Chat Redesign:

+ New style classes, opening the door to further graphic redesign.

+ Revamping of the user list.

+ Revamping of the input block.

+ Small changes in the messages block, including floating timestamps to the right.

+ Responsive design: use flexbox for chat layout.

+ Responsive design: make user list horizontally scrollable for 'small' widths.

+ Expose user_id in a hidden div, in the chat adp, so it can be used by the javascript part to check and assign different styles to the chat messages if they belong to the user watching the page.

+ xotcl-core: Pass color and user_id in the message, avoiding the creation of the user link at this level.

+ xotcl-core: Remove user_link proc.

+ xowiki: Avoid autocompletion in input field.

+ xowiki: Adding and relocation of div elements.

+ xowiki: Simple function to transform url-like elements of the messages into links.

+ xowiki: Create user links in chat-common.js.

+ xowiki: Check user_id and assign classes to elements depending on the user watching the page.

  1. … 3 more files in changeset.
Slightly adjust chat height

Improve screen space usage, instead of manually resize