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

As an admin, I can manually upload a transcript to the queue #93

Open
adamjonas opened this issue Jun 2, 2023 · 3 comments
Open

As an admin, I can manually upload a transcript to the queue #93

adamjonas opened this issue Jun 2, 2023 · 3 comments
Milestone

Comments

@adamjonas
Copy link
Member

This would be a form that would write to the DB and queue a transcript for editing

@adamjonas adamjonas added this to the 2.0 milestone Jun 2, 2023
@adamjonas adamjonas changed the title As an admin, I can manually upload a transcript to the queued As an admin, I can manually upload a transcript to the queue Jul 12, 2023
@Extheoisah
Copy link
Collaborator

this pr #179 in the backend now limits this operation to only admin users. We just need the UI to add it to the frontend

@kouloumos
Copy link
Member

For starts, the frontend UI could be just drag n drop (read from) a .json file which must be structured the same as the payload that we are getting from tstbtc.
As part of bitcointranscripts/tstbtc#118 I've already added the functionality to write the payload to a file instead of sending it to the queuer. So, supporting upload of this file could close the loop nicely.

We could even repurpose the Editor page:

  1. The admin uploads the json
  2. json is read and editor's fields are populated
  3. admin does any necessary changes
  4. Pushes to queue

That said, I've already added a new command to tstbtc (not yet on remote repo) that allows to directly push a payload (read from a json) to the queuer backend. So there is a way to manually upload. Doing it through the frontend is just more user friendly and if we repurpose the Editor's UI it adds this extra editing functionality before submitting to the queue.

@kouloumos
Copy link
Member

After #233 anyone (including the admin) can upload a transcript to the queue in a more user-friendly way - by just opening a PR with the new transcript. But this can still become easier through repurposing of the Editor's UI as explained above.

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

3 participants