Skip to content

Commit 34f312d

Browse files
authored
Merge pull request #45 from oslabs-beta/feature/readme
Updated GIF in readme
2 parents e9e658b + af6605b commit 34f312d

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: dev branch sapling extension CI
1+
name: dev CI
22

33
# Run this workflow on PR into dev branch
44
on:

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Master branch sapling extension CI/CD
1+
name: master CI/CD
22

33
# Run this workflow on PR into dev branch
44
on:

README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
<a href="https://github.com/oslabs-beta/sapling/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/oslabs-beta/sapling"></a>
2727
<!-- GITHUB RELEASE VERSION -->
2828
<a href="https://github.com/oslabs-beta/sapling/releases"><img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/oslabs-beta/sapling?include_prereleases"></a>
29+
<!-- BUILD STATUS -->
30+
<a href="https://github.com/oslabs-beta/sapling/actions/workflows/master.yml"><img alt="master CI/CD workflow status" src="https://github.com/oslabs-beta/sapling/actions/workflows/master.yml/badge.svg"></a>
31+
<a href="https://github.com/oslabs-beta/sapling/actions/workflows/dev.yml"><img alt="dev CI workflow status" src="https://github.com/oslabs-beta/sapling/actions/workflows/dev.yml/badge.svg"></a>
2932
<!-- LICENSE -->
3033
<a href="https://github.com/oslabs-beta/sapling/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/oslabs-beta/sapling"></a>
3134
<!-- CONTRIBUTIONS -->
@@ -69,7 +72,9 @@
6972
## About The Project
7073

7174
<br/>
72-
<img width="1000" src="./sapling/media/quizwall_demo.gif">
75+
<p align="center">
76+
<img width="900" src="./sapling/media/quizwall_demo.gif">
77+
</p>
7378
<br/>
7479

7580
Sapling is a VS Code extension built with React developers in mind. As your codebase grows, your native file structure becomes less and less intuitive. Wouldn't it be nice to have a file structure that represents the actual relationships between the components and containers in your application? Wouldn't you like a quick reference to your available props, and an indication of routes and conditional rendering?
@@ -79,13 +84,13 @@ With Sapling, you don't have to guess at the parent component of your current fi
7984

8085
### Built With
8186

82-
* [<img style="height: 1em;" src="sapling/media/react-brands.svg">]() [React](https://reactjs.org/)
83-
* [<img style="height: 1em;" src="sapling/media/vscode.svg">]() [VSCode Extension API](https://code.visualstudio.com/api)
84-
* [<img style="height: 1em;" src="sapling/media/mochajs-icon.svg">]() [Mocha](https://mochajs.org/)
85-
* [<img style="height: 1em;" src="sapling/media/chai_icon.svg">]() [Chai](https://www.chaijs.com/)
86-
* [<img style="height: 1em;" src="sapling/media/babel-logo-minimal.svg">]() [Babel Parser](https://babeljs.io/docs/en/babel-parser)
87-
* [<img style="height: 1em;" src="sapling/media/webpack.svg">]() [Webpack](https://webpack.js.org/)
88-
* [<img style="height: 1em;" src="sapling/media/github-actions.svg">]() [GitHub Actions](https://github.com/features/actions)
87+
* [<img style="height: 1em;" src="sapling/media/react-brands.svg">](https://reactjs.org/) [React](https://reactjs.org/)
88+
* [<img style="height: 1em;" src="sapling/media/vscode.svg">](https://code.visualstudio.com/api) [VSCode Extension API](https://code.visualstudio.com/api)
89+
* [<img style="height: 1em;" src="sapling/media/mochajs-icon.svg">](https://mochajs.org/) [Mocha](https://mochajs.org/)
90+
* [<img style="height: 1em;" src="sapling/media/chai_icon.svg">](https://www.chaijs.com/) [Chai](https://www.chaijs.com/)
91+
* [<img style="height: 1em;" src="sapling/media/babel-logo-minimal.svg">](https://babeljs.io/docs/en/babel-parser) [Babel Parser](https://babeljs.io/docs/en/babel-parser)
92+
* [<img style="height: 1em;" src="sapling/media/webpack.svg">](https://webpack.js.org/) [Webpack](https://webpack.js.org/)
93+
* [<img style="height: 1em;" src="sapling/media/github-actions.svg">](https://github.com/features/actions) [GitHub Actions](https://github.com/features/actions)
8994

9095
## Installation
9196

@@ -113,7 +118,7 @@ Icon Legend in Sapling Tree View:
113118
* [<img style="height: 1em;" src="sapling/media/circle-info-solid.svg">]() available props (hover)
114119
* [<img style="height: 1em;" src="sapling/media/circle-arrow-right-solid.svg">]() open file (click)
115120
* [<img style="height: 1em;" src="sapling/media/store-solid.svg" >]() Redux store connection
116-
* [<span style='color:red;'>Navbar</span>](): error in file (matches the error color of your theme)
121+
* <span>Navbar</span>: error in file (matches the error color of your theme)
117122
* <b>Navbar</b>: currently open file
118123

119124
Sapling can currently display React apps made with TSX/JSX and ES6 import syntax.
@@ -128,7 +133,7 @@ Sapling will detect React components invoked using JSX tag syntax and React-Rout
128133
<Navbar></Navbar>
129134

130135
// Route and Navbar will be detected as child components of the current file
131-
<Route component={Navbar} />
136+
<Route component={Navbar} />
132137

133138
// Route and App will be detected as child components of the current file
134139
<Route children={App} />
@@ -138,7 +143,7 @@ Sapling will detect the names of inline props for JSX components it identifies:
138143

139144
```JSX
140145
// props 'userId' and 'userName' will be listed for Navbar in Sapling
141-
<Navbar userId={...} userName={...} />
146+
<Navbar userId={...} userName={...} />
142147
```
143148

144149
Sapling can identify components connected to the Redux store, when 'connect' is imported from 'react-redux', and the component is the export default of the file:
@@ -147,14 +152,14 @@ Sapling can identify components connected to the Redux store, when 'connect' is
147152
// App.jsx
148153
import React from 'react';
149154
import { connect } from 'react-redux';
150-
155+
151156
const mapStateToProps = ...
152157
const mapDispatchToProps = ...
153-
158+
154159
const App = (props) => {
155160
return <h1>This is the App</h1>
156161
}
157-
162+
158163
// Sapling will detect App as connected to the Redux store
159164
export default connect(mapStateToProps, mapDispatchToProps)(App);
160165
```
@@ -236,5 +241,5 @@ Distributed under the MIT License. See [`LICENSE`](https://github.com/oslabs-bet
236241
* Interactive tree view styling adapted from [Pure CSS Tree Menu](https://codepen.io/bisserof/pen/fdtBm)
237242
* Icons from [Font Awesome](https://fontawesome.com)
238243
* Tooltips with [Tippy](https://www.npmjs.com/package/@tippy.js/react)
239-
* [Best README Template](https://github.com/othneildrew/Best-README-Template)
244+
* [Best README Template](https://github.com/othneildrew/Best-README-Template)
240245
* Sapling Logo from [Freepik](https://www.freepik.com/vectors/tree)

sapling/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<a href="https://github.com/oslabs-beta/sapling/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/oslabs-beta/sapling"></a>
2929
<!-- GITHUB RELEASE VERSION -->
3030
<a href="https://github.com/oslabs-beta/sapling/releases"><img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/oslabs-beta/sapling?include_prereleases"></a>
31+
<!-- BUILD STATUS -->
32+
<a href="https://github.com/oslabs-beta/sapling/actions/workflows/master.yml"><img alt="master CI/CD workflow status" src="https://github.com/oslabs-beta/sapling/actions/workflows/master.yml/badge.svg"></a>
33+
<a href="https://github.com/oslabs-beta/sapling/actions/workflows/dev.yml"><img alt="dev CI workflow status" src="https://github.com/oslabs-beta/sapling/actions/workflows/dev.yml/badge.svg"></a>
3134
<!-- LICENSE -->
3235
<a href="https://github.com/oslabs-beta/sapling/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/oslabs-beta/sapling"></a>
3336
<!-- CONTRIBUTIONS -->
@@ -64,7 +67,9 @@
6467
## About The Project
6568

6669
<br/>
67-
<img width="1000" src="media/quizwall_demo.gif">
70+
<p align="center">
71+
<img width="900" src="media/quizwall_demo.gif">
72+
</p>
6873
<br/>
6974

7075
Sapling is a VS Code extension built with React developers in mind. As your codebase grows, your native file structure becomes less and less intuitive. Wouldn't it be nice to have a file structure that represents the actual relationships between the components and containers in your application? Wouldn't you like a quick reference to your available props, and an indication of routes and conditional rendering?

sapling/media/quizwall_demo.gif

2.22 MB
Loading

0 commit comments

Comments
 (0)