salesforcelabs / casetimer Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
# CaseTimer A Component that times cases and records data. Setup steps for this repository 1. Connect Visual Studio Code to this repository 2. Connect Visual Studio Code to a Salesforce Org, preferably a new DEV org 3. Deploy all of this code to the Salesforce Org 4. Add the Case Timer component to the Case page layout 5. Assign the 'Case Timer User' permission set to your user /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */
There is a handler for tabReplaced in the component, but there is no method for it in the controller.
It causes an error to be thrown any time the tabReplaced event occurs. Unfortunately this means our company can't use it because the lightning errors being thrown are too disruptive.
<aura:handler event="lightning:tabReplaced" action="{! c.onTabReplaced }"/>
Stack trace: [LCE: consoleLayout2#processReplaceSubtabPage() - Failed to process request: jobLibrary - Job: processReplaceSubtabPage, Stage: tasks, Job failed. An error occurred while processing. LCE: workspace#updateTab() - Failed to update tab. tabId = ctab0_2 , Error: Unable to find action 'onTabReplaced' on the controller of CaseTimer19:serviceConsoleCaseTimerWrapper]
Object.()@https://static.lightning.force.com/cs34/auraCmpDef?aura.app=markup://one:one&_au=OYRNHg5YKSBSlNx_oA2NGg&_ff=DESKTOP&_l=true&_l10n=en_US&_c=false&_style=1620666853&_cssvar=true&_density=VIEW_TWO&force=closeRecord,listViewManagerDisplayDependencyConfiguration,listViewManagerDisplayDependencyItem,scopedActionModal,scopedModal,templateWorkspaceRendered&lightning=tabClosed,tabCreated,tabRefreshed,tabReplaced,unsavedChanges&objectManager=objectManagerLibrary&one=addWorkspaceTab,appNavEvent,appNavMenu,appNavMenuPanel,beforeTabFocusChange,closeWorkspace,consoleAccessibilityUtil,consoleAppCustomizationDefault,consoleAppCustomizationSetup,consoleEventBroker,consoleInlinePanel,consoleLayoutContainer2,consoleLi,consoleLogAction,consoleNav,consoleObjectHome,consoleObjectHomeFocus,consoleOverflowItem,consolePersistenceForceLogoutPlugin,consolePersistenceManager,consoleTab,consoleTabContainer,consoleTabContainerEvent,consoleTabDnD,consoleTabEvent,consoleTabItem,consoleTabNavigate,consoleTabScrollManager,consoleTabset,controlClickLibrary,getPanelManagerScopedContainerInfo,globalNav,isLeftContent,jobLibrary,lastWorkspaceClosed,leftContentWrapper,navItemDropdown,navItemDropdownMenuItem,navItemDropdownMenuItemSeparator,panelManagerScoped,refreshWorkspace,registerConsolePersistenceExtension,replaceWorkspaceTab,tabNavigationChange,toggleEditPage,updateWorkspaceTab,workspace,workspace2,workspaceCollection,workspaceTabEvent,workspaceTabWrapper&onesetup=breadcrumbChange,setupSearchInputDataProvider,setupSearchInputDesktop,setupSearchRequest&reports=editReportEvent&salesforceIdentity=appLauncherHeader&_uid=396928768:563:6
If the timer calculated 20 seconds for a case you will see another entry for that case that is usually a couple seconds more or less than it should be.
This doubles the time as shown in reports for each case.
Example
20 seconds becomes 42 seconds.
Session Timers
00:20
00:22
I have installed this component from managed package. It was not showing case timer in component. Hence, I have added this repository into my org. stiil facing above issue.
Ran into issues while attempting to Deploy Source in Manifest to Org. Resolved it by moving the package.xml to a "manifest" folder.
The case timer has been calculating sessions times incorrectly since the previous 2 releases.
If the case timer is running and you visit another tab in salesforce and go back to the timer you will see that the timer adds the time spent away from the case to the value the timer has when switching tabs.
Example.
Time spent in case #1 before switching tabs: 20 seconds.
Time spent on another tab before switching back: 10 seconds
Session Timer now has 2 entries which equal 50 seconds
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.