Code Monkey home page Code Monkey logo

knowledge-lib-deflect's Introduction

Knowledge Library & Case Deflector

Article View / Defection: tree view of Questions to deflect case creation with tracking, voting and case creation

Knowledge Library: tree view of categories to filter articles with search filtering, pagination, sorting, etc

Screenshot of Components

Article View / Defection: example of article modal when drilled down to & clicking a green highlighted article title

Screenshot of Components

component layout

  • article-view

    • article-lines
      • article-line
        • modal
          • |- view article
          • |- create case
          • |- vote if helpful/not helpful
      • article-line
        • article-lines
          • article-line
          • article-line
            • โˆž

Notes

These two are being open sourced together since they are so similar, use the same apex class, etc.

However, it may be the case that one is needed and the other not. In that case, I'd deploy all to dev sandbox, demo both, and then deploy one wanted to production or next org in your pipeline.

Deploy

Covert with SFDX; This creates a folder called deploy

sfdx force:source:convert -r force-app -d deploy

Now you can deploy from the resulting deploy directory

๐Ÿ“Œ Below deploys to the default org set; Add -u [email protected] or -u alias to deploy else where or -r ArticleTest if test needs ran

sfdx force:mdapi:deploy -d deploy -w -1  -l NoTestRun --verbose

To deploy and run tests, use the -r ArticleTest, for example:

sfdx force:mdapi:deploy -d deploy -w -1 -l RunSpecifiedTests -r ArticleTest --verbose 

Results should more or less mirror below

Using specified username [email protected]

Job ID | 0Af1M000006NHmwSAG
MDAPI PROGRESS | โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ | 22/22 Components
=== Components Deployed [13]
TYPE                      FILE                            NAME               ID
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                          deploy/package.xml              package.xml
ApexClass                 deploy/classes/Article.cls      Article            01p1M000004oT3uQAE
ApexClass                 deploy/classes/ArticleTest.cls  ArticleTest        01p1M000004oT3vQAE
LightningComponentBundle  deploy/lwc/articleCategories    articleCategories  0Rb1M00000001H3SAI
LightningComponentBundle  deploy/lwc/articleCategory      articleCategory    0Rb1M00000001H4SAI
LightningComponentBundle  deploy/lwc/articleLibrary       articleLibrary     0Rb1M00000001H5SAI
LightningComponentBundle  deploy/lwc/articleLine          articleLine        0Rb1M00000001CNSAY
LightningComponentBundle  deploy/lwc/articleLines         articleLines       0Rb1M00000001COSAY
LightningComponentBundle  deploy/lwc/articles             articles           0Rb1M00000001H6SAI
LightningComponentBundle  deploy/lwc/articleView          articleView        0Rb1M00000001CPSAY
LightningComponentBundle  deploy/lwc/modal                modal              0Rb1M00000001CQSAY
LightningComponentBundle  deploy/lwc/paginator            paginator          0Rb1M00000001H7SAI
LightningComponentBundle  deploy/lwc/rummageBar           rummageBar         0Rb1M00000001H8SAI
LightningComponentBundle  deploy/lwc/votingThumbs         votingThumbs       0Rb1M00000001CRSAY

=== Test Success [9]
NAME         METHOD
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
ArticleTest  contentTest
ArticleTest  contentTest2
ArticleTest  dataTests
ArticleTest  dev_count
ArticleTest  getAllArticles
ArticleTest  getAllDataCategories
ArticleTest  getChildQuestions
ArticleTest  getTopLevelQuestions
ArticleTest  searchArticles

=== Apex Code Coverage
NAME     % COVERED  UNCOVERED LINES
โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Article  83%        381,395,396,397,398,399,470,471,478,479,481,483,485,489,491,504,505,506,507,508,514,515,518,519,520,524,526,528,530,531,533,535,537

Total Test Time:  5494.0

Coded while warming feet under a ๐Ÿถ by Jamie Smith

knowledge-lib-deflect's People

Contributors

jsmithdev avatar

Watchers

 avatar James Cloos avatar

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.