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

[RW-1134] Show chat popup to anonymous users #957

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Conversation

orakili
Copy link
Collaborator

@orakili orakili commented Dec 2, 2024

Refs: RW-1134

This adds a reliefweb_ai module that currently simply alters the chat form to disable it and show a message to instruct anonymous users log in to use the feature.

This also consolidates the messages shown when the form is disabled (ex: non English, maps etc.).

@orakili orakili added the blocked This PR is blocked, do not merge it label Dec 2, 2024
@orakili orakili changed the title [RW-1134] Show chat popup to anonymous users [WIP][RW-1134] Show chat popup to anonymous users Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Build output

Composer Validate success

PHP Lint success

Docker Build success

Environment Setup success

Site Install success

PHP Code Sniffer success

Software Versions Docker version 26.1.3, build b72abbb PHP 8.3.14 (cli) (built: Nov 20 2024 19:56:36) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.14, Copyright (c) Zend Technologies with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans Composer version 2.8.3 2024-11-17 13:13:04
Drupal Logs
PHP Logs

Pusher: @orakili, Action: pull_request, Workflow: Run tests

…form is disabled and add destination to the login to redirect to document page.

Refs: RW-1134
@orakili orakili changed the title [WIP][RW-1134] Show chat popup to anonymous users [RW-1134] Show chat popup to anonymous users Dec 3, 2024
@orakili orakili removed the blocked This PR is blocked, do not merge it label Dec 3, 2024
lazysoundsystem
lazysoundsystem previously approved these changes Dec 3, 2024
html/modules/custom/reliefweb_ai/reliefweb_ai.module Outdated Show resolved Hide resolved
@orakili
Copy link
Collaborator Author

orakili commented Dec 4, 2024

@attiks Could you check the code related to the caching in that PR and let me know if you think something is off? From my tests that works as expected.

It's been deployed to the demo env, if you want to test as well.

Copy link

github-actions bot commented Dec 6, 2024

Coverage Report

Totals Coverage
Statements: 18.08% ( 2314 / 12796 )
Methods: 18.92% ( 137 / 724 )
Lines: 18.03% ( 2177 / 12072 )

@orakili orakili merged commit fd4d4de into develop Dec 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants