定制 zynqa/filament-jira-feedback 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zynqa/filament-jira-feedback

Composer 安装命令:

composer require zynqa/filament-jira-feedback

包简介

A FilamentPHP package to collect user feedback and automatically create Jira issues

README 文档

README

A FilamentPHP package to collect user feedback and automatically create Jira issues. Perfect for beta testing, feature requests, bug reports, and general user feedback.

Features

  • Zero Configuration: Automatically displays feedback banner at the top of all Filament pages
  • Filament Native: Built with Filament components, forms, modals, and notifications
  • Dark Mode Support: Automatically adapts to your Filament theme
  • Dynamic Issue Types: Fetches issue types from your Jira project with filtering and custom descriptions
  • Flexible Positioning: Position banner anywhere using Filament render hooks
  • User Context: Includes authenticated user information with feedback
  • Fully Customizable: Colors, icons, messages, and positioning

Requirements

  • PHP 8.2+
  • Laravel (compatible with Laravel 11+)
  • FilamentPHP (see composer.json for version compatibility)
  • Jira Cloud account with API access

Installation

composer require zynqa/filament-jira-feedback

Publish Configuration

php artisan vendor:publish --tag=filament-jira-feedback-config

Configure Environment Variables

Add to your .env file:

# Required
FILAMENT_JIRA_FEEDBACK_URL=https://your-domain.atlassian.net
FILAMENT_JIRA_FEEDBACK_EMAIL=your-email@domain.com
FILAMENT_JIRA_FEEDBACK_API_TOKEN=your-jira-api-token
FILAMENT_JIRA_FEEDBACK_PROJECT_KEY=FEEDBACK

# Optional
FILAMENT_JIRA_FEEDBACK_ENABLED=true
FILAMENT_JIRA_FEEDBACK_BANNER_MESSAGE="Help us improve by reporting issues"
FILAMENT_JIRA_FEEDBACK_BUTTON_LABEL="Submit Feedback"
FILAMENT_JIRA_FEEDBACK_COLOR=info
FILAMENT_JIRA_FEEDBACK_ICON=heroicon-o-information-circle
FILAMENT_JIRA_FEEDBACK_REQUIRE_AUTH=false
FILAMENT_JIRA_FEEDBACK_DEFAULT_PRIORITY=Medium

Get Your Jira API Token

  1. Log in to your Atlassian account
  2. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  3. Click "Create API token"
  4. Copy the token and add it to your .env file

That's it! The feedback banner will automatically appear at the top of your Filament pages.

Usage

Basic Usage

Users can click the "Submit Feedback" button to open a modal with a form. The form includes:

  • Issue type dropdown (dynamically fetched from Jira)
  • Title field
  • Description field

Upon submission, a Jira issue is automatically created with user context.

Using the Action Component

Use the feedback action in any Filament resource, page, or widget:

use Zynqa\FilamentJiraFeedback\Actions\SubmitFeedbackAction;

protected function getHeaderActions(): array
{
    return [
        SubmitFeedbackAction::make(),
    ];
}

Customization

Banner Position

By default, the banner appears at the top of the page. To customize:

  1. Disable auto-registration in .env:
FILAMENT_JIRA_FEEDBACK_ENABLED=false
  1. Register at custom position in your Panel Provider:
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;

->renderHook(
    PanelsRenderHook::CONTENT_START, // or any other hook
    fn (): string => Blade::render('@livewire(\'filament-jira-feedback-banner-widget\')')
)

Available hooks: BODY_START, BODY_END, CONTENT_START, CONTENT_END, TOPBAR_START, TOPBAR_END, SIDEBAR_NAV_START, SIDEBAR_NAV_END, FOOTER

Colors

Use preset colors:

FILAMENT_JIRA_FEEDBACK_COLOR=info # danger, warning, success, info, primary, secondary, gray

Or define custom Tailwind classes for light and dark modes:

# Light Mode
FILAMENT_JIRA_FEEDBACK_BG=bg-blue-50
FILAMENT_JIRA_FEEDBACK_TEXT=text-blue-900
FILAMENT_JIRA_FEEDBACK_BORDER=border-blue-600
FILAMENT_JIRA_FEEDBACK_ICON_COLOR=text-blue-600

# Dark Mode
FILAMENT_JIRA_FEEDBACK_BG_DARK=bg-blue-950/50
FILAMENT_JIRA_FEEDBACK_TEXT_DARK=text-blue-100
FILAMENT_JIRA_FEEDBACK_BORDER_DARK=border-blue-400
FILAMENT_JIRA_FEEDBACK_ICON_COLOR_DARK=text-blue-400

Icons

Use any Heroicon:

FILAMENT_JIRA_FEEDBACK_ICON=heroicon-o-bug-ant

Issue Types

Issue types are automatically fetched from Jira and cached for 1 hour.

Filter with whitelist:

// config/filament-jira-feedback.php
'issue' => [
    'allowed_types' => ['Bug', 'Story', 'Task'],
],

Filter with blacklist:

'issue' => [
    'allowed_types' => null,
    'excluded_types' => ['Epic', 'Sub-task'],
],

Add descriptions:

'issue' => [
    'type_descriptions' => [
        'Bug' => 'Report a software defect or error',
        'Task' => 'Request a general task or work item',
        'Story' => 'Request a new feature or enhancement',
    ],
],

Descriptions display as: "Bug - Report a software defect or error"

Conditional Display

Show banner only to specific users:

->renderHook(
    PanelsRenderHook::BODY_START,
    fn (): string => auth()->user()?->hasRole('beta-tester')
        ? Blade::render('@livewire(\'filament-jira-feedback-banner-widget\')')
        : ''
)

User Context

Include user's project key in issue summary:

'user_context' => [
    'include_project_key' => true,
    'project_key_field' => 'project_key',
],

This prefixes summaries with [PROJECT_KEY].

Troubleshooting

Banner doesn't appear:

  • Check FILAMENT_JIRA_FEEDBACK_ENABLED=true in .env
  • Clear cache: php artisan config:clear && php artisan filament:cache-components

Feedback submission fails:

  • Verify Jira credentials are correct
  • Check that the project key exists
  • Ensure your Jira user has create issue permissions
  • Check storage/logs/laravel.log for detailed errors

Issue types not working:

  • Issue types are cached for 1 hour - clear cache: php artisan cache:clear
  • Verify issue types exist in your Jira project
  • Issue type names are case-sensitive

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

zynqa/filament-jira-feedback 适用场景与选型建议

zynqa/filament-jira-feedback 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 126 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「jira」 「widget」 「feedback」 「Beta」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 zynqa/filament-jira-feedback 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 zynqa/filament-jira-feedback 我们能提供哪些服务?
定制开发 / 二次开发

基于 zynqa/filament-jira-feedback 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 126
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 30
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-12