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

EmbeddedChat enhancements #219

Closed
wants to merge 82 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
b9d2722
Fix: emoji parsing issue in file description
devanshkansagra Sep 16, 2024
5cdba75
fix
smritidoneria Sep 18, 2024
025f237
Merge branch 'develop' into fix#623
Spiral-Memory Sep 25, 2024
3990f1d
Starred Model fix
smritidoneria Sep 21, 2024
5c78a16
removed console.log
Spiral-Memory Sep 25, 2024
82f091d
Merge pull request #626 from smritidoneria/reportmessage
Spiral-Memory Sep 25, 2024
1f8a9b6
Merge branch 'develop' into fix#623
devanshkansagra Sep 26, 2024
2d158a9
Merge pull request #624 from devanshkansagra/fix#623
Spiral-Memory Sep 26, 2024
a197eb3
prettier
smritidoneria Sep 27, 2024
cbae92a
Merge pull request #628 from smritidoneria/starredmodelfix
Spiral-Memory Sep 27, 2024
13d807e
Combine build steps for react, ui-elements, and layout_editor package…
devanshkansagra Oct 5, 2024
3657c15
Changed workflow name
Spiral-Memory Oct 5, 2024
ebca321
Added Feature to deploy previews of pull requests (#638)
devanshkansagra Oct 6, 2024
9187d95
added pr test info in pr template
Spiral-Memory Oct 6, 2024
d21255c
[fix] Re-rendering fixed while opening pinned and starred messages. (…
Barrylimarti Nov 2, 2024
faf9fb7
fixed markdown rendering in report message (#611)
smritidoneria Nov 2, 2024
467c5b4
added instruction to replace pr num
Spiral-Memory Nov 4, 2024
36534fc
Prevent Quote Message Overflow (#659)
abirc8010 Nov 10, 2024
e898504
Trim Whitespaces in Username/Email Fields in EmbeddedChat Login Form …
SinghaAnirban005 Nov 10, 2024
afa6b81
Fix: Display emoji in visual format and enable send icon on emoji sel…
SinghaAnirban005 Nov 10, 2024
75f7760
Fix logout issue (#666)
abirc8010 Nov 11, 2024
8ba15a5
Fix: Prevent repeated API calls in searchMessages after typing stops …
SinghaAnirban005 Nov 28, 2024
38f52a1
Fix code scanning alert no. 13: Incomplete string escaping or encodin…
Spiral-Memory Dec 15, 2024
8284ffa
Fix: Restrict Pin Icon Visibility Based on User Permissions (#674)
SinghaAnirban005 Dec 15, 2024
32e14bc
Made message box responsive and fixed alignment (#664)
abirc8010 Dec 15, 2024
a6ea2bc
Fix: Quoting issues (#641)
devanshkansagra Dec 15, 2024
28a8202
Feat: Added Scroll-to-Message Functionality (#667)
abirc8010 Dec 15, 2024
f64a3a6
Fix: Sidebar starred messages fetched by api to include thread messag…
Barrylimarti Dec 15, 2024
1058405
fix: ensure pin permission changes reflect without requiring user log…
SinghaAnirban005 Dec 17, 2024
9a3b7ac
Fixed UI issues for Sidebar (#634)
abirc8010 Dec 22, 2024
3d6700c
fix(permissions): ensure admin-granted edit message permissions apply…
SinghaAnirban005 Dec 22, 2024
0d7ff8d
fixed all markdown issues (#614)
smritidoneria Dec 22, 2024
fbb95b6
Fix: Make Mentions Interactive with User Detail Modal (#680)
SinghaAnirban005 Dec 22, 2024
81ad89b
Added a feature to copy messages and copy link in message tool box (#…
devanshkansagra Dec 22, 2024
f0d2848
Added a validation check for pr approval in the deploy-pr workflow (#…
devanshkansagra Dec 22, 2024
88e2851
fix: update file list immediately after deletion to reflect changes i…
SinghaAnirban005 Dec 22, 2024
2a418cd
Revert "Added a validation check for pr approval in the deploy-pr wor…
Spiral-Memory Dec 22, 2024
94e0faf
feat: Implemented search member and display member info feature (#708)
abirc8010 Dec 22, 2024
21d6f2d
fix: display bio, nickname, and statusText in User Info modal; resolv…
SinghaAnirban005 Jan 1, 2025
f6eaf87
Fix: Editing of Audio, Video and File Message (#697)
dhairyashiil Jan 1, 2025
f3b33bc
Fix UI Not Updating Immediately After Pinning/Unpinning Messages (#654)
smritidoneria Jan 1, 2025
de1036c
fix: image gallery showing error (#759)
abirc8010 Jan 1, 2025
d920d59
Feat: add announcement , display room avatar , make room name clickab…
abirc8010 Jan 1, 2025
1c01bbd
fix: user action messages (#746)
abirc8010 Jan 1, 2025
051dfe3
Display user roles (Admin, Leader, Moderator, Owner) next to message …
SinghaAnirban005 Jan 1, 2025
4705888
feat: add password visibility toggle feature in API development porta…
SinghaAnirban005 Jan 1, 2025
5e3e82e
feat: insert links in chat (#682)
r3yc0n1c Jan 1, 2025
cb012e7
fix: issue of mentioning the user in the file description (#677)
devanshkansagra Jan 1, 2025
3e1360e
Fix: Capitalize the first letter of user roles for improved UI (#798)
dhairyashiil Jan 5, 2025
843adf0
Fix bug: Display user roles in MessageAggregator when showRoles is tr…
dhairyashiil Jan 5, 2025
73f8fc0
Fix: Disable hover effect for User Action Messages (#795)
dhairyashiil Jan 5, 2025
dd0657f
fix: jump to message highlights the element (#748)
thepiyush-303 Jan 5, 2025
bd6cefb
Fix: The 'Copy' option functionality is now working for File messages…
dhairyashiil Jan 5, 2025
12cefd6
feat: Add Syntax Highlighting to Multiline Code Blocks using react-s…
abirc8010 Jan 5, 2025
9352c03
Feat: Added 'Collapse & Uncollapse' Functionality for Audio, Video Me…
dhairyashiil Jan 5, 2025
ad7fefd
fix (#704)
smritidoneria Jan 5, 2025
836a83e
Attachmentwindow for audio & video messages (#770)
dhairyashiil Jan 5, 2025
a8f3226
Fix: Prevent click actions when disabled (#736)
dhairyashiil Jan 5, 2025
f0a94a7
Feat: Add cursor pointer on scrollbar thumb hover (#835)
dhairyashiil Jan 8, 2025
4d80839
Fix arrow redirection for thread messages in starred message modal (…
smritidoneria Jan 8, 2025
7ef302e
fix: ensure Admin role tag is visible to all users in channel message…
SinghaAnirban005 Jan 11, 2025
a593589
Fix announcement issue (#851)
abirc8010 Jan 11, 2025
7e3105a
Fix: Prevent Quoting the Same Message Multiple Times (#800)
abirc8010 Jan 11, 2025
2f83344
fix delete modal content and markdown issues (#774)
abirc8010 Jan 11, 2025
dc2c2dd
fix: thread message issue (#860)
abirc8010 Jan 11, 2025
8b05419
Fix: Add channel-name in msgBox (#857)
thepiyush-303 Jan 11, 2025
727800a
Feat: Add icon showing private channel (#867)
thepiyush-303 Jan 11, 2025
b889004
fix: video modal responsiveness (#726)
abirc8010 Jan 11, 2025
d1f074b
feat: add file type filtering dropdown to improve file navigation (#718)
SinghaAnirban005 Jan 11, 2025
bcc7e95
Feat: Added 'Mentions you' and 'Mentions user' tooltips for mentioned…
dhairyashiil Jan 11, 2025
8f3bb40
fix: handleNewLine function to properly add new line in desired locat…
thepiyush-303 Jan 11, 2025
0399d8c
Release-0.2.2
Spiral-Memory Jan 27, 2025
577a1f0
fix:Message notification for avatar change, channel to team change an…
AyushKumar123456789 Jan 27, 2025
db8eb49
Fix:Formattin toolbar tooltip names according to rocket.chat (#879)
AyushKumar123456789 Jan 27, 2025
08724e7
Add hover effect to Members section (#847)
dhairyashiil Jan 27, 2025
dd4195a
fix : Add Hover Effect to FileMessage Component (#845)
AyushKumar123456789 Jan 27, 2025
eb0854f
Feat: Show 'Edit Message' Button for all message types (#826)
dhairyashiil Jan 27, 2025
93198dc
Fix attachment and avatar responsiveness in messages (#922)
abirc8010 Jan 27, 2025
c59a25a
Capitalize User Role in User Info (#815)
dhairyashiil Jan 27, 2025
9d84f49
feat: Add 'Cancel Recording' and 'Finish Recording' tooltips for audi…
dhairyashiil Jan 27, 2025
bde1a16
feat: implement loading of older messages functionality (#810)
SinghaAnirban005 Jan 30, 2025
2004d44
feat : added icon to show Update ChannelHeader and RoomInfo UI for (C…
AyushKumar123456789 Jan 30, 2025
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
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
Fixes # (issue)

## Video/Screenshots

## PR Test Details

**Note**: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace `<pr_number>` with the actual PR number.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn
run: yarn install

- name: Format check
run: yarn format:check
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build PR-Preview

on:
pull_request_review:
types: submitted

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

env:
LAYOUT_EDITOR_BASE_URL: "/EmbeddedChat/pulls/pr-${{github.event.pull_request.number}}/layout_editor"
DOCS_BASE_URL: "/EmbeddedChat/pulls/pr-${{github.event.pull_request.number}}/docs"
STORYBOOK_RC_HOST: "https://demo.qa.rocket.chat"

jobs:
build:
if: github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'OWNER')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "16.19.0"

- name: Install Dependencies
run: yarn install

- name: Build packages
run: yarn build && yarn build:storybook

- name: Setup Node.js for Docs
uses: actions/setup-node@v4
with:
node-version: "18.x"

- name: "Install dependencies for docs"
run: yarn install
working-directory: packages/docs/

- name: Build Docs
run: yarn build
working-directory: packages/docs/

- name: Prepare Build Folder
run: |
mkdir -p build/pulls/pr-${{github.event.pull_request.number}}/
mkdir -p build/pulls/pr-${{github.event.pull_request.number}}/ui-elements
mkdir -p build/pulls/pr-${{github.event.pull_request.number}}/layout_editor
mkdir -p build/pulls/pr-${{github.event.pull_request.number}}/docs

mv -v packages/react/storybook-static/* build/pulls/pr-${{github.event.pull_request.number}}/
mv -v packages/ui-elements/storybook-static/* build/pulls/pr-${{github.event.pull_request.number}}/ui-elements/
mv -v packages/layout_editor/dist/* build/pulls/pr-${{github.event.pull_request.number}}/layout_editor/
mv -v packages/docs/build/* build/pulls/pr-${{github.event.pull_request.number}}/docs/

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: github-pages
path: build/
36 changes: 36 additions & 0 deletions .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy PR-Preview

on:
workflow_run:
workflows: ["Build PR-Preview"]
types:
- completed

permissions:
contents: write
pages: write

jobs:
deploy:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4
with:
name: github-pages
path: build/
github-token: ${{github.token}}
repository: ${{github.repository}}
run-id: ${{github.event.workflow_run.id}}

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-deploy
build_dir: build/
commit_message: "Deploy to Github Pages"
jekyll: false
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 4 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish Storybook to GitHub Pages
name: Build and Publish

on:
push:
Expand Down Expand Up @@ -30,19 +30,10 @@ jobs:
node-version: "16.19.0"

- name: Install Dependencies
run: yarn

- name: Build Storybook
run: yarn build:storybook
working-directory: packages/react

- name: Build UI-Elements
run: yarn build:storybook
working-directory: packages/ui-elements
run: yarn install

- name: Build Layout Editor
run: npm run build
working-directory: packages/layout_editor
- name: Build packages
run: yarn build && yarn build:storybook

- name: Setup Node.js for Docs
uses: actions/setup-node@v4
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request Cleanup
on:
pull_request_target:
types: [closed]

jobs:
cleanup:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: gh-deploy

- name: Check if Deployment Exists
id: check_deployment
run: |
if [ -d "pulls/pr-${{ github.event.pull_request.number }}" ]; then
echo "deployment_exists=true" >> $GITHUB_ENV
else
echo "deployment_exists=false" >> $GITHUB_ENV
fi

- name: Remove Deployment
if: env.deployment_exists == 'true'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git fetch origin gh-deploy
git checkout gh-deploy
git rm -r pulls/pr-${{github.event.pull_request.number}}
git commit -m "Remove deployment for PR #${{github.event.pull_request.number}}"
git push origin gh-deploy
11 changes: 11 additions & 0 deletions packages/api/playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
.playground-output #output{
white-space: pre-wrap;
}
#togglePassword {
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
vertical-align: middle;
width: 50px;
}
</style>
</head>
<body>
Expand All @@ -43,6 +51,9 @@
<div class="input-group">
<input type="text" id="email" placeholder="Email">
<input type="password" id="password" placeholder="Password">
<button id="togglePassword" class="toggle-icon">
Show
</button>
<button id="loginWithPassword">Sign in</button>
</div>
<div class="input-group">
Expand Down
19 changes: 19 additions & 0 deletions packages/api/playground/playground.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import EmbeddedChatApi from '../src/EmbeddedChatApi';

let messages = [];
async function saveToken(token) {
localStorage.setItem("ec_token", token);
Expand Down Expand Up @@ -96,6 +97,7 @@ const callApi = async (e) => {
const result = await api[fn].apply(api, params);
printResult(result);
}

window.addEventListener('DOMContentLoaded', () => {
console.log('Ready')
document.getElementById("loginWithPassword").addEventListener("click", loginWithPassword)
Expand All @@ -113,8 +115,25 @@ window.addEventListener('DOMContentLoaded', () => {

document.getElementById("logoutBtn").addEventListener("click", () => api.auth.logout())
document.getElementById("call-api").addEventListener("click", callApi)
const passwordField = document.getElementById('password')
const togglePassword = document.getElementById('togglePassword')
togglePassword.addEventListener('click',() => toggle(passwordField, togglePassword))
})

let isPasswordVisible = false

const toggle = (passwordField, togglePassword) => {
isPasswordVisible = !isPasswordVisible

if(isPasswordVisible){
passwordField.type = "text"
togglePassword.innerText = "Hide";
} else {
passwordField.type = "password";
togglePassword.innerText = "Show";
}
}

function escapeHTML(str) {
return str.replace(
/[&<>'"]/g,
Expand Down
Loading
Loading