Skip to content

Frontend Javascript + UI changes, full pipeline testing#19

Merged
ShafathZ merged 12 commits into
mainfrom
frontend_javascript
Feb 27, 2026
Merged

Frontend Javascript + UI changes, full pipeline testing#19
ShafathZ merged 12 commits into
mainfrom
frontend_javascript

Conversation

@ShafathZ
Copy link
Copy Markdown
Owner

  1. Frontend Javascript for storing chats configured
  2. Javascript integrated with UI
  3. UI additional changes to make most buttons functional (copy, edit, delete, use local model) with connection to backend requests when needed

Still TODO:

  • Change endpoint to be relative (e.g. /anizenith/chat instead of localhost:1234/anizenith/chat) so it works with frontend server
  • Split frontend and backend apps (future branch after this PR)

Copy link
Copy Markdown
Collaborator

@Suryanshg Suryanshg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with some minor comments

Comment thread static/js/chat_utils.js
Comment thread static/js/chat_utils.js
Comment thread static/js/chat_utils.js
Comment thread static/js/chat_utils.js
Comment thread static/js/chat_utils.js
Comment thread static/js/chat_utils.js
Comment thread static/js/buttons.js
Comment thread static/js/buttons.js
resetBtn.addEventListener("click", () => {
if (!confirm("Are you sure you want to clear the full chat?")) return;

deleteMessage(0);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we delete the message at 0th index only?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deletion cascades all future messages for chatbots (since this is a CausalLM). So deletion at index 0 = deletion of all elements

Copy link
Copy Markdown
Collaborator

@Suryanshg Suryanshg Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this method to be something like cascadingDelete() or somewhere along the same lines, as I feel the method's name is a bit misleading ...

@ShafathZ ShafathZ merged commit 5d05514 into main Feb 27, 2026
2 checks passed
@ShafathZ ShafathZ deleted the frontend_javascript branch March 14, 2026 06:52
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.

3 participants