Proposal: Remove logging from Solid UI and add it as a module that is exposed through the data browser
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 153
- Forks
- 46
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
I'm currently working on the log module, which exposes a set of methods that mostly do one of three things, depending on the environment:
- if the environment has the document object (e.g. is a browser), it will look for an element with id "status" and append lines to it with time, type of log message and the message whenever the methods are called with a message, or
- if the environment supports console (e.g. Node), it will use console.log to output the messages, or
- do nothing
(The other methods that do not log messages are various configuration methods.)
I think it's weird that the module is dependent on a global element somehow being available, and think it would be better to expose the API through a module that is exposed through the data browser, probably through the DataBrowserContext interface that is made available to views through methods such as render. (It is currently defined in pane-registry.)
Data browser implementations would handle logging differently, but expose the same API. This module could then be passed to methods in Solid UI that requires logging, making the need for log module in Solid UI obsolete.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Lies das bestehende Log-Modul und die DataBrowserContext-Schnittstelle in der index.d.ts von pane-registry und verfolge anschließend, wie Ansichten über Methoden wie render Kontext erhalten. Als abgeschlossen gilt die Aufgabe, wenn Solid UI nicht mehr vom globalen Status-Element des Log-Moduls abhängt und der Datenbrowser eine gemeinsame Logging-API für Implementierungen bereitstellt, die diese verarbeiten können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Refactoring
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100