-
+
+
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
- quis est vitae sapien venenatis viverra. Suspendisse bibendum
- tristique est, et gravida neque porta ut. Pellentesque egestas
- vehicula nulla eu aliquet. Morbi id lacus eget lorem aliquam
- ornare. Vivamus pulvinar ligula sapien, ut pulvinar eros
- sollicitudin sodales. Donec sed ipsum sit amet mauris posuere
- maximus. Aenean finibus turpis eu urna suscipit venenatis.
-
+
diff --git a/src/components/root/Navigation.js b/src/components/root/Navigation.js
index 305c549..7f19395 100644
--- a/src/components/root/Navigation.js
+++ b/src/components/root/Navigation.js
@@ -1,5 +1,8 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
+import InLineSearch from "./Pages/Functionality/InlineSearchBar";
+
+// Navbar class component, Just simple href's to retain styling
export class Navigation extends Component {
render() {
@@ -16,6 +19,9 @@ export class Navigation extends Component {
Upcoming Migrations
+
+ Migrations
+
Reports
@@ -26,6 +32,18 @@ export class Navigation extends Component {
Book
+ {/* Inline UUID search bar is here */}
+
+ UUID:
+
+
+
+ {/*
+
+
+
+ */}
+
diff --git a/src/components/root/Pages/AllReports/GetSingleMigration.js b/src/components/root/Pages/AllReports/GetSingleMigration.js
deleted file mode 100644
index 168072b..0000000
--- a/src/components/root/Pages/AllReports/GetSingleMigration.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import React, { Component, useEffect, useState } from "react";
-import moment from "moment";
-import { Col, FormGroup, Row, Container, Label } from "reactstrap";
-import { Formik, Form } from "formik";
-import { Input, Submit } from "formstrap";
-import { callAPI } from "../../../actions/API";
-
-const initialValues = {
- submit_time: moment().format("YYYY-MM-DD"),
-};
-const onSubmit = async (values, { setSubmitting }) => {
- callAPI
- .get("/", values)
- .then((response) => {
- console.log(response.data);
- this.setState({
- singlemigs: response.data,
- });
- })
- .catch((error) => {
- console.log(error);
- });
- setSubmitting(false);
-};
-
-export default class GetSingleMigration extends Component {
- constructor(props) {
- super(props);
- this.state = {
- singlemigs: [],
- e: false,
- };
- }
- render() {
- return (
-
-
-
-
- {/* */}
-
- );
- }
-}
diff --git a/src/components/root/Pages/AllReports/IdSearchForm.js b/src/components/root/Pages/AllReports/IdSearchForm.js
deleted file mode 100644
index e341303..0000000
--- a/src/components/root/Pages/AllReports/IdSearchForm.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from "react";
-
-import { Col, FormGroup, Row, Container, Label } from "reactstrap";
-import { Formik, Form } from "formik";
-import { Input, Submit } from "formstrap";
-
-export default function IdSearchForm({ api }) {
- const initialValues = {};
-
- return (
-
-
-
-
-
- );
-}
diff --git a/src/components/root/Pages/AllReports/ShowMigrations.js b/src/components/root/Pages/AllReports/ShowMigrations.js
deleted file mode 100644
index acbdd50..0000000
--- a/src/components/root/Pages/AllReports/ShowMigrations.js
+++ /dev/null
@@ -1,150 +0,0 @@
-import React, { useState, useEffect } from "react";
-import { callAPI } from "../../../actions/API";
-import BootstrapTable from "react-bootstrap-table-next";
-import paginationFactory from "react-bootstrap-table2-paginator";
-import * as ReactBootstrap from "react-bootstrap";
-import filterFactory from "react-bootstrap-table2-filter";
-import ToolkitProvider, {
- Search,
- CSVExport,
-} from "react-bootstrap-table2-toolkit";
-
-const ShowMigrations = () => {
- const [list, setList] = useState([]);
- const [loading, setLoading] = useState(false);
- const { SearchBar } = Search;
- const { ExportCSVButton } = CSVExport;
- const sizePerPageRenderer = ({
- options,
- currSizePerPage,
- onSizePerPageChange,
- }) => (
-
- {options.map((option) => {
- const isSelect = currSizePerPage === `${option.page}`;
- return (
- onSizePerPageChange(option.page)}
- className={`btn ${isSelect ? "btn-secondary" : "btn-success"}`}
- >
- {option.text}
-
- );
- })}
-
- );
-
- const getListData = async () => {
- try {
- const data = await console.log(data);
- setList(data.data);
- setLoading(true);
- } catch (e) {
- console.log(e);
- }
- };
- const options = {
- paginationSize: 4,
- pageStartIndex: 0,
- // alwaysShowAllBtns: true, // Always show next and previous button
- // withFirstAndLast: false, // Hide the going to First and Last page button
- // hideSizePerPage: true, // Hide the sizePerPage dropdown always
- // hidePageListOnlyOnePage: true, // Hide the pagination list when only one page
- firstPageText: "First",
- prePageText: "Back",
- nextPageText: "Next",
- lastPageText: "Last",
- nextPageTitle: "First page",
- prePageTitle: "Pre page",
- firstPageTitle: "Next page",
- lastPageTitle: "Last page",
- showTotal: true,
- disablePageTitle: true,
- sizePerPageList: [
- {
- text: "50",
- value: 50,
- },
- {
- text: "100",
- value: 100,
- },
- ],
- sizePerPageRenderer, // A numeric array is also available. the purpose of above example is custom the text
- };
- const columns = [
- { dataField: "id", text: "ID", hidden: true },
- { dataField: "submit_time", text: "Submit Time", sort: true },
- {
- dataField: "domain",
- text: "Domain",
- sort: true,
- formatter: (cell, row) =>
{cell} ,
- },
- { dataField: "booked_date", text: "Booked Date", sort: true },
- { dataField: "booked_time", text: "Booked Time", sort: true },
- { dataField: "original_server", text: "Original Server", sort: true },
- { dataField: "new_server", text: "New Server", sort: true },
- { dataField: "username", text: "Username", sort: true },
- { dataField: "brand", text: "Brand", sort: true },
- { dataField: "ticket_id", text: "TicketID", sort: true },
- { dataField: "migration_status", text: "Status", sort: true },
- { dataField: "agent_booked", text: "Agent initials", sort: true },
- { dataField: "additional_domains", text: "Additional Domains", sort: true },
- { dataField: "migration_type", text: "Type", sort: true },
- { dataField: "term_date", text: "Termination Date", sort: true },
- { dataField: "notes", text: "Notes", sort: true },
- {
- dataField: "report",
- text: "Show Detailed Report",
- formatter: (cell, row) =>
{cell} ,
- },
- ];
-
- useEffect(() => {
- getListData();
- }, []);
-
- return (
-
- {loading ? (
-
- {(props) => (
-
-
-
-
-
-
-
-
-
-
- Export CSV!!
-
-
- )}
-
- ) : (
-
- )}
-
- );
-};
-
-export default ShowMigrations;
diff --git a/src/components/root/Pages/Book.js b/src/components/root/Pages/Book.js
index 6ceaa15..eab4f4b 100644
--- a/src/components/root/Pages/Book.js
+++ b/src/components/root/Pages/Book.js
@@ -2,6 +2,9 @@ import React, { Component } from "react";
import FormPage from "./Forms/FormPage";
+// Parent page for the Book component,
+// links directly to FormPage which contains the POST request
+
export default class Book extends Component {
render() {
return (
diff --git a/src/components/root/Pages/Cards.js b/src/components/root/Pages/Cards.js
new file mode 100644
index 0000000..a6998ad
--- /dev/null
+++ b/src/components/root/Pages/Cards.js
@@ -0,0 +1,79 @@
+import React, { Component } from "react";
+
+// styles and collects each endpoint
+// booked, awaitterm, complete and missed
+// is referenced on Home
+
+class Cards extends Component {
+ bookedMig() {
+ return this.props.migs[0]["booked_count"];
+ }
+ waitingMig() {
+ return this.props.migs[0]["awaitterm_count"];
+ }
+ completedMig() {
+ return this.props.migs[0]["complete_count"];
+ }
+ missedMig() {
+ return this.props.migs[0]["missed_count"];
+ }
+
+ render() {
+ if (!this.props.migs[0]) {
+ return
;
+ }
+
+ return (
+
+
+
+
+
+ {this.bookedMig()}
+
+
+
+
+
+
+
+
+
+ {this.waitingMig()}
+
+
+
+
+
+
+
+
+
+ {this.completedMig()}
+
+
+
+
+
+
+
+
+ {this.missedMig()}
+
+
+
+
+
+ );
+ }
+}
+
+export default Cards;
diff --git a/src/components/root/Pages/Forms/CPanelBooking.js b/src/components/root/Pages/Forms/CPanelBooking.js
index efbacf3..594e9af 100644
--- a/src/components/root/Pages/Forms/CPanelBooking.js
+++ b/src/components/root/Pages/Forms/CPanelBooking.js
@@ -6,6 +6,11 @@ import { Formik, Form } from "formik";
import { Input, Submit } from "formstrap";
import { callAPI } from "../../../actions/API";
+// Main form and POST Request to add migrations
+// found at /book under the web hosting migration tab
+// Things to add:
+// better date time picking.
+
export const CPanelBooking = () => {
const initialValues = {
submit_time: moment().format("YYYY-MM-DD"),
@@ -15,7 +20,7 @@ export const CPanelBooking = () => {
callAPI
.post("/", values)
.then(function (response) {
- console.log(JSON.stringify(response.values));
+ console.log(response.data.id);
// add function here
})
.catch(function (error) {
diff --git a/src/components/root/Pages/Forms/DateTimePicker.js b/src/components/root/Pages/Forms/DateTimePicker.js
deleted file mode 100644
index 092d162..0000000
--- a/src/components/root/Pages/Forms/DateTimePicker.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import React from "react";
-var DatePicker = require("reactstrap-date-picker");
-
-class DateTimePicker extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- value: new Date().toISOString(),
- };
- }
-
- handleChange(value, formattedValue) {
- this.setState({
- value: value, // ISO String, ex: "2016-11-19T12:00:00.000Z"
- formattedValue: formattedValue, // Formatted String, ex: "11/19/2016"
- });
- }
-
- componentDidUpdate() {
- // Access ISO String and formatted values from the DOM.
- var hiddenInputElement = document.getElementById("example-datepicker");
- console.log(hiddenInputElement.value); // ISO String, ex: "2016-11-19T12:00:00.000Z"
- console.log(hiddenInputElement.getAttribute("data-formattedvalue")); // Formatted String, ex: "11/19/2016"
- }
-
- render() {
- return (
-
this.handleChange(v, f)}
- minDate={Date()}
- width="100%"
- size="lg"
- />
- );
- }
-}
-export default DateTimePicker;
diff --git a/src/components/root/Pages/Forms/EmailBooking.js b/src/components/root/Pages/Forms/EmailBooking.js
index 643b5b1..5415113 100644
--- a/src/components/root/Pages/Forms/EmailBooking.js
+++ b/src/components/root/Pages/Forms/EmailBooking.js
@@ -1,5 +1,8 @@
import React, { Component } from "react";
+// Needs to be populated with email specific migration
+// information
+
export default class EmailBooking extends Component {
render() {
return (
diff --git a/src/components/root/Pages/Forms/FormPage.js b/src/components/root/Pages/Forms/FormPage.js
index 6193080..24b2d20 100644
--- a/src/components/root/Pages/Forms/FormPage.js
+++ b/src/components/root/Pages/Forms/FormPage.js
@@ -20,6 +20,10 @@ const FormPage = (props) => {
if (activeTab !== tab) setActiveTab(tab);
};
+ // Parent page from the Book section,
+ // Can be expanded to offer email migration bookings,
+ // elements below do the POST requests.
+
return (
diff --git a/src/components/root/Pages/Migrations/ReportSingleMigration.js b/src/components/root/Pages/Forms/ReportSingleMigration.js
similarity index 98%
rename from src/components/root/Pages/Migrations/ReportSingleMigration.js
rename to src/components/root/Pages/Forms/ReportSingleMigration.js
index 5b06dde..62509d6 100644
--- a/src/components/root/Pages/Migrations/ReportSingleMigration.js
+++ b/src/components/root/Pages/Forms/ReportSingleMigration.js
@@ -5,6 +5,9 @@ import { Formik, Form } from "formik";
import { Input, Submit } from "formstrap";
import { callAPI } from "../../../actions/API";
+// Main form element for the UUID linking Migrations page,
+// Contians the PUT request to modify data from the API
+
const ReportSingleMigration = ({ item }) => {
const initialValues = {
submit_time: item.submit_time,
diff --git a/src/components/root/Pages/Functionality/IdSearchForm.js b/src/components/root/Pages/Functionality/IdSearchForm.js
new file mode 100644
index 0000000..022a877
--- /dev/null
+++ b/src/components/root/Pages/Functionality/IdSearchForm.js
@@ -0,0 +1,38 @@
+import React from "react";
+
+import { FormGroup, Label } from "reactstrap";
+import { Formik, Form } from "formik";
+import { Input, Submit } from "formstrap";
+
+// Needs to be changed, to not use a library,
+// currently the form populates the fields on migrations, if you
+// enter a UUID into field,
+
+export default function IdSearchForm({ api }) {
+ const initialValues = {};
+
+ return (
+
+ {/*
+
+
+ */}
+
+ {/*
+
+
+ */}
+
+ );
+}
diff --git a/src/components/root/Pages/Functionality/InlineSearchBar.js b/src/components/root/Pages/Functionality/InlineSearchBar.js
new file mode 100644
index 0000000..fc05397
--- /dev/null
+++ b/src/components/root/Pages/Functionality/InlineSearchBar.js
@@ -0,0 +1,38 @@
+import React from "react";
+
+// Inline search bar with direct UUID linking,
+// Changes URL and populates the form at /migrations/ with the information from the request
+
+class InLineSearch extends React.Component {
+ constructor(props) {
+ super(props);
+ this.state = { data: "" };
+
+ this.onChange = this.onChange.bind(this);
+ }
+ onChange(e) {
+ this.setState({ data: e.target.value });
+ }
+ onKeyPressed = (e) => {
+ // This is so we can access the state within the function
+ if (e.keyCode === 13) {
+ window.location.href =
+ "https://devui.benjamyn.love/migrations/" + this.state.data;
+ }
+ };
+ render() {
+ return (
+
+
+
+ );
+ }
+}
+
+export default InLineSearch;
diff --git a/src/components/root/Pages/Functionality/Stats.js b/src/components/root/Pages/Functionality/Stats.js
deleted file mode 100644
index e69de29..0000000
diff --git a/src/components/root/Pages/Functionality/SubmitMigration.js b/src/components/root/Pages/Functionality/SubmitMigration.js
deleted file mode 100644
index b973baf..0000000
--- a/src/components/root/Pages/Functionality/SubmitMigration.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react'
-
-export default function SubmitMigration() {
- return (
-
-
-
- )
-}
diff --git a/src/components/root/Pages/Functionality/Table.js b/src/components/root/Pages/Functionality/Table.js
deleted file mode 100644
index b56152d..0000000
--- a/src/components/root/Pages/Functionality/Table.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import DataGrid from 'react-data-grid';
-import 'react-data-grid/dist/react-data-grid.css';
-
-const columns = [
- { key: 'id', name: 'ID' },
- { key: 'title', name: 'Title' }
-];
-
-const rows = [
- { id: 0, title: 'Example' },
- { id: 1, title: 'Demo' },
- { id: 3, title: 'Example' },
- { id: 4, title: 'Demo' },
- { id: 5, title: 'Example' },
- { id: 6, title: 'Demo' },
- { id: 7, title: 'Example' },
- { id: 8, title: 'Demo' },
- { id: 9, title: 'Demo' },
- { id: 10, title: 'Example' },
- { id: 11, title: 'Demo' },
- { id: 12, title: 'Example' },
- { id: 13, title: 'Demo' },
- { id: 14, title: 'Example' },
- { id: 15, title: 'Demo' },
- { id: 16, title: 'Demo' },
- { id: 17, title: 'Example' },
- { id: 18, title: 'Demo' },
- { id: 19, title: 'Example' },
- { id: 20, title: 'Demo' },
- { id: 21, title: 'Example' },
- { id: 22, title: 'Demo' }
-];
-
-function Table() {
- return (
-
- );
-}
-export default Table;
diff --git a/src/components/root/Pages/Historical.js b/src/components/root/Pages/Historical.js
index ce01576..9e5e4ea 100644
--- a/src/components/root/Pages/Historical.js
+++ b/src/components/root/Pages/Historical.js
@@ -1,9 +1,15 @@
import React, { Component } from "react";
import { callAPI } from "../../actions/API";
-import HistoricalSingle from "./Migrations/HistoricalSingle";
+import HistoricalSingle from "./Tables/HistoricalSingle";
import Error from "../../actions/Error";
+// Parent page for the /historical-migrations page,
+// is referenced in the react route, and calls the main table using
+// HIstoricalSingle,
+// All migrations are called, and can be searched
+// It actuall does error reporting, using `renderItems`
+
class Historical extends Component {
constructor(props) {
super(props);
diff --git a/src/components/root/Pages/IDSingle.js b/src/components/root/Pages/IDSingle.js
index 40e7c5d..4e57c6d 100644
--- a/src/components/root/Pages/IDSingle.js
+++ b/src/components/root/Pages/IDSingle.js
@@ -1,28 +1,50 @@
import React, { Component } from "react";
-import ReportSingleMigration from "./Migrations/ReportSingleMigration";
+import ReportSingleMigration from "./Forms/ReportSingleMigration";
import { callAPI } from "../../actions/API";
-export default class Reports extends Component {
- render() {
- const migrationId = ({ migrationId }) => {
- console.log(migrationId.migrationId);
- callAPI
- .get(`/${migrationId.migrationId}/`)
- .then((response) =>
- this.setState({
- redirect: true,
- migs: response.data,
- })
- )
- .catch(function (error) {
- console.log(error);
- });
- };
+// This class will populate a form from a UUID in the address bar,
+// e.g. /migrations/a7740b79-a7d9-4de7-b01e-00522fa4455a
+// the form will populate with that migration UUID
+// ReportSingleMigration is the form that you can modify and sent PUT requests
+// to the DB
+export default class Reports extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ migs: [],
+ };
+ }
+ componentDidMount() {
+ const {
+ match: { params },
+ } = this.props;
+
+ const urlID = callAPI
+ .get(`/${params.migrationId}/`)
+ .then((response) =>
+ this.setState({
+ migs: response.data,
+ })
+ )
+ .catch(function (error) {
+ console.log(error);
+ });
+ }
+
+ render() {
+ // const urlID = ({ migrationId }) => {
+ // console.log(migrationId.migrationId);
+
+ // };
return (
-
+ {/* {this.state.migs} */}
+
);
}
diff --git a/src/components/root/Pages/Migrations.js b/src/components/root/Pages/Migrations.js
index 0c55fcf..d4c0184 100644
--- a/src/components/root/Pages/Migrations.js
+++ b/src/components/root/Pages/Migrations.js
@@ -1,63 +1,47 @@
import React, { Component } from "react";
-class Migrations extends Component {
- bookedMig() {
- return this.props.migs.filter(
- (booked) => booked.migration_status === "Booked"
- ).length;
- }
- waitingMig() {
- return this.props.migs.filter(
- (waiting) => waiting.migration_status === "Waiting Termination"
- ).length;
- }
- completedMig() {
- return this.props.migs.filter(
- (complete) => complete.migration_status === "Completed"
- ).length;
+import IdSearchForm from "./Functionality/IdSearchForm";
+import ReportSingleMigration from "./Forms/ReportSingleMigration";
+import { callAPI } from "../../actions/API";
+
+// /migrations in the address bar,
+// Allows the modification of migrations, and also populating a form
+// by UUID.
+// IDSearchForm is the UUID form at the top of the page,
+// ReportSingleMigration is the actual form, witha PUT API request on that page.
+
+export default class Migrations extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ migs: [],
+ redirect: false,
+ };
}
render() {
+ const onSubmit = async (migrationId, { setSubmitting }) => {
+ callAPI
+ .get(`/${migrationId.migrationId}/`)
+ .then((response) =>
+ this.setState({
+ redirect: true,
+ migs: response.data,
+ })
+ )
+ .catch(function (error) {
+ console.log(error);
+ });
+ setSubmitting(false);
+ };
return (
-
-
-
-
-
- {this.bookedMig()}
-
-
-
-
-
-
-
-
-
- {this.waitingMig()}
-
-
-
-
-
-
-
-
-
- {this.completedMig()}
-
-
-
-
+
+
+
);
}
}
-
-export default Migrations;
diff --git a/src/components/root/Pages/Migrations/MigrationSingle.js b/src/components/root/Pages/Migrations/MigrationSingle.js
deleted file mode 100644
index 8c6803e..0000000
--- a/src/components/root/Pages/Migrations/MigrationSingle.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-const MigrationSingle = ({ item }) => (
-
-);
-
-export default MigrationSingle;
diff --git a/src/components/root/Pages/Migrations/SideMigrations.js b/src/components/root/Pages/Migrations/SideMigrations.js
index 569e05c..8e17e6a 100644
--- a/src/components/root/Pages/Migrations/SideMigrations.js
+++ b/src/components/root/Pages/Migrations/SideMigrations.js
@@ -1,7 +1,10 @@
import React, { Component } from "react";
-import { SingleSide } from "./SingleSide";
+import { SingleSide } from "../Tables/SingleSide";
import { callAPI } from "../../../actions/API";
+// Side Migrations is displayed on the Home page,
+// This page contains the API request, and storing state for the request,
+
export default class SideMigrations extends Component {
constructor(props) {
super(props);
diff --git a/src/components/root/Pages/Reports.js b/src/components/root/Pages/Reports.js
index 685874d..3ee1b12 100644
--- a/src/components/root/Pages/Reports.js
+++ b/src/components/root/Pages/Reports.js
@@ -1,40 +1,13 @@
import React, { Component } from "react";
-import IdSearchForm from "./AllReports/IdSearchForm";
-import ReportSingleMigration from "./Migrations/ReportSingleMigration";
-import { callAPI } from "../../actions/API";
+// This page was should hold a way to generate reports/lists of
+// Migrations in varied statuses.
export default class Reports extends Component {
- constructor(props) {
- super(props);
- this.state = {
- migs: [],
- redirect: false,
- };
- }
-
render() {
- const onSubmit = async (migrationId, { setSubmitting }) => {
- callAPI
- .get(`/${migrationId.migrationId}/`)
- .then((response) =>
- this.setState({
- redirect: true,
- migs: response.data,
- })
- )
- .catch(function (error) {
- console.log(error);
- });
- setSubmitting(false);
- };
return (
-
-
+
Reports
);
}
diff --git a/src/components/root/Pages/Migrations/HistoricalSingle.js b/src/components/root/Pages/Tables/HistoricalSingle.js
similarity index 95%
rename from src/components/root/Pages/Migrations/HistoricalSingle.js
rename to src/components/root/Pages/Tables/HistoricalSingle.js
index b462313..68eb813 100644
--- a/src/components/root/Pages/Migrations/HistoricalSingle.js
+++ b/src/components/root/Pages/Tables/HistoricalSingle.js
@@ -9,6 +9,9 @@ import ToolkitProvider, {
CSVExport,
} from "react-bootstrap-table2-toolkit";
+// Main table for the Historical migrations tab,
+// receives all API information and displays as a table with a searchbox
+
const HistoricalSingle = () => {
const [list, setList] = useState([]);
const [loading, setLoading] = useState(false);
@@ -82,7 +85,7 @@ const HistoricalSingle = () => {
dataField: "domain",
text: "Domain",
sort: true,
- formatter: (cell, row) =>
{cell} ,
+ formatter: (cell, row) =>
{cell} ,
},
{ dataField: "booked_date", text: "Booked Date", sort: true },
{ dataField: "booked_time", text: "Booked Time", sort: true },
diff --git a/src/components/root/Pages/Migrations/SingleSide.js b/src/components/root/Pages/Tables/SingleSide.js
similarity index 77%
rename from src/components/root/Pages/Migrations/SingleSide.js
rename to src/components/root/Pages/Tables/SingleSide.js
index 248c2f5..47b1f02 100644
--- a/src/components/root/Pages/Migrations/SingleSide.js
+++ b/src/components/root/Pages/Tables/SingleSide.js
@@ -2,6 +2,10 @@ import React from "react";
import { BootstrapTable, TableHeaderColumn } from "react-bootstrap-table";
import "../../../../react-bootstrap-table.css";
+// Single Side is directly referenced on the SideMigrations page,
+// receives data from the get request and only displays small amounts of info
+// this could be fleshed out/ linked to UUID's
+
export const SingleSide = ({ data }) => {
return (
diff --git a/src/components/root/Pages/Migrations/UpcomingSingle.js b/src/components/root/Pages/Tables/UpcomingSingle.js
similarity index 95%
rename from src/components/root/Pages/Migrations/UpcomingSingle.js
rename to src/components/root/Pages/Tables/UpcomingSingle.js
index d6d443c..c3b2236 100644
--- a/src/components/root/Pages/Migrations/UpcomingSingle.js
+++ b/src/components/root/Pages/Tables/UpcomingSingle.js
@@ -9,6 +9,10 @@ import ToolkitProvider, {
CSVExport,
} from "react-bootstrap-table2-toolkit";
+// Directly linked to the parent page "Upcoming"
+// this element creates the table
+// Each domain links to a uuid, which then links to the page Migrations/uuid
+
const UpcomingSingle = () => {
const [list, setList] = useState([]);
const [loading, setLoading] = useState(false);
@@ -82,7 +86,7 @@ const UpcomingSingle = () => {
dataField: "domain",
text: "Domain",
sort: true,
- formatter: (cell, row) =>
{cell} ,
+ formatter: (cell, row) =>
{cell} ,
},
{ dataField: "booked_date", text: "Booked Date", sort: true },
{ dataField: "booked_time", text: "Booked Time", sort: true },
diff --git a/src/components/root/Pages/Upcoming.js b/src/components/root/Pages/Upcoming.js
index ae76cb2..b0dbe68 100644
--- a/src/components/root/Pages/Upcoming.js
+++ b/src/components/root/Pages/Upcoming.js
@@ -1,6 +1,11 @@
import React, { Component } from "react";
+import UpcomingSingle from "./Tables/UpcomingSingle";
-import UpcomingSingle from "./Migrations/UpcomingSingle";
+// Upcoming parent page,
+// Most of the good stuff is happening in UpcomingSingle, which does the
+// main rendering of the table,
+// may want to eventually do the API call here, to re-use the table
+// instead of duplicating it.
class Upcoming extends Component {
render() {