Open Drew-Macgibbon opened 1 year ago
@Drew-Macgibbon , so me and @JapneetRajput discusses about the workflow of this widget that:
It will only be available to authenticated users (else disabled) - 👍
A new table for storing the user feedback will be made in the Supabase which will have the UUID, name, timestamps and the body of the submitted feedback
(is this a good approach?)
Added a comment on related issue. #2
When it comes to allowing devs to customize the UI, I think the best approach is to use the app.config.ts
like what nuxt/ui
does, eg:
export default defineAppConfig({
title: 'Incubrain',
ui: {
primary: 'emerald',
slideover: {
background: 'background'
},
}
})
You will need to review their repo to understand how it's done. They declare the module:
declare module '@nuxt/schema' {
interface AppConfigInput {
ui?: {
primary?: string
gray?: string
colors?: string[]
} & DeepPartial<typeof appConfig.ui>
}
}
DeepPartial<typeof appConfig.ui>
refers to this file
I imagine we can do something similar WHEN we create the nuxt module, for now, this is just FYI.
We can also setup a category option while submitting the feedback (example: bug, feature request, etc.) so as it becomes easy for us to process things according to the category (filtering). Yes, discuss here #6
Can we send an email to the user once their feedback is recorded? In the future we will likely do this, for now keep it simple. Something like a Toast Notification or Redirect to the Kanban and show users their own submissions, labelled 'pending review' and only viewable to them/admins.
@Drew-Macgibbon @JapneetRajput and I started like this:
get feedback
button, a textarea pop ups and user can input their suggestions.submitting
, the data get's stored in a JSON form and is displayedhttps://github.com/incubrain/nuxt-feedback/assets/86314754/f36fc0ac-2133-4c90-a775-c4d9c0445e0a
The UI needs to be worked upon, but I shared the above just as to showcase the functionality part. Let me know if there's more/less to add to it.
Simplicity and accessibility are key for feedback. We want to encourage users to submit feedback!
Supabase has a good widget, we will use this as a start
This is going to be a Nuxt Module So keep the following in mind when developing:
Comment with your thoughts/ideas!