BUG: “New Campaign” button inactive — CreateCampaignDialog not opening popup
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先使用 npm run dev 或 pnpm dev 运行项目,并检查 Dashboard 对 CreateCampaignDialog 的使用。阅读对话框中 Dialog、DialogTrigger、DialogContent 以及 children-prop 的处理,然后验证点击 New Campaign 会挂载多步骤表单,并且可以在没有控制台错误的情况下提交 campaign。
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue for this?
- I have searched the existing issues
What happened?
📌 Issue Overview
The “New Campaign” button on the Dashboard is unresponsive.
When clicked, the CreateCampaignDialog modal should open, but nothing happens.
No console errors are displayed, and the dialog content is not rendered.
This prevents users from launching a new campaign and breaks a core workflow of the Sponsorship system.
🔍 Steps to Reproduce
-
Run the project locally (npm run dev or pnpm dev).
-
Navigate to http://localhost:5173/dashboard.
-
Click on the New Campaign button at the top of the Dashboard.
Observe that no dialog appears and the popup does not open.
🎯 Expected Behavior
🎯 Expected Behavior
-
Clicking New Campaign should trigger the CreateCampaignDialog modal.
-
The multi-step interactive form should appear for campaign creation.
-
Users should be able to fill out the form and submit campaign data.
🚨 Actual Behavior
-
The New Campaign button does not open any popup.
-
The dialog content never mounts in the DOM.
-
The button visually responds (hover color changes), but no state update or dialog visibility occurs.
📷 Screenshot
https://github.com/user-attachments/assets/a759defd-d197-434f-9086-b68ad121e3b5
💡 Suggested Improvements
Confirm that <CreateCampaignDialog> accepts children props properly:
interface CreateCampaignDialogProps {
children: React.ReactNode;
}
Ensure that it uses <DialogTrigger asChild>{children}</DialogTrigger> instead of its own internally.
Re-import and replace usage in Dashboard with:
<CreateCampaignDialog>
<Button className="bg-purple-600 hover:bg-purple-700 text-white px-6 py-2 rounded-lg text-sm">
<DollarSign className="mr-2 h-4 w-4" />
New Campaign
</Button>
</CreateCampaignDialog>
Verify that all @/components/ui/dialog dependencies (Dialog, DialogTrigger, DialogContent, etc.) are correctly registered.
If the issue persists, check for overlapping z-index conflicts or overflow: hidden on a parent container.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
- 主要语言
- TypeScript
- 星标
- 104
- 派生
- 144
- 平均合并
- 32 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/InPactAI 的其他 Issue
-
UI Bug: Low contrast makes input text unreadable in Sign Up and Login form可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
AOSSIE-Org/InPactAI#218 ·
维护者通常 1 天内回复
-
DOCS UPDATE: Fix incorrect .env file location in Backend Setup instructions可能已有人在做 @PulkitDadwal 于 349 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 68/100
AOSSIE-Org/InPactAI#201 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 12/100
AOSSIE-Org/InPactAI#315 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 42/100
AOSSIE-Org/InPactAI#314 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
AOSSIE-Org/InPactAI#312 ·
维护者通常 1 天内回复
查看 AOSSIE-Org/InPactAI 的全部 Issue
相似的 Issue
-
area: web bug
难度 2/5 1-3 小时 新手友好度 76/100
kinqsradio/orbyn-engineering#227 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
joeldesante/TurfBuilder#258 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
ncecere/open-mcp-portal#85 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
loathers/garbage-collector#2865 ·
维护者通常 1 天内回复
-
test-reliability
难度 2/5 1-3 小时 新手友好度 78/100
Azure/azure-sdk-for-js#40672 · 1 个 reaction ·
维护者通常 1 天内回复