Skip to content

Route set up#45

Closed
akinsanmi60 wants to merge 2 commits intoRealDevSquad:developfrom
akinsanmi60:Route-set-up
Closed

Route set up#45
akinsanmi60 wants to merge 2 commits intoRealDevSquad:developfrom
akinsanmi60:Route-set-up

Conversation

@akinsanmi60
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@pallabez
Copy link
Contributor

Thanks for the PR. Can you please mention the description of this PR & if it was tested in the browser?

Copy link
Contributor

@Neha Neha left a comment

Choose a reason for hiding this comment

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

Please add the description and test-cases too for the PR

@@ -1,8 +1,17 @@
import Header from "./components/Header/Header";
Copy link
Contributor

Choose a reason for hiding this comment

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

The header is not getting used here. This should be removed from here.

return (
<div>Hey</div>
<Routes>
<Route path="/" />
Copy link
Contributor

Choose a reason for hiding this comment

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

What would come at /? As of now, I can only see blank page

<div>Hey</div>
<Routes>
<Route path="/" />
<Route path="/login" element={<Login />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

These components are not imported hence it is not working. only blank pages are coming.

image

<Routes>
<Route path="/" />
<Route path="/login" element={<Login />} />
<Route path="/flag?mode=edit" element={<FlagEdit />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, the components have not imported.

@@ -0,0 +1,7 @@
import React from "react";
Copy link
Contributor

Choose a reason for hiding this comment

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

@pallabez are we going to have separate components for edit and create?

Copy link
Contributor

@pallabez pallabez Jul 15, 2022

Choose a reason for hiding this comment

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

Nope. We were planning on reusing same component.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the component and route.

function App() {
return (
<div>Hey</div>
<Routes>
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be moved to a separate folder name Routes.

@pallabez What would be the homepage? As we are not focusing on the Login screen as of now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Homepage would be dashboard. No?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, as we decided the login is not the priority right now then yes dashboard. We need to also highlight in UI till login is not their dashboard view is of the super user or non-super user.

<Route path="/" />
<Route path="/login" element={<Login />} />
<Route path="/flag?mode=edit" element={<FlagEdit />} />
<Route path="/flag?mode=create" element={<FlagCreate />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

What would be the advantage here of the mode=create

Copy link
Contributor

Choose a reason for hiding this comment

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

The query would help us use same feature flag forum component to both edit & create as discussed before.

@@ -0,0 +1,5 @@
import React from "react";

export const Login = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We are not using this pattern for component creation. Please check the button or header to follow the same pattern.

@@ -0,0 +1,7 @@
import React from "react";

const FlagEdit = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We are not using this pattern for component creation. Please check the button or header to follow the same pattern.

@@ -0,0 +1,7 @@
import React from "react";

const FlagCreate = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We are not using this pattern for component creation. Please check the button or header to follow the same pattern.

@Neha
Copy link
Contributor

Neha commented Jul 15, 2022

There are new requirements for the Route.

We would be having:

Left Nav:

  1. Users
  2. Flags
  3. Segments
  4. Environment switching
  5. Account settings

and then within the pages, we will have:

  1. Create a flag
  2. Delete a flag
  3. Edit a flag

@Neha Neha self-assigned this Jul 20, 2022
@Neha Neha mentioned this pull request Aug 10, 2022
14 tasks
@Neha
Copy link
Contributor

Neha commented Aug 10, 2022

Closing this PR as a new PR #64 is raised

@Neha Neha closed this Aug 10, 2022
@akinsanmi60 akinsanmi60 deleted the Route-set-up branch November 13, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments