Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
4ee3e09
fix: removed bug where all object properties were being assgined to u…
benmarg Dec 7, 2022
e81f97a
Merge pull request #1 from oslabs-beta/ben/fix/whitescreen
benmarg Dec 7, 2022
957c86f
fix: enable page refreshing
benmarg Dec 7, 2022
7e33178
Merge pull request #2 from oslabs-beta/ben/fix/config
benmarg Dec 7, 2022
67e9073
swapped the default graph orientation from horizontal to vertical
benmarg Dec 7, 2022
c0e470f
Merge pull request #3 from oslabs-beta/ben/feat/swapOrientation
benmarg Dec 7, 2022
fdb65c5
fix: removed bug causing infinite recursion/black screen
benmarg Dec 8, 2022
43d6e98
updated readME for clearer info on how to contribute
benmarg Dec 8, 2022
22a5f88
added in comments on later work to do in file and additional property…
jemzir Dec 8, 2022
0e3c761
Merge pull request #4 from oslabs-beta/ben/fix/blackscreenBug
benmarg Dec 8, 2022
3f993fc
changed adding children test descriptions of first few
jemzir Dec 8, 2022
35ceda6
updated helpers and time jump and tree
jemzir Dec 8, 2022
2f526d5
Merge branch 'dev' into james/test/tree-files
jemzir Dec 8, 2022
b76362d
intitialize www
benmarg Dec 10, 2022
fc300d6
t3 app initalized with tailwind boilerplate
benmarg Dec 11, 2022
09c4836
miscellaneous router.tsx and linkFiber comments
jemzir Dec 11, 2022
e7ec702
package json update -- needing to add in .env and package dependcy of…
jemzir Dec 11, 2022
960755b
updated version to 17.0.0
benmarg Dec 12, 2022
73e2825
working on carousel finished blog layout beta
ericsngyun Dec 12, 2022
09336d0
initial nav bar, LandingPage, and TeamSection added
benmarg Dec 12, 2022
5417e53
added TS
benmarg Dec 12, 2022
d4e282c
finished basic card slider need to add styling to match rest of app a…
ericsngyun Dec 12, 2022
ff7de62
merge finished
ericsngyun Dec 12, 2022
dfc2d34
integrated new feature slide and Team Section, restyled NavBar
benmarg Dec 13, 2022
b076254
Merge pull request #6 from oslabs-beta/compMerge
benmarg Dec 13, 2022
76aa6bf
merge commit
ericsngyun Dec 13, 2022
66b880a
merging recent pull
ericsngyun Dec 13, 2022
3358d25
Merge branch 'www' of https://github.com/oslabs-beta/reactime into www
jemzir Dec 13, 2022
6c7f2da
w
ericsngyun Dec 13, 2022
c0ea50f
changed the article to have differing names and more recent ones
jemzir Dec 13, 2022
e62d8c8
swapped out default buttons for link to GH/Chrome Store
benmarg Dec 13, 2022
1c7eaa5
Merge pull request #8 from oslabs-beta/navBarButtonSwap
benmarg Dec 13, 2022
75328a3
Merge pull request #7 from oslabs-beta/james/blog
benmarg Dec 13, 2022
6921f81
finished feature section component need audit
ericsngyun Dec 13, 2022
487ddc8
Merge branch 'master' into www
ericsngyun Dec 13, 2022
5a313fe
Merge pull request #9 from oslabs-beta/wwwWanted
jemzir Dec 13, 2022
7815644
Merge pull request #10 from oslabs-beta/wwwProper
benmarg Dec 13, 2022
23c103a
Nav bar rework
benmarg Dec 13, 2022
78969eb
updated blog medium article
benmarg Dec 13, 2022
2c0dd12
changed navbar to white
benmarg Dec 13, 2022
fa8e5f1
refactored Feature Section
benmarg Dec 13, 2022
c676465
added support for CTX api
benmarg Dec 14, 2022
a396e8a
Merge pull request #11 from oslabs-beta/ctxSupport
benmarg Dec 14, 2022
2b75a8e
styling update for tooltip pannel
benmarg Dec 14, 2022
e86d568
Merge pull request #12 from oslabs-beta/ctxSupport
benmarg Dec 14, 2022
6595bed
merge check
ericsngyun Dec 14, 2022
b4dcb3e
pulled from dev
ericsngyun Dec 14, 2022
ee6972d
fixed undefined bug
wiltonlee948 Dec 14, 2022
c8e57ff
made changes to color in webapp and minor tweaks
ericsngyun Dec 14, 2022
e9f95c1
Merge pull request #13 from oslabs-beta/customhook
wiltonlee948 Dec 14, 2022
faa2838
Merge branch 'dev' of https://github.com/oslabs-beta/reactime into dev
ericsngyun Dec 14, 2022
ff61a66
Merge branch 'dev' into eric/webappfeature
ericsngyun Dec 14, 2022
02d2baf
updated reactime links
wiltonlee948 Dec 15, 2022
c353c85
Merge branch 'dev' into customhook
wiltonlee948 Dec 15, 2022
78516b1
Merge pull request #14 from oslabs-beta/customhook
wiltonlee948 Dec 15, 2022
9e5a7cf
Merge pull request #15 from oslabs-beta/eric/webappfeature
ericsngyun Dec 15, 2022
010370a
trimmed outdated files and directory
jemzir Dec 15, 2022
7dccae9
Merge pull request #16 from oslabs-beta/james/trimmingDev
jemzir Dec 15, 2022
3145525
fixed 404 image errors
wiltonlee948 Dec 16, 2022
da13fcd
merged changes from dev
wiltonlee948 Dec 16, 2022
945f4ca
Merge pull request #17 from oslabs-beta/customhook
wiltonlee948 Dec 16, 2022
5cc757c
merging this into dev branch
jemzir Dec 17, 2022
5243a57
Update Router.tsx
jemzir Dec 19, 2022
1ece731
Update Router.tsx
jemzir Dec 19, 2022
d1a99f2
Update timeJump.ts
jemzir Dec 19, 2022
3527ae8
Merge pull request #5 from oslabs-beta/james/test/tree-files
jemzir Dec 19, 2022
9a431f3
created backend for router and user schema via prisma
jemzir Dec 19, 2022
d4f9e7d
configure the front end to be able to send requests to the backend
jemzir Dec 20, 2022
ea1a529
fixed frontEnd useMutation hook to work properly
jemzir Dec 20, 2022
6cb86ac
Merge pull request #18 from oslabs-beta/group/Newsletter
jemzir Dec 20, 2022
89f254d
root node search bar swapped for a drop down
benmarg Jan 3, 2023
1348597
Merge pull request #19 from oslabs-beta/rootNodeDropdown
benmarg Jan 3, 2023
35712f4
configured the tree tests and files to better describe tests as well …
jemzir Jan 4, 2023
562ae9f
Merge pull request #20 from oslabs-beta/jamesWilton/treeTest
jemzir Jan 4, 2023
e8f6bc3
created new email page
wiltonlee948 Jan 4, 2023
342da52
created input element and styled it
wiltonlee948 Jan 4, 2023
6d53eb6
created clickHandler function
wiltonlee948 Jan 4, 2023
2ff4387
created conditional rendering of elements
wiltonlee948 Jan 4, 2023
714c831
added contributors
wiltonlee948 Jan 4, 2023
caac295
updated readme
wiltonlee948 Jan 4, 2023
2eaedfc
Merge pull request #21 from oslabs-beta/emailAlerts
wiltonlee948 Jan 4, 2023
db70a3a
added testing dependencies
wiltonlee948 Jan 4, 2023
9216302
fixed jest configuration issue by adding tsconfig for jest
wiltonlee948 Jan 4, 2023
290eab3
connected new instance of db
wiltonlee948 Jan 4, 2023
b92ac6a
created get request endpoint to fetch data from db
wiltonlee948 Jan 4, 2023
c272f2c
created unit tests for FeaturesSection component
wiltonlee948 Jan 4, 2023
be67929
creating unit tests for blogs component
wiltonlee948 Jan 4, 2023
e1a8065
added react testing library tests dependency
wiltonlee948 Jan 4, 2023
8f3da68
added dependencies in root package.json
wiltonlee948 Jan 4, 2023
06a805a
Merge pull request #24 from oslabs-beta/testing
wiltonlee948 Jan 4, 2023
7a2218e
Merge pull request #300 from oslabs-beta/dev
benmarg Jan 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</a>
<a href="https://travis-ci.com/oslabs-beta/reactime">
<img src="https://travis-ci.com/oslabs-beta/reactime.svg?branch=master" alt="Build Status">
</a>
</a>
<a href="http://badge.fury.io/js/reactime">
<img src="https://badge.fury.io/js/reactime.svg" alt="npm version">
</a>
</a>
<img src="https://img.shields.io/badge/babel%20preset-airbnb-ff69b4" alt="BabelPresetPrefs">
<img src="https://img.shields.io/badge/linted%20with-eslint-blueviolet" alt="LintPrefs">
</p>
Expand All @@ -40,7 +40,7 @@
</p>

<p align="center">
  <a href="#how-to-use">Manuel</a> • <a href="#features">Caractéristiques</a> • <a href="https://reactime.io">Website</a> • <a href="#readmore">En savoir plus</a>
  <a href="#how-to-use">Manuel</a> • <a href="#features">Caractéristiques</a> • <a href="https://reactime.dev">Website</a> • <a href="#readmore">En savoir plus</a>
</p>

Actuellement, Reactime est compatible avec les applications React qui utilisent des composants à état (stateful) et Hooks, avec un support en version bêta de Recoil et de pour le Context API.
Expand Down Expand Up @@ -131,6 +131,10 @@ Après avoir cloné ce référentiel, les développeurs peuvent simplement exéc

## <b>Auteurs</b>

- **Ben Margolius** - [@benmarg](https://github.com/benmarg)
- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun)
- **James Nghiem** - [@jemzir](https://github.com/jemzir)
- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948)
- **David Kim** - [@codejunkie7](https://github.com/codejunkie7)
- **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton)
- **Kevin HoEun Lee** - [@khobread](https://github.com/khobread)
Expand Down
174 changes: 125 additions & 49 deletions README.md

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.rus.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ Reactime beta поддерживает приложения, написанны
- [Deep in Weeds with Reactime, Concurrent React_fiberRoot, and Browser History Caching](https://itnext.io/deep-in-the-weeds-with-reactime-concurrent-react-fiberroot-and-browser-history-caching-7ce9d7300abb)

## <b>Авторы</b>

- **Ben Margolius** - [@benmarg](https://github.com/benmarg)
- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun)
- **James Nghiem** - [@jemzir](https://github.com/jemzir)
- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948)
- **David Kim** - [@codejunkie7](https://github.com/codejunkie7)
- **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton)
- **Kevin HoEun Lee** - [@khobread](https://github.com/khobread)
Expand Down
6 changes: 3 additions & 3 deletions demo-app/src/client/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ReactDOM.render(
<BrowserRouter>
<Nav />
<Routes>
<Route path="/tictactoe" element={<Board />}/>
<Route path="/" element={<Home />}/>
<Route path="/buttons" element={<Buttons />}/>
<Route path="/tictactoe" element={<Board />}/>
<Route path="/" element={<Home />}/>
<Route path="/buttons" element={<Buttons />}/>
</Routes>
</BrowserRouter>, root);
1 change: 1 addition & 0 deletions demo-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
}),
],
devServer: {
historyApiFallback: true,
static: {
directory: path.join(__dirname, './dist'),
},
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"transform": {
"^.+\\.(js|ts|tsx)$": "ts-jest"
},
"transformIgnorePatterns": ["/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)"],
"testPathIgnorePatterns": ["www"],
"transformIgnorePatterns": [
"/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)"
],
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
Expand Down Expand Up @@ -46,6 +49,7 @@
"Andy Tsou",
"Andy Wong",
"Becca Viner",
"Ben Margolius",
"Bryan Lee",
"Caitlin Chan",
"Caner Demir",
Expand All @@ -58,12 +62,14 @@
"Dennis Lopez",
"Edwin Menendez",
"Ergi Shehu",
"Eric Yun",
"Freya Wu",
"Gabriela Jardim Aquino",
"Gregory Panciera",
"Haejin Jo",
"Hien Nguyen",
"Jack Crish",
"James Nghiem",
"Joseph Park",
"Josh Kim",
"Joshua Howard",
Expand All @@ -83,6 +89,7 @@
"Sierra Swaby",
"Tania Lind",
"Viet Nguyen",
"Wilton Lee",
"Yujin Kang"
],
"license": "ISC",
Expand All @@ -94,6 +101,7 @@
"@babel/preset-react": "^7.12.7",
"@emotion/babel-plugin": "^11.7.2",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^13.4.0",
"@types/chai": "^4.2.14",
"@types/chrome": "^0.0.119",
"@types/d3": "^7.4.0",
Expand Down
24 changes: 21 additions & 3 deletions src/app/components/StateRoute/ComponentMap/ComponentMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function ComponentMap({
}: LinkTypesProps): JSX.Element {
// importing custom hooks for the selection tabs.
const [layout, setLayout] = useState('cartesian');
const [orientation, setOrientation] = useState('horizontal');
const [orientation, setOrientation] = useState('vertical');
const [linkType, setLinkType] = useState('diagonal');
const [stepPercent, setStepPercent] = useState(10);
const [Tooltip, setTooltip] = useState(false);
Expand Down Expand Up @@ -153,6 +153,19 @@ export default function ComponentMap({
return propsFormat;
};

const formatContext = data => {
const propsFormat = [];
const nestedObj = [];
for (const key in data) {
propsFormat.push(
<p className="stateprops">
{`${key}: ${data[key]}`}
</p>,
);
}
return propsFormat;
};

const formatState = state => {
if (state === 'stateless') return ['stateless'];
return ['stateful'];
Expand Down Expand Up @@ -378,10 +391,15 @@ export default function ComponentMap({
{formatState(tooltipData.state)}
</div>
<div style={React.scrollStyle}>
<div className="props">
Props:
<div className="tooltipWrapper">
<h2>Props:</h2>
{formatProps(tooltipData.componentData.props)}
</div>
{tooltipData.componentData.context &&
<div className="tooltipWrapper">
<h2>Context:</h2>
{formatContext(tooltipData.componentData.context)}
</div>}
</div>
</div>
</TooltipInPortal>
Expand Down
13 changes: 5 additions & 8 deletions src/app/components/StateRoute/ComponentMap/LinkControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export default function LinkControls({
disabled={layout === 'polar'}
style={dropDownStyle}
>
<option value="horizontal">Horizontal</option>
<option value="vertical">Vertical</option>
<option value="horizontal">Horizontal</option>
</select>
&nbsp;&nbsp;

Expand All @@ -110,19 +110,16 @@ export default function LinkControls({
{/* Controls for the select selections. */}
<label> Select:</label>
&nbsp;
<input
<select
id="selectInput"
list="nodeOptions"
type="text"
name="nodeOptions"
onChange={e => setSelectedNode(e.target.value)}
style={dropDownStyle}
/>
<datalist id="nodeOptions">
>
{nodeList.map(node => (
<option key={node.name} value={node.name}>{node.name}</option>
node.children.length > 0 && <option key={node.name} value={node.name}>{node.name}</option>
))}
</datalist>
</select>

{/* This is the slider control for the step option */}
{linkType === 'step' && layout !== 'polar' && (
Expand Down
4 changes: 2 additions & 2 deletions src/app/containers/ErrorContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ function ErrorContainer(): any {
</div>
<br />
<a
href="https://reactime.io/"
href="https://reactime.dev/"
target="_blank"
rel="noopener noreferrer"
>
Please visit reactime.io to more info.
Please visit reactime.dev to more info.
</a>
</div>
);
Expand Down
34 changes: 29 additions & 5 deletions src/app/styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
@charset 'UTF-8';
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
font-family: 'Roboto', sans-serif;
}

.tooltipWrapper {
background-color: #505050;
color: rgb(216, 216, 216);
margin-top: 3px;
margin-bottom: 3px;
padding: 2px;
}

.tooltipWrapper h2 {
margin-top: 1px;
margin-bottom: 1px;
margin-left: 1px;
font-size: small;
font-weight: bolder;
}

.tooltipWrapper p {
margin-top: 1px;
margin-bottom: 1px;
margin-left: 10px;
margin-right: 3px;
}

/* width */
::-webkit-scrollbar {
width: 5px;
Expand Down Expand Up @@ -36,13 +60,13 @@

// 4. Layout-related sections
@import 'layout/mainContainer', 'layout/bodyContainer', 'layout/actionContainer',
'layout/errorContainer', 'layout/stateContainer', 'layout/travelContainer',
'layout/buttonsContainer', 'layout/headContainer.scss';
'layout/errorContainer', 'layout/stateContainer', 'layout/travelContainer',
'layout/buttonsContainer', 'layout/headContainer.scss';

// 5. Components
@import 'components/buttons', 'components/actionComponent',
'components/jsonTree', 'components/renderingFrequency',
'components/performanceVisx';
'components/jsonTree', 'components/renderingFrequency',
'components/performanceVisx';

// slider component
@import './components/rc-slider', './components/sliderHandle';
Expand All @@ -51,4 +75,4 @@
@import './components/d3graph.css';

// diff component
@import './components/diff';
@import './components/diff';
3 changes: 3 additions & 0 deletions src/backend/__tests__/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ describe('AST Unit Tests', () => {
});
});



// test notes
describe('getHooksNames', () => {
it('Should return object with one getter/setter for a single useState instance', () => {
const elementType = `function SingleUseFakeComponent() {
Expand Down
3 changes: 2 additions & 1 deletion src/backend/__tests__/timeJump.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ describe('unit testing for timeJump.ts', () => {
timeJump = timeJumpRequire(mode);
});
test('calling the initial require should return a function', () => {
expect(typeof timeJumpRequire).toBe('function');
const funcDef = timeJumpRequire;
expect(typeof funcDef).toBe('function');
});

// xdescribe('testing iteration through snapshot tree', () => {
Expand Down
Loading