AOSSIE-Org / AOSSIE-Org/InPactAI

BUG: “New Campaign” button inactive — CreateCampaignDialog not opening popup

未關閉
#141 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
102
分支
144
PR 合併指標
30 天內沒有已合併 PR

描述

### Is there an existing issue for this?

- [x] 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 `` accepts children props properly:

```
interface CreateCampaignDialogProps {
children: React.ReactNode;
}
```

Ensure that it uses `{children}` instead of its own internally.

Re-import and replace usage in Dashboard with:

```



New Campaign

```

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

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。