Frontend: change "Clean output" button label to "Remove output"#30
Frontend: change "Clean output" button label to "Remove output"#30pohlarized wants to merge 1 commit into
Conversation
|
There is one thing I'm unsure about: For clarification: the backend stores the result as Python objects in memory - nothing is written to the disk. We do garbage collection every few hours. There is currently no API endpoint to manually trigger a "DELETE". |
|
Yeah i agree, "remove" might also be misleading if you have the backend in mind. Regarding that I am not sure if it is really an issue even if the user's perception is incorrect? I agree that "hide" would capture that it is still available on the backend. I have not been digging into the service enough to know whether that is easy to implement, or whether we might run into issues since you can e.g. have multiple active jobs on the same page. |
|
I have not looked at this too much in the source code but just tried it out, but i feel like the button doesn't just hide the output, but it essentially resets the page to the state you get when you initially load it. |
While the backend of this application is very very well done, the frontend was meant as a placeholder / to be simple - I mostly use the API myself 😅 The "clean" action literally just deletes the output from a local variable. |
Thats correct. Reset would be a good idea. Will implement that soon 👍 Did you already use the API? |
Sounds good, thank you! Sorry for abusing the PR for discussion now instead of the issue, i thought maybe it would be a good quickfix 😄
I mainly use the frontend, I have only used the API to debug some problems I had using the frontend, but i didn't use it to actually perform any work. |
|
@pohlarized the API has a interactive doc... Depending on what you want to achieve, you can use a very simple shell / python script to:
This might be very helpful if you have a folder with n audio files and want a txt file for each of them. The API is super simple and very helpful if you want to avoid manually having to upload each file / save the result. |
|
I will take a look, thanks. |
they're garbage collected after a specified time, see the env variable
i personally think that an "extended" history or something would go against our principle of privacy first. Maybe the front-end could save previous results n the local storage? the same way better-gpt and other tools do/did...? lastly.: I like the idea of a real "clear" endpoint in the API, so that you can ensure that the data is wiped as soon as you're done. |
This could be exposed to the frontend though, so that the frontend can store the time of expiration for a given record and then simply disables the button to re-fetch results.
Not sure what you have in mind when you say "extended" history.
Sure, that sounds good. |
Assuming we'd have that list - where is the real benefit it's basically a collection of "dead links" because everything was already GCed? Maybe a "whopsie, go back to the last transcript" button would be a simpler approach?
idk why i said extended tbh. i just meant a type of history that has like... idk the last two weeks or even all the transcripts ever created available.
Also a good and simple addition to our frontend. why dont we simply display a message "your transcripts will be available for X minutes" @MayNiklas? |
The use of the list is of course within the 60 minutes where the transcripts are still available. Of course, there are many alternatives, but i think something like simply instantly removing them can be confusing to a user, since they don't really get feedback on why their list suddenly got shorter. |
haven't thought about a highly parallelized usecase. so yeah. this makes sense. create an issue i guess and feel free to vibe it? ^^' |
|
Oh I don't have very high stakes in it either, i was just continuing the design discussion. My main issue really was that the "Clean input" button was a little misleading and almost made me lose the transcript (at least in a way that i wouldn't have known how to recover it, even if it was still in-memory in the back end). The rest was just a big list on what it could look like in an ideal world. I think the hotfix i like the most is to call the button "reset" and perhaps color it orange or red. If whoever has authority agrees, I'm happy to add that to the PR. |
|
I really liked your input. I mean we got three small, but meaningful improvement (ideas) out of it. Think @MayNiklas is the final authority for the frontend. |
Closes #29
I was lazy and only changed the label, the underlying function and id are still using the "clean output" term.
Unsure how important it is for you to keep that consistent.