Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add reusable dashboard header; implement profile page design #757 #758

Open
wants to merge 107 commits into
base: io/developer-dashboard
Choose a base branch
from

Conversation

davydocsurg
Copy link

Describe your changes

Implemented the Developer profile page design
Design: https://www.figma.com/file/KEdhBREtlZKSXVMw95lZTg/Igbo-API-Editor-Platform?type=design&node-id=2001-1427&mode=design&t=bN9MwqgO5aHLtOC2-0

Issue ticket number and link

#757

Screenshots (if appropriate):

Screenshot 2023-10-24 at 9 34 51 AM

davydocsurg and others added 4 commits September 8, 2023 10:37
* chore: fix tests; create login endpoint nkowaokwu#704

* chore: fix authorization bugs nkowaokwu#704

* chore: update auth tests nkowaokwu#704

* chore: clean up nkowaokwu#704
* chore: define login business logic nkowaokwu#715

* chore: update login test nkowaokwu#715

* chore: update login controller nkowaokwu#715

* Update __tests__/auth.test.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update __tests__/auth.test.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: sync fixes nkowaokwu#750

* Update src/shared/constants/Developers.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/siteConstants.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: convert siteConstants to typescript

* chore: update dotenv

* chore: update environment variables

* chore: update environment variables

* Update @types/environment.d.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

---------

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>
…aokwu#752)

* chore: create logout developer endpoint; add test nkowaokwu#751

* chore: add logout business logic nkowaokwu#751

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/routers/router.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: sync updates nkowaokwu#751

---------

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>
* chore: add dashboard design nkowaokwu#753

* chore: sync updates nkowaokwu#753

* chore: add translations nkowaokwu#753
@davydocsurg davydocsurg force-pushed the 757-implement-profile-page-design branch from a813206 to 3154fcb Compare October 24, 2023 08:42
Copy link
Collaborator

@ijemmao ijemmao left a comment

Choose a reason for hiding this comment

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

this is great start! make sure that you write Jest tests for the following components:

  • DashboardHeader.tsx
  • SidebarContext.tsx
  • SidebarItem.tsx
  • UserInfo.tsx
  • dashboard.tsx
  • profile.tsx

src/pages/components/DashboardHeader/DashboardHeader.tsx Outdated Show resolved Hide resolved
src/pages/components/DashboardHeader/DashboardHeader.tsx Outdated Show resolved Hide resolved
src/pages/components/DashboardHeader/DashboardHeader.tsx Outdated Show resolved Hide resolved
src/pages/components/DashboardHeader/DashboardHeader.tsx Outdated Show resolved Hide resolved
src/pages/components/DashboardHeader/DashboardHeader.tsx Outdated Show resolved Hide resolved
src/pages/components/UserInformation/UserInfo.tsx Outdated Show resolved Hide resolved
import React from 'react';
import { Box, Text, useBreakpointValue } from '@chakra-ui/react';

const UserInfo: React.FC = function UserInfo() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

instead of hardcoding these values, it's probably expected that this UserInfo component will take these values (i.e. name, email, date joined) in as props

update this component so that these values are props instead of hardcoded

Copy link
Author

Choose a reason for hiding this comment

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

Sure. However, I'll need to integrate the auth endpoint to do this. Still on designs now, I'll update ASAP.

src/pages/dashboard.tsx Outdated Show resolved Hide resolved
src/pages/profile.tsx Outdated Show resolved Hide resolved
src/pages/profile.tsx Outdated Show resolved Hide resolved
@gitguardian
Copy link

gitguardian bot commented Oct 25, 2023

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@davydocsurg davydocsurg force-pushed the 757-implement-profile-page-design branch from 19fa4e0 to 2e4624e Compare October 25, 2023 10:17
@davydocsurg davydocsurg force-pushed the 757-implement-profile-page-design branch 9 times, most recently from 806d6a6 to 56a0531 Compare November 9, 2023 16:56
davydocsurg and others added 15 commits November 24, 2023 11:20
* chore: fix tests; create login endpoint nkowaokwu#704

* chore: fix authorization bugs nkowaokwu#704

* chore: update auth tests nkowaokwu#704

* chore: clean up nkowaokwu#704
* chore: define login business logic nkowaokwu#715

* chore: update login test nkowaokwu#715

* chore: update login controller nkowaokwu#715

* Update __tests__/auth.test.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update __tests__/auth.test.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: sync fixes nkowaokwu#750

* Update src/shared/constants/Developers.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/controllers/auth/login.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/siteConstants.js

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: convert siteConstants to typescript

* chore: update dotenv

* chore: update environment variables

* chore: update environment variables

* Update @types/environment.d.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

---------

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>
…aokwu#752)

* chore: create logout developer endpoint; add test nkowaokwu#751

* chore: add logout business logic nkowaokwu#751

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/middleware/authenticated.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* Update src/routers/router.ts

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>

* chore: sync updates nkowaokwu#751

---------

Co-authored-by: Ijemma Onwuzulike <ijemmaonwuzulike10@gmail.com>
@davydocsurg davydocsurg force-pushed the 757-implement-profile-page-design branch from 56a0531 to da7ca47 Compare November 26, 2023 01:28
@davydocsurg davydocsurg force-pushed the 757-implement-profile-page-design branch from 79a6a6f to 6f54cf7 Compare December 20, 2023 07:39
@ijemmao ijemmao force-pushed the io/developer-dashboard branch 6 times, most recently from fb6ed0f to 1f29c6c Compare March 24, 2024 02:00
@ijemmao ijemmao force-pushed the io/developer-dashboard branch 2 times, most recently from c9ef97f to 8d08544 Compare May 5, 2024 21:14
@Sir-Peace
Copy link

You need it in Igbo Language?

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.

None yet

5 participants