HugoGresse / OpenPlanner

A SaaS to schedule your next event using ConferenceHall & OpenFeedback + API & UI
https://openplanner.fr
MIT License
12 stars 3 forks source link

Suggestion: Add action buttons for FAQ questions #102

Open GerardPaligot opened 7 months ago

GerardPaligot commented 7 months ago

Sometimes, a question in the FAQ want to redirect the user somewhere (ticket office, code of conduct, agenda page, etc.). For every question in the FAQ, it could be great to be able to declare one or more action buttons and let the frontend apps use them.

image

image

Proposal output:

    {
        "id": "iWnuGsNxL9ZSh2WHGiKN",
        "order": 5,
        "question": "Comment devenir partenaires ?",
        "response": "Consultez tout d'abord notre dossier de partenariat, puis remplissez le formulaire sur l'outil CMS4Partners.",
        "actions": [
            {
                "order": 0,
                "label": "Dossier de partenariat",
                "url": "https://docs.google.com/presentation/d/e/2PACX-1vRf18ULorPCSXjc4FDy7hHUp2rYIDZNefrsE7OkiXUJaTY1bzTYcDJBnfVDuWHvggglIipco8GCND-2/pub"
            },
            {
                "order": 1,
                "label": "CMS4Partners",
                "url": "https://cms4partners.gdglille.org/#"
            }
        ]
    },
HugoGresse commented 7 months ago

It is already possible to use links in the Markdown, what you ask is to somewhat mark those links as Actions and facilitate the usage through the API?

GerardPaligot commented 7 months ago

Links are well adapted for web applications but not for other kind of fronts. But it could be possible to parse every question of the FAQ to extract these action buttons in the OpenPanner consumer side. I leave it to you to judge the relevance of my suggestion.