Skip to content

ahmad-jad-alhak/ImageCard-HTML-React-Search-FAQs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAQ Search Adaptive Card Extension

Summary

The FAQ Search Adaptive Card Extension for SharePoint Framework (SPFx) is designed to display and manage frequently asked questions (FAQs) in a user-friendly interface. It offers users the ability to browse FAQs, filter questions by category, and submit new questions directly. Additionally, the extension features a "Most Useful" section, showcasing the questions that have been marked as the most helpful. This solution uses PnPjs to interact with SharePoint lists for data retrieval and submission, ensuring efficient integration with SharePoint.

FAQ Search Adaptive Card Extension FAQ Search Adaptive Card Extension FAQ Search Adaptive Card Extension FAQ Search Adaptive Card Extension

Compatibility

SPFx 1.20.0 Node.js v16 | v18 SharePoint Online Teams Workbench Local | Hosted

Applies to

Prerequisites

  • Access to a SharePoint Online tenant
  • Appropriate permissions to create and manage SharePoint lists
  • FAQ list and submission lists created in SharePoint Online

The FAQ Search Adaptive Card Extension interacts with two SharePoint lists: FAQ List and Submission List. Below are the required columns for each list:

SharePoint Lists & Columns

FAQ List Columns

Column Name Data Type Description
Title Single line of text The title of the FAQ question.
Answer Multiple lines of text The answer to the FAQ question.
Category Choice Category under which the FAQ falls.
HelpfulCount Number Count of how many users found the FAQ helpful.

Submission List Columns

Column Name Data Type Description
Title Single line of text The submitted question.
SubmissionDate Date and Time The date and time the question was submitted.
Status Choice The current status of the submitted question (e.g., "New", "Reviewed").
Category Choice The category of the submitted question.

Solution

Solution Author(s)
FAQ Search Adaptive Card Extension Ahmad Jad Alhak

Version history

Version Date Comments
1.0 October 2024 Initial release

Minimal Path to Awesome

  1. Clone the repository:

    git clone https://github.com/your-repo/faq-search-ace.git
    cd faq-search-ace
    
  2. Install dependencies:

    npm install 
    
  3. Install dependencies:

    gulp serve 
    

Deployment

Follow these steps to deploy the FAQ Search Adaptive Card Extension:

  1. Pre-requisites:

  2. Build the solution:

    • Clone the repository to your local machine.
    • Navigate to the project folder in your terminal and run:
      npm install
      gulp build
  3. Package the solution:

    • Once built, package the solution with:
      gulp bundle --ship
      gulp package-solution --ship
  4. Upload the package:

    • Upload the .sppkg file located in the sharepoint/solution folder to your SharePoint App Catalog.
  5. Deploy the solution:

    • Once uploaded, select the package in the App Catalog and click on "Deploy".
  6. Add the Adaptive Card Extension to the Viva Connections Dashboard

Once the solution is deployed, you can add the Adaptive Card Extension to the Viva Connections Dashboard:

  1. Navigate to the Viva Connections Dashboard of the site.
  2. Edit the dashboard.
  3. Add the newly available FAQ Search Adaptive Card from the list of available web parts.
  4. Configure any required settings for the card in the property pane.

For more details, follow this guide on Adding Cards to the Viva Connections Dashboard.

  1. Configure the Web Part:
    • Edit the page where you want to add the Adaptive Card Extension.
    • Select the FAQ Search Adaptive Card Extension from the list of available extensions.
    • Configure the web part by specifying the FAQ List Name, Submission List Name, and other properties.

Features

The FAQ Search Adaptive Card Extension demonstrates the following features:

  1. FAQ Browsing: Allows users to search and filter FAQs by category.
  2. Most Useful: Displays the FAQs rated as most helpful.
  3. Question Submission: Enables users to submit questions for review.
  4. PnPjs Integration: Uses PnPjs to fetch, update, and manage FAQ and submission list items from SharePoint.

Resources

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published