Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create claims extension for fact checks in dega #80

Open
surajmn1 opened this issue Jun 20, 2023 · 3 comments
Open

create claims extension for fact checks in dega #80

surajmn1 opened this issue Jun 20, 2023 · 3 comments
Assignees

Comments

@surajmn1
Copy link
Contributor

The claims extension should parse below markup and render ui similar to what we have in dega for displaying claims in fact checks within the editor.

<claims>
<claim id=1 order=1></claim>
<claim id=2 order=2></claim>
<claim id=3 order=3></claim>
</claims>
@surajmn1 surajmn1 self-assigned this Jun 20, 2023
@deshetti
Copy link
Member

This is pending on the issue opened on TipTap: ueberdosis/tiptap#4204

@surajmn1
Copy link
Contributor Author

surajmn1 commented Jul 14, 2023

After discussing we have revised the requirements for the extension .This would require adding two menu items to the slash commands menu as follows :

  • Add Existing Claim

  • Upon clicking, a modal will appear allowing users to search for existing claims.

  • Claims will be displayed as rows in a table, showing only their titles.

  • Users can select the desired claims from the search results, and they will be automatically added to the editor.

  • For UI reference, please check the Unsplash plugin UI available at uppy.io/examples.

  • Add New Claim

  • Upon clicking, a modal will appear containing a form to create a new claim.

  • After submitting the form, the new claim will be added to the editor.

  • Should be saved in the database and also added to the editor.

  • For UI reference, please refer to the current form UI within Dega used for editing a claim.

@surajmn1
Copy link
Contributor Author

surajmn1 commented Jul 25, 2023

Tasks left:

  • Save data to the database when we create a new claim using the form.
  • Add form UI for adding new claims.
  • Manage form data in dega while adding/removing new claims or existing claims. Currently, only the markup is updated,
    but we need to also associate claims with fact checks in the database records. Hence, we need to manage the form data
    as well.
  • Add styling changes as required. Currently, we have only basic styles.
  • integrate Dega Api's and test .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants