@burdenoff/microfe-support

中文文档
2026.1031.2发布于 2026/11/01TypeScriptES Module近 30 天下载 8532

Burdenoff Support Microfrontend - Complete customer support and ticketing interface

原始使用文档
文档目录24 节
  1. Overview
  2. Features
  3. Installation
  4. Development
  5. Project Structure
  6. GraphQL Operations
  7. Queries
  8. Mutations
  9. Subscriptions
  10. Configuration
  11. Environment Variables
  12. Integration with Shell
  13. Ticket Priorities
  14. Ticket Statuses
  15. SLA Breach Status
  16. Knowledge Base
  17. Article Structure
  18. SEO-Friendly URLs
  19. Available Scripts
  20. Technology Stack
  21. Known Issues
  22. GraphQL Generated Code
  23. Best Practices
  24. License

@burdenoff/microfe-support

Customer support and help desk system for the Burdenoff platform

TypeScript React Vite

Overview

The Support microfrontend provides a comprehensive customer support platform with ticket management, ticket-backed conversations, knowledge base, analytics, and SLA tracking. Deliver customer support with durable ticket history and operational insights.

Port: 5154 Module Type: Tenant Module API Gateway: Port 4018

Features

  • Ticket Management

    • Create and manage support tickets
    • Priority levels (Low, Normal, High, Critical)
    • Status tracking (New, In Progress, Resolved, Closed)
    • Ticket assignment and escalation
    • Internal notes and customer replies
    • File attachments
  • Ticket-Backed Conversations

    • Customer and agent replies on support tickets
    • Message subscriptions for ticket updates
    • Durable conversation history
    • Canned responses
    • Assignment and escalation through ticket workflows
  • Knowledge Base

    • Self-service articles
    • Category organization
    • Article search
    • View tracking
    • Helpful/not helpful voting
    • Related articles
  • SLA Management

    • Configure SLA policies
    • Track response times
    • Resolution time monitoring
    • SLA breach alerts
    • Business hours configuration
    • Custom SLA rules per priority
  • Analytics Dashboard

    • Ticket volume trends
    • Response time metrics
    • Resolution time metrics
    • Agent performance
    • Customer satisfaction scores
    • Category breakdowns
  • Settings & Configuration

    • General settings
    • Working hours
    • SLA policies
    • Canned responses
    • Email templates
    • Ticket categories

Installation

# Install dependencies
bun install

# Generate GraphQL types
bun run codegen

Development

# Start development server (port 5154)
bun run dev

# Run linter
bun run lint

# Format code
bun run format

# Type check
bun run type:check

# Build for production
bun run build

# Run all quality checks
bun run sanity

Project Structure

src/
├── dev/                      # Development harness
├── support/                  # Main module
│   ├── components/          # React components
│   │   ├── PageLayout.tsx
│   │   ├── analytics/       # Analytics components
│   │   ├── chat/           # Chat components
│   │   ├── settings/       # Settings components
│   │   ├── shared/         # Shared components
│   │   ├── tickets/        # Ticket components
│   │   └── ui.tsx          # UI components
│   ├── graphql/            # GraphQL operations
│   │   ├── client.ts
│   │   ├── generated/      # Generated types
│   │   └── operations/     # Queries/Mutations
│   ├── hooks/              # Custom React hooks
│   │   ├── useAnalyticsOperations.ts
│   │   ├── useChatOperations.ts
│   │   ├── useKnowledgeBaseOperations.ts
│   │   ├── useSettingsOperations.ts
│   │   └── useTicketOperations.ts
│   ├── pages/              # Page components
│   ├── providers/          # Context providers
│   ├── store/              # State management
│   ├── types/              # TypeScript types
│   └── utils/              # Utility functions

GraphQL Operations

Queries

  • getTickets - List support tickets
  • getTicketDetail - Get ticket messages and status
  • mySupportTickets - List my support tickets
  • getArticles - List KB articles
  • getArticle - Get article details
  • getSupportAnalytics - Get analytics
  • getSLAPolicies - List SLA policies
  • getCannedResponses - Get canned responses

Mutations

  • createTicket - Create support ticket
  • updateTicket - Update ticket
  • addTicketMessage - Add message to ticket
  • assignTicket - Assign to agent
  • changeTicketStatus - Update status
  • createSLAPolicy - Create SLA policy
  • createCannedResponse - Create canned response

Subscriptions

  • ticketUpdated - Ticket status changes (in generated code)
  • ticketMessageAdded - Real-time ticket conversation updates (in generated code)

Configuration

Environment Variables

VITE_API_GATEWAY_URL=http://localhost:4018/graphql
VITE_TENANT_ID=your-tenant-id
VITE_WORKSPACE_ID=your-workspace-id

Integration with Shell

import { SupportRoot } from '@burdenoff/microfe-support';

function App() {
  return (
    <SupportRoot
      basePath="/support"
      navigate={navigate}
      apiGatewayUrl="http://localhost:4018/graphql"
      workspaceId="workspace-123"
      currentUser={{
        id: 'user-1',
        email: '[email protected]',
        displayName: 'Support Agent',
      }}
      onTicketCreated={(ticket) => {
        console.log('Ticket created:', ticket);
      }}
      onChatStarted={(session) => {
        console.log('Ticket conversation started:', session);
      }}
      onArticleViewed={(article) => {
        console.log('Article viewed:', article);
      }}
    />
  );
}

Ticket Priorities

PrioritySLA ResponseSLA ResolutionUse Case
Critical15 minutes4 hoursSystem down, data loss
High1 hour8 hoursMajor feature broken
Normal4 hours24 hoursGeneral issues
Low24 hours72 hoursQuestions, requests

Ticket Statuses

  • New - Just created, not yet assigned
  • In Progress - Being worked on by agent
  • Waiting on Customer - Awaiting customer response
  • Resolved - Issue fixed, awaiting confirmation
  • Closed - Confirmed resolved
  • Reopened - Reopened after closure

SLA Breach Status

  • None - On track
  • Warning 50% - 50% of time elapsed
  • Warning 75% - 75% of time elapsed
  • Warning 90% - 90% of time elapsed
  • Breached - SLA time exceeded

Knowledge Base

Article Structure

  • Title and description
  • Article content (Markdown)
  • Category assignment
  • Tags for search
  • Related articles
  • View count tracking
  • Helpful ratings

SEO-Friendly URLs

/knowledge-base/getting-started
/knowledge-base/account-management/password-reset
/knowledge-base/billing/upgrade-plan

Available Scripts

ScriptDescription
bun run devStart development server
bun run buildBuild for production
bun run lintRun ESLint
bun run formatFormat with Prettier
bun run type:checkTypeScript type checking
bun run codegenGenerate GraphQL types
bun run sanityRun all quality checks

Technology Stack

  • Framework: React 19 with TypeScript 5.9
  • Build Tool: Vite 7
  • State Management: Zustand 5
  • GraphQL Client: Apollo Client
  • Styling: Tailwind CSS v4
  • UI Components: Radix UI
  • Icons: Lucide React
  • Routing: React Router DOM 7
  • Real-time: GraphQL Subscriptions

Known Issues

GraphQL Generated Code

There are 2 TypeScript errors in src/support/graphql/generated/operations.ts (lines 778, 787) related to Apollo Client subscription type compatibility. These are in generated code and will be resolved when the GraphQL schema is regenerated. The module is fully functional despite these errors.

Best Practices

  1. Ticket Management

    • Respond within SLA times
    • Keep customers updated
    • Use internal notes for team communication
    • Close resolved tickets promptly
  2. Live Chat

    • Greet customers promptly
    • Use canned responses for efficiency
    • Transfer to specialist when needed
    • End chats politely
  3. Knowledge Base

    • Write clear, concise articles
    • Include screenshots/videos
    • Keep content up-to-date
    • Monitor article helpfulness

License

Proprietary - Copyright © 2025 Burdenoff Consultancy Services Pvt. Ltd.

版本与发布记录

@burdenoff/microfe-support 共发布 75 个版本,首次发布于 2026/05/11;过去 12 个月发布了 75 个版本。

版本发布日期距今
2026.1031.2latest2026/11/018 天前
2026.1031.1alpha2026/11/018 天前
2026.1029.32026/10/309 天前
2026.1029.22026/10/309 天前
2026.1029.12026/10/309 天前
2026.1014.102026/10/1524 天前

关于 @burdenoff/microfe-support 的常见问题

@burdenoff/microfe-support 是什么?

Burdenoff Support Microfrontend - Complete customer support and ticketing interface

如何安装 @burdenoff/microfe-support?

在项目目录运行 npm install @burdenoff/microfe-support,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^19.0.0)、zustand(^5.0.0)、react-dom(^19.0.0)、@apollo/client(^4.0.9)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@burdenoff/microfe-support 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@burdenoff/microfe-support 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@burdenoff/microfe-support 可以商用吗?

@burdenoff/microfe-support 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@burdenoff/microfe-support 的下载量有多少?

根据 npm 官方下载统计,@burdenoff/microfe-support 在 2026/10/09 – 2026/11/07 这 30 天内被下载 8,532 次,日均约 284 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@burdenoff/microfe-support 还在维护吗?

最新版本 2026.1031.2 发布于 2026/11/01(8 天前);至今共发布 75 个版本,其中过去 12 个月发布了 75 个;首次发布于 2026/05/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。