跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Tuft Feedback

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Tuft Feedback

作者:George Stephanis
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Tuft adds a floating button to every page on your site. When clicked, it enters a targeting mode that lets the visitor click any element on the page to annotate it. The plugin captures the DOM selector, click coordinates, viewport dimensions, form field state, and an in-browser screenshot, then presents a drawing toolbar so the reviewer can mark up the screenshot before typing their feedback. Everything is stored locally as a custom post type for admin review.

Key features

  • Click-to-annotate — click the “Feedback” button then click any element. The hovered element highlights so you know exactly what you’re selecting.
  • In-browser screenshots — uses html2canvas (bundled with the plugin, no CDN dependency) to capture the visible viewport at the moment of submission.
  • Freehand canvas annotation — a drawing toolbar below the screenshot preview lets reviewers draw freehand strokes or rectangles, undo the last stroke, or clear all marks. Annotations are baked into the submitted JPEG on the client.
  • Context capture — records the CSS selector, viewport-relative click coordinates, viewport dimensions, and any visible form field values (passwords excluded).
  • Feedback modal — clean overlay collects the visitor’s feedback text alongside the annotated screenshot. Logged-in users are not prompted for name or email — their WordPress account details are used automatically. Guest visitors see name and email fields.
  • Widget visibility controls — choose who sees the feedback button: everyone (including logged-out visitors), logged-in users only, editors and above, or administrators only. Configured under Settings → Tuft Feedback.
  • Submission rate limiting — cap submissions per IP address per hour to protect against spam. Set to 0 to disable. Tracked via post meta queries.
  • Built-in notifications — email a comma-separated list of addresses and/or POST a JSON payload to any number of webhook URLs on every submission. Works with Slack incoming webhooks, Discord, Teams, Zapier, Make, and any HTTP endpoint.
  • Local storage — submissions saved as a tuft_feedback custom post type with full metadata and a screenshot attachment.
  • Admin review — list table with columns for feedback text, source page, element selector, submitter, and screenshot thumbnail. Full detail view with screenshot in the post editor.
  • Alpaca Issue Tracker integration — if Alpaca Issue Tracker is installed, each submission is automatically mirrored as a Kanban issue on the Alpaca board. The Tuft admin menu moves under the Alpaca Project Board menu.

Intended use

This plugin is designed for local development and staging environments where you want clients or team members to leave visual design notes without logging in to a project management tool. The widget visibility setting under Settings → Tuft Feedback controls who sees the button; the REST endpoint that receives submissions is open by default — review the security notes before deploying to a publicly accessible production site.

Alpaca Issue Tracker integration

When Alpaca Issue Tracker is active alongside Tuft:

  • Each submission creates a matching alpaca_issue in your board’s default (lowest-score) column.
  • Issues are tagged with the submitter’s browser and the type “Tuft” for easy filtering.
  • The Tuft admin menu moves under the Project Board submenu, so the Alpaca board becomes the primary triage interface.
  • Click any row in the Tuft list to open the full detail view including the annotated screenshot.

安装

  1. Upload the tuft-feedback folder to wp-content/plugins/.
  2. Activate Tuft through the Plugins menu in WordPress.
  3. Visit any frontend page — the Tuft FAB button appears ~2/3 down the right edge of the screen.
  4. Configure who sees the button, rate limiting, and notification emails/webhooks under Settings → Tuft Feedback.
  5. Optionally install and activate Alpaca Issue Tracker for Kanban board triage.

常见问题

Who can submit feedback?

This is configurable under Settings → Tuft Feedback → Widget visibility. The options are:

  • Everyone — all visitors, including logged-out guests (useful for anonymous client review)
  • Logged-in users only — any authenticated WordPress user (the default)
  • Editors and above — users with the edit_others_posts capability
  • Administrators only — users with the manage_options capability

Logged-in users always have a streamlined experience: the name and email fields are hidden in the modal and their WordPress account details are submitted automatically.

Where are submissions stored?

In the WordPress database as a custom post type (tuft_feedback). You can review them under Tuft Feedback in the admin menu, or under Project Board → Tuft Feedback if Alpaca Issue Tracker is active.

Do screenshots always work?

html2canvas is bundled with the plugin and served directly from assets/js/vendor/ — there is no CDN dependency. Screenshots should work in any environment.

In sandboxed environments like WordPress Playground where enqueued stylesheets suffer from cross-origin/CORS restrictions, a built-in Playground helper dynamically inlines stylesheets as <style> blocks. This allows html2canvas to access style rules without triggering browser security blocks, ensuring screenshots render fully styled. The only case where a screenshot may be absent is very old browsers that do not support the Canvas API, which is vanishingly rare in practice.

Can I get notified when someone submits feedback?

Yes, without writing any code. Under Settings → Tuft Feedback → Notifications:

  • Notify email(s) — enter a comma-separated list of email addresses. A plain-text notification is sent to each address on every submission.
  • Webhook URL(s) — enter one URL per line. A JSON payload is POSTed to each URL on every submission. The payload is compatible with Slack incoming webhooks (it includes a text field), Discord, Teams, Zapier, Make, and any custom HTTP endpoint.

For fully custom integrations, hook into the tuft_feedback_submitted action:

add_action( 'tuft_feedback_submitted', function ( int $post_id ) {
    $feedback = get_post_meta( $post_id, '_tuft_feedback_text', true );
    $page_url = get_post_meta( $post_id, '_tuft_page_url', true );
    // create a GitHub issue, update a tracker, etc.
} );

Is this safe for production?

The widget visibility setting controls both the frontend button and the REST submission endpoint — they are kept in sync automatically. Setting visibility to Logged-in users only, Editors and above, or Administrators only will block unauthenticated API submissions with a 401/403 before any data is written. No additional configuration is required.

Does it work with page builders and custom themes?

Yes. The plugin injects its UI via wp_enqueue_scripts and appends its elements directly to document.body, so it works alongside any theme or page builder. The element selector logic ignores elements with tuft- prefixed IDs to prevent accidentally annotating the plugin’s own UI.

评价

此插件暂无评价。

贡献者及开发者

「Tuft Feedback」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • George Stephanis

帮助将「Tuft Feedback」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.2.0

  • REST API permission enforcement — the /tuft/v1/submit endpoint now mirrors the widget visibility setting; requests from users who don’t meet the configured access level are rejected with a proper 401/403 before any data is written.
  • Admin stylesheet — meta box styles extracted from inline <style> output to assets/css/admin.css, enqueued only on tuft_feedback screens. Resolves a plugin directory guideline violation.
  • Formatting toolchain — added npm run format (and format:js, format:css, format:php) backed by wp-scripts format, stylelint --fix, and phpcbf.
  • Settings page: visibility field labels now pass through wp_kses with an explicit allowlist instead of unescaped output.

1.1.0

  • Freehand canvas annotation — a drawing toolbar (pen, rectangle, undo, clear) is shown below the screenshot preview in the feedback modal. Strokes are baked into the submitted JPEG; no server-side overlay is applied.
  • Widget visibility settings — new Settings → Tuft Feedback page; choose to show the feedback button to everyone, logged-in users, editors and above, or administrators only. Role-gated options display approximate user counts.
  • Submission rate limiting — max submissions per IP per hour, tracked via post meta (_tuft_submitter_ip) rather than transients. Set to 0 to disable.
  • Email notifications — configure comma-separated recipient addresses to receive a plain-text email on every submission.
  • Webhook notifications — configure one or more webhook URLs to receive a JSON POST on every submission. The payload is compatible with Slack, Discord, Teams, Zapier, Make, and any HTTP endpoint.
  • Admin menu labels renamed from “Tuft” to “Tuft Feedback” for clarity.
  • Removed server-side SVG annotation overlay (made redundant by client-side canvas annotation).

1.0.0

  • Initial release.
  • Click-to-annotate with element highlighting and crosshair targeting mode.
  • Element bounding box captured and shown as a dashed rectangle in screenshot annotations.
  • In-browser viewport screenshot via html2canvas, annotated with a spotlight and crosshair at the click point.
  • Form field state capture (passwords excluded).
  • Feedback modal: name/email fields shown to guests, hidden for logged-in users whose account details are used automatically.
  • tuft_feedback custom post type with admin list table and detail meta box.
  • tuft_feedback_submitted action hook for custom integrations.
  • Alpaca Issue Tracker integration: auto-creates mirrored alpaca_issue with context comment (including annotated screenshot), moves admin menu under Project Board.

额外信息

  • 版本 1.2.1
  • 最后更新:3 天前
  • 活跃安装数量 不到10
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 7.0
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    annotationsclient reviewdesignfeedbackvisual feedback
  • 高级视图

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • George Stephanis

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.