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

Eliza #18

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5cdcd52
Adding chat demo WIP.
zoltan-dulac Sep 19, 2022
274b227
Adding Eliza to the codebase and setting up the sample page.
zoltan-dulac Sep 19, 2022
2ed33a4
Added Eliza into its own Enable page (WIP)
zoltan-dulac Sep 20, 2022
00dcb3f
Updates from main
zoltan-dulac Feb 1, 2023
19ff491
Merge branch 'main' of github.com:PublicisSapient/enable-a11y into eliza
zoltan-dulac Feb 27, 2023
72aef41
Removing orig files.
zoltan-dulac Feb 27, 2023
247efd6
Adding buttons for responses (WIP)
zoltan-dulac Mar 8, 2023
92dc22b
Merge branch 'main' into eliza
EleazarVillarreal Jul 11, 2024
d308065
Merge branch 'main' into eliza
EleazarVillarreal Jul 19, 2024
a677325
Merge branch 'main' into eliza
EleazarVillarreal Jul 19, 2024
081bde6
Merge branch 'main' into eliza
EleazarVillarreal Jul 23, 2024
6408059
Merge branch 'main' into eliza
EleazarVillarreal Jul 29, 2024
88eb7f1
fix duplicate id error
Jul 29, 2024
110ea30
Merge branch 'main' into eliza
EleazarVillarreal Aug 8, 2024
d58ac94
New UI for chatbot
Aug 13, 2024
1b0d22c
test
EleazarVillarreal Aug 13, 2024
f0ef908
Basic chat response functionality.
EleazarVillarreal Aug 13, 2024
71779d9
Fix alt attribute error on img element.
EleazarVillarreal Aug 13, 2024
7c4fc11
Fixed screen reader issues with the open/close chat dialogue button.
EleazarVillarreal Aug 14, 2024
5901c48
Fixed chat form accessibility issues.
EleazarVillarreal Aug 14, 2024
d612ece
Fixed p tag in button erorr.
EleazarVillarreal Aug 14, 2024
7c3ef51
Made chat dialogue an aria-live region and tabbable.
EleazarVillarreal Aug 14, 2024
2f19ce5
Merge branch 'main' into eliza
zoltan-dulac Aug 15, 2024
910a3eb
Merge branch 'main' into eliza
EleazarVillarreal Aug 20, 2024
b9f58fb
New changed files on npm start
EleazarVillarreal Aug 22, 2024
d87ca67
Added additional screen reader announcements for chatbot interactions
EleazarVillarreal Aug 22, 2024
222c55f
Merge branch 'main' into eliza
EleazarVillarreal Aug 27, 2024
966a8bd
Merge branch 'main' into eliza
EleazarVillarreal Aug 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed screen reader issues with the open/close chat dialogue button.
EleazarVillarreal committed Aug 14, 2024
commit 7c4fc110923dea0d61cc31a45fb26202f93d2f61
1 change: 1 addition & 0 deletions content/body/chat.php
Original file line number Diff line number Diff line change
@@ -88,6 +88,7 @@
</div>

<button class="chatbot-btn">
<p class="chatbot-btn-label sr-only">Open the chat dialogue.</p>
<span aria-hidden="true" class="material-symbols-outlined">mode_comment</span>
<span aria-hidden="true" class="material-symbols-outlined">close</span>
</button>
2 changes: 1 addition & 1 deletion content/bottom/chat.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<script src="js/enable-libs/eliza/js/eliza.js" type="module"></script>
<!-- <script src="js/enable-libs/eliza/js/eliza.js" type="module"></script> -->
<script src="js/enable-libs/eliza/js/chat.js" type="module"></script>
2 changes: 1 addition & 1 deletion css/eliza/chat.css
Original file line number Diff line number Diff line change
@@ -170,7 +170,7 @@
}

.chatbot-btn span:last-child,
.show-chatbot .chatbot-btn span:first-child {
.show-chatbot .chatbot-btn span {
opacity: 0;
}

2 changes: 2 additions & 0 deletions js/enable-libs/eliza/js/chat.js
Original file line number Diff line number Diff line change
@@ -42,7 +42,9 @@ const submitOnEnter = (e) => {
};

const toggleChatbot = () => {
const chatButtonLabel = document.querySelector('.chatbot-btn-label');
chatContainer.classList.toggle("show-chatbot");
chatContainer.classList.contains("show-chatbot") ? chatButtonLabel.innerText = "Close the chat dialogue." : chatButtonLabel.innerText = "Open the chat dialogue.";
chatInput.focus();
}

Loading