feat(plugin-gantt)!: remove the mobile QR share (移动端二维码) context-menu feature#2687
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Comment out the 移动端二维码 item in the gantt row context menu. While it is off, taskUrl alone no longer justifies opening the menu (it would be an empty popover). The taskUrl prop, QR dialog code and the original tests stay in place (commented / describe.skip) behind TODO(qr-menu) markers so the feature can be restored by uncommenting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Supersedes the previous commit's comment-out: delete the context-menu item, the QR dialog, the GanttView taskUrl prop, the ObjectGantt URL wiring, the gantt.menu.qrcode / gantt.qr.* i18n keys (defaults + en/zh locales), the qrcode/@types/qrcode dependencies and every QR test. The feature baked one consumer's app-specific requirement into the generic gantt renderer, and encoded the desktop console record URL — the wrong target even for that requirement. Scan-to-mobile flows belong app-side against the app's own mobile surface. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Remove the QR-share feature from the gantt outright:
qrShare/qrDataUrl/qrCopiedstate + encode/copy logic, thetaskUrlprop and its type, theqrcode/ lucideQrCode/Copy/Checkimports.taskUrlalone no longer justifies opening the context menu (it would be an empty popover).taskUrlURL-building wiring (the drawer's 整页 link viarecordDetailHrefis untouched).gantt.menu.qrcode+gantt.qr.*keys removed from the component defaults and the en/zh locale packs.qrcode/@types/qrcodedropped from plugin-gantt (theqrcodefield type elsewhere in the repo is unrelated and untouched).First commit was a comment-out; the second commit supersedes it with full removal — squash-merge collapses them.
Why
#2460 item 7 generalized one consumer app's requirement (scan-to-open a record on mobile) into the generic gantt renderer, and what it encoded — the desktop console record URL — was the wrong target even for that requirement. Scan-to-mobile flows belong app-side against the app's own mobile surface. Removing rather than gating: nothing platform-generic remains worth keeping.
Verification
tsc --noEmitclean;vite buildOKtaskUrl/ gantt-QR references remain🤖 Generated with Claude Code