Git Product home page Git Product logo

casetimer's Introduction

# 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
 */

casetimer's People

Contributors

amunugala avatar mohitbhasin100 avatar sf-kiwi-cpat avatar svc-scm avatar tepp0f3l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

casetimer's Issues

Error thrown because of missing onTabReplaced

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

Timer adding session times that are near duplicates

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

Timer giving incorrect session times on one case

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

  1. 20 second entry
  2. 30 second entry (20 seconds + 10 seconds away from case)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.