multi-textarea data model keyed on (url, timestamp)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Refactorisation
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- frontend
Piste de recherche
Commencez par retracer le datatype Spot existant et le flux actuel d’amélioration des textareas décrit dans l’issue. Comparez la manière dont les brouillons sont identifiés et restaurés avec le schéma URL/timestamp proposé ; le travail est terminé lorsque le projet dispose d’un modèle générique convenu pour préserver et faire correspondre les brouillons de plusieurs textareas.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
As the code stands, there is a Spot datatype. It represents the abstract concept of where a single textarea is. e.g.
- appending the 2nd comment on issue 4
- appending the 3rd comment on issue 4
- pros: we have enough data to recreate the draft completely in the browser, and also enough data to tell if it was submitted or not
- cons:
- a lot of manual work for each place that we handle
- ambiguity around things like the
issues/newurl. You might have multiple unsubmitted drafts in progress, they don't have server-side IDs yet, what should their spot be? Inevitably it gets tied to the time that the tab happened to open, in which case why bother with the complexity of defining the "abstract place where a comment is" if you end up just doingtimestamp, URLpairs?
This approach really falls down for complex multi-form things, such as this:
It would be really painful to lose the drafts in those textboxes, but it's also impossible to make a spot for each textfield in every issue/PR template that might be out there.
Another approach is this:
- anytime a textarea gets added or removed, trigger a refractory state that waits until there's been no changes for 500ms
- when that refactory period times out (the textareas have settled), the Spot is defined as:
- primary key: (url, timestamp)
- schema: list of textareas and their labels, as best we can tell in a generic way
- title and icon: pulled from the tab by default
- cons: most of the time, this is not enough data to reopen the tab for the user
- pros:
- if the user has opened a tab manually, we can find which saved drafts fit that schema
- textareas can be enhanced by default, versus right now where they are enhanced only iff we have built an enhancer for that specific box
- Langage dominant
- HTML
- Étoiles
- 58
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de diffplug/gitcasso
-
Jukebox gap Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 10/100
-
Allow toggling syntax highlighting on/off for the page from a right click on the textarea/similar Ouverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
-
publish in the firefox store Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 32/100
Toutes les issues de diffplug/gitcasso
Issues similaires
-
good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
AOSSIE-Org/DebateAI#582 · 2 commentaires ·
-
📕documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
db-ux-design-system/core-web#8239 ·
-
Agent Chat: "Show arguments" button is centered instead of left-aligned in tool approval card OuverteArea/AI Type/Improvement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
wso2/product-integrator#2567 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
learningequality/kolibri#15351 · 2 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100