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

Q4 review #169

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

Conversation

Dev-Dominic
Copy link
Collaborator

No description provided.

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.
__Issue__: Relative path imports made it harder to know where in the
given project that a module was being imported from, as well as,
comprised code readability.

__Fix__: Utilize `jsconfig.json` convention that allows for the
specification of root files and options. [jsconfig.json
overview](https://code.visualstudio.com/docs/languages/jsconfig)

__Minor__: Omission of `Create-React-App` readme file.
__Issue__: Needed updates to docs to match new `pattoo-web` project
structure

__Fix__: Updated docs to detail project structure and general philosophy
on how project files should be structured. Also updates installation
docs to detail how the project dependencies can be installed.

__Minor__: Movement of Page Layouts from components folder to routes
Folder. Large Project Component pages are better suited to be under the
routes pages instead of under components folders which are for smaller
components.
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.

1 participant