Complete LiveChat removal - delete unused chat functionality and reduce bundle size #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR removes all LiveChat functionality and references from the codebase, as it's no longer needed and routes are configured for the home page only. This cleanup removes over 800 lines of unused code and reduces the production bundle size by approximately 19 KB.
Changes Made
Deleted Files and Directories
src/pages/LiveChat/directory includingindex.tsxandcomponents/PageLayout.tsxsrc/components/chat/directory containing 8 component files:AdminLogin.tsx,ChatHeader.tsx,Message.tsx,MessageInput.tsxMessageList.tsx,NameInput.tsx,types.ts,useChatState.tssrc/components/ChatInterface.tsxUpdated Files
src/config/i18n.tschatobject fromTranslationinterface (17 properties)liveChatkey from buttons translationssrc/components/ContactButtons.tsxt.buttons.liveChatto hardcoded"Google Meet"stringsrc/components/ContactCard.tsxChatInterfaceimportshowChatstate variablepublic/sitemap.xml/livechatURL entry to reflect current routing structureImpact
Bundle Size Reduction
Code Quality
Testing
npm run buildnpm run lintNotes
The Google Meet button now uses a hardcoded label and directly opens the Google Chat room URL. The application maintains its core functionality while being significantly lighter and more maintainable.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.