Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

React Refactoring #172

Open
wants to merge 74 commits into
base: Q4-review
Choose a base branch
from

Conversation

DangaRanga
Copy link
Collaborator

  • Sidebar and Header Components started with completed Unittests (more to be added as more is added to the components)
  • Completed Unittests for the api objects
  • Added unittest stubs for the components to be implemented

Dev-Dominic and others added 30 commits August 14, 2020 21:35
React App created and flask implementation removed. React allows for
easier maninpulation of GraphQL data, as well as, creation of dynamic
charting data.
Initially pattoo_web React App structure done, separating components
based on desired routes such as login, dashboard, etc..

Started developing login page, with creation of login.js component and
login.css stylesheet.
Restructure so that file structure for source folder(src) is much
shallower.
Login refactored to utilized tailwindcss, as well as, Sidebar component
also refactored. Routes and related components separated to separated
logic and design.
Base template contains current page title, as well as, Sidebar for each
page.
Completion and layout of dashboard page design.
Allow user authenitcation and basic protected routing based on whether
acesssToken and refreshToken are present on the client. Inital data
querying and updates to charts on Dashboard.
Update pattoo-web colorscheme by extending colors through tailwind-css
configuration.
Query for user chart favorites in the dashboard, using query function
from api.js. Update Dashboard to dynamincally generate charts based on
the number of favorite charts the user has, and whether each given chart
has at least one datapoint associated for it be rendered.

Minor changes by removing query string from auth function in
graphql_client to api.js module.
Dashboard fully re-design to match UI/UX design. Updates to Recently
Updated status card to have button toggles to show charts for user Favorites, all charts and recently update agents.

Sidebar also updated to reflect new colors and design.
Initial creating and configuring of ReactModal to house the ability to
create new charts, and chart favorites. Updates to Login.js component
colors and updates to pattoo logo throughout application.
Used third-party React package `React Modal` to create form.
Added installation and setup guide for pattoo-web for local machine
usage currently if pattoo-api is running on the same machine.
__Issue__: Previous file structure had no general or clear purpose.

__Fix__:
	1. Create segment folders for each related group of project
	   components in the source folder:
		- components
		- routes
		- utils
	2. Remove redudnat folders from previous iterations of
	   pattoo-web.
	3. Reduce project depthed by deleting `pattoo_web` folder and
	   making the root of project one less in folder depth.
	4. Create folders for each module witih structure:
		- module-name.js
		- module-name.test.js
		- module-name.css `react component`
		- index.js `exports default and other functions from
		  module`
		- components `child react components associated
		  with parent react component`
	5. Create and renamed main react routing folder `routes` to have
	   a module called `RouteClient` which handles registering new routes.
__Issue__: After restructing application, things began to break due to
incorrect module/file imports.

__Fix__: Moved down and across application filesystem and added in the
necessary relative module/file imports to resolve issue.
@heyjordn heyjordn self-requested a review January 17, 2021 02:29
Copy link

@heyjordn heyjordn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DangaRanga @Dev-Dominic Is this ready to be merged? From checking out the source and running the PR it seems that there are some screens missing
Screen Shot 2021-01-17 at 10 38 33 PM

@DangaRanga
Copy link
Collaborator Author

@DangaRanga @Dev-Dominic Is this ready to be merged? From checking out the source and running the PR it seems that there are some screens missing
Screen Shot 2021-01-17 at 10 38 33 PM

my bad, we didn't merge the branch we were making the changes on as yet.

@heyjordn
Copy link

@DangaRanga Let me know when to review again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants