wiredashio / wiredash-sdk

Interactive user feedback tool for Flutter 🎉
https://pub.dev/packages/wiredash
Other
514 stars 66 forks source link

Load labels automatically from Console #349

Open Jonny1987 opened 5 months ago

Jonny1987 commented 5 months ago

Describe the bug The label question is not asked

Stacktrace There is no error/stacktrace

Wiredash SDK Info 2.1.2 (also tried with 2.1.1)

Flutter SDK 3.22.0 No issues in flutter doctor

Screenshots Screenshot_20240610-235411 Screenshot_20240610-235417

passsy commented 5 months ago

The labels are only shown when you add labels to the Wiredash widget like this:

 return Wiredash(
      projectId: "Project ID from console.wiredash.io",
      secret: "API Key from console.wiredash.io",
      feedbackOptions: WiredashFeedbackOptions(
        labels: [
          // Take the label ids from your project console
          // https://wiredash.com/console/ -> Settings -> Labels
          Label(
            id: 'lbl-r65egsdf',
            title: 'Bug',
          ),
          Label(
            id: 'lbl-6543df23s',
            title: 'Improvement',
          ),
          Label(
            id: 'lbl-de3w2fds',
            title: 'UX/UI',
          ),
          Label(
            id: 'lbl-2r98yas4',
            title: 'Payment',
          ),
        ],
      ),
Jonny1987 commented 5 months ago

Why doesn't wiredash automatically get these from the server since they are already defined using the console?

passsy commented 5 months ago

Defining them in the app, gives you some advantages, which we can't achieve remotely:

We see that not all are relevant for all projects. We are considering loading them automatically in the future from the console 👍

I keep this issue open to track the progress