Code Monkey home page Code Monkey logo

solid-structure's Introduction

Solid Structure

Solid Structure is a Chrome Extension DevTool for SolidJS application.

Solid Structure allows developer to oversee a list of signal connections, signal updates, and visualize structural & dependency graphs of an inspected application.

Features

  • Signal Tracker (Signal List)
  • Signal Update Logs (on/off)
  • Signal Visualizations
    • Structural Graph
    • Dependency Graph
    • Box Orientation Adjustment
  • Dark Mode



Section 1: Inspector

The Inspector section is composed of three main features: Signal Tracker, Structural Graph, and Dependency Graph.

  • Signal Tracker lists out all the signal information of a running SolidJS application: name, reference id, type, and value. Each state (value) of a signal is lively updated upon signal changes in a SolidJS application. Clicking the name of each signal displays its Dependency Graph.

  • Structural Graph is a component tree that displays the architecture of the application to help developer visualize how the application is structured. In our future updates, each node of the graph will show more detailed information about the selected component on hover.

  • Dependency Graph is a visualization of reactivity in a SolidJS application. It helps to identify and visualize where the selected signal is being invoked at a component level. It currently only shows "signal → component" relationship, but it should also show "component → signal" relationship when the component is selected from the Structural Graph in our future updates.


Section 2: Graph

The Graph section displays a structural and dependency graphs without the signal list to provide a better view of the graphs on a smaller screen. The orientation of these graph boxes could be altered by the icons at the top right corner - to be either veritcal (default) or horizontal. This section will become much more useful once each node could display more detailed information about the component or signal.

Section 3: Log Monitor

The Log Monitor section keeps track of and logs signal changes in a SolidJS application. Developer could reset the logs to clean out the previous logs and have control over the log status with the record switch at the top left corner to either prevent having too much logs or to keep track of signal changes for specific actions when testing.

Getting Started

Installation

  1. Clone the repo

    git clone https://github.com/oslabs-beta/Solid-Structure.git
  2. Install NPM packages

    npm install
  3. Run development environment (HMR with CRX)

    npm run dev
  4. Check for creation of "dist" folder at the root directory

  5. Go to "Manage Extension" at Chrome Browser

  6. Upload "dist" folder

Checking Connection

Run a sample SolidJS application from a separate terminal

npm run demoapp

Built With

  • Solid.JS
  • TypeScript
  • SCSS
  • D3.JS
  • Vite (CRX)
  • Chrome API DevTool

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Add some NewFeature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

Basic Rules

  • All types are managed in types.ts file
  • Overall color-scheme and basic stylings are controlled in main.scss file

License

Distributed under the MIT License. See LICENSE.txt for more information.

Authors

Acknowledgements

solid-structure's People

Contributors

bbrighi2 avatar myeon7 avatar thlyon avatar yermie123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

codedenma cycsd

solid-structure's Issues

Additional Feature Plans

I'm listing some of the features that need to be updated for future reference.

  1. Signal Flow: Unidirectional to Bidirectional
    The current loading methodology of signal information from a SolidJS application to the tool's Signal Tracker is unidirectional. All of the application's signal information is lively updated to the Signal Tracker upon signal changes in the application, but its signals cannot be modified from the developer tool. Modifying the tool's root data access method to allow developers to change application signals directly from the tool would be very useful in debugging process and could eventually lead to time travel debugging through the log records in the Log Monitor section as well.

  2. Establishing Connection Between Structural Graph & Dependency Graph
    Currently, the tool only allows to see the dependency graph of selected signals from the Signal Tracker, which is "signal → component" relationship. To see a dependency graph of signals for a selected component from a Structural Graph ("component → signal" relationship), the two graphs' data needs to be connected

  3. More Information on Graph Nodes
    Current nodes on each graph only show names for what it represents: signal or component name. Displaying more detailed information on the hover of each graph node would provide better context in the debugging process.

  4. Visual Indicator On Graphs
    Including visual indicators to help identify where in both structural and dependency graphs the signal is being updated would make the interpretation of graphs much easier for developers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.