Giter Club home page Giter Club logo

skill-tree-frontend's Introduction

skill-tree-frontend's People

Contributors

achintya-chatterjee avatar ankushdharkar avatar arpit01923 avatar bhtibrewal avatar dependabot[bot] avatar iamitprakash avatar manish591 avatar prakashchoudhary07 avatar pratiyushkumar avatar sahsisunny avatar satyam73 avatar suhaasya avatar

Watchers

 avatar  avatar

skill-tree-frontend's Issues

Setup staging environment.

Setup a staging environment

Manage continuous deployment
Get the site live after confirming the name.

[Deployment] Steps for Skill tree frontend production deployment | Vercel

Setup for production

Branch - main
Build command - yarn build:production

Note: Choose build command and branch according to the environment we're deploying for. Please check above, branch and build command for production deployment.

Steps to deploy

  • Go to vercel dashboard https://vercel.com/dashboard
  • Click on Add New button on dashboard page of Vercel.
    image
  • Select Project from the menu.
    image
  • Search repository Skill-tree-frontend give required permission to vercel to import the repository.
    image
  • Click on import to import repository.
    image
  • Fill all the details as in image below(change build command as per environment we're deploying). Here it's for staging in image.
    image
  • Wait, wait, wait till the deployment gets done.
  • Voila😍 we've successfully deployed our app.
    image
  • Click on go to dashboard then click on visit to check if everything is fine and upto the mark.
    image

Domain will be - https://skilltree.realdevsquad.com/

For configuring domain please refer this link - https://vercel.com/docs/projects/domains/add-a-domain

Change env variables for same build command across different environments

Issue Description

We have to change env variables for same build command across different environments.

Expected Behavior

One build command can be used in any environment and we can use environment variable to check what environment the build has to be generated for.

Current Behavior

Currently we have different build command and env files for different environments, like:
yarn build:production for production
yarn build:staging for staging

Screenshots

n/a

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

n/a

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Integrate API in navbar

Issue Description

Integrate API in navbar

Expected Behavior

It should show user details in navbar.

Current Behavior

Currently we do not show any data in navbar that is API is not integrated.

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

setup react-query and msw

Requirements

  • Add the react-query library in the project for API calls and caching
  • write tests for the same using msw

Fix Details Slide over in mobile view and add transitions

Description

  • currently the Details slide over opens with a snap, adding transition to it
  • Fix the UI for the Details slide over on mobile device
  • add feedback on hover on in the table
  • open the slideover on clicking the table row

Create navbar for the app

Issue Description

We have to create a navbar for the app which can be used to navigate the web app.

Expected Behavior

It should have navbar for easy navigation between app's pages and screens.

Current Behavior

As of now we don't have navbar present in our app.

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

n/a

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

[Enhancement]: Setup the issue description template for contributor

Description:

  • Currently any new user who comes up to this repository and reports a new issue ticket, we don't have a template. For a better user and contributor experience, shall we add a template for ease process?

Potential Solution:

  • Let's setup a GitHub actions for the same? Or else we can create a md file and from settings we can manually mark that file as template. Let's discuss more on it.

Screenshots:

[FE]implement filter on the Endorsement board UI

Dropdown to selected user and skill and then filter endorsement based on it
also filter based on endorsement status - APPROVED/ PENDING/ REJECTED

Figma: https://www.figma.com/file/NoGWCSYI5qF1CGmwn0XKQH/skill-tree?type=design&node-id=23-895&mode=design&t=4pFn6Bo7XxeFyIJK-0
Design and Implementation Discussion should be documented before starting work on the task

Additional Info

Ask your doubts at https://discord.com/channels/673083527624916993/1114589148901294150

Update yarn lock file as per latest yarn version and add next static export configuration in next config file

Issue Description

We have to update the yarn lock file as per the latest yarn version present in our package.json to avoid any dependency versions conflicts, and also update the next.config.js for static export.

Expected Behavior

yarn lock file should be updated and next config file should be updated so as to export the static build.

Current Behavior

yarn lock file is not updated and configs are not set in next config file.

Screenshots

n/a

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Frontend setups

Description

  • Setup Readme
  • Setup staging environment
  • Setup prod environment

FEAT: Create add endorsements page with API integrations

Overview

We have to create a page where users can create endorsements for others as well as themselves. We can create an endorsement for users by selecting their username and skill with a description.

User Story

  • As a user I can create endorsement of myself or for others.
  • As a user I can search the "user" for creating endorsement with a dropdown type search component.
  • As a user I can select the skill from the dropdown type search component while creating an endorsement.
  • As a user I can create skills if not found from the dropdown type search component and then create the endorsement.
  • As a user I should be able to add description to my endorsement for additional details about the endorsements I am creating.

Requirements

  • Follow TDD for the feature.

Reference(Images, Design, Links etc.)

Note: Design will be slightly updated

Figma link - https://www.figma.com/file/NoGWCSYI5qF1CGmwn0XKQH/skill-tree?type=design&node-id=951-80&mode=design&t=w7utit7YDK44Cotx-0

Acceptance Criteria

  • User can create endorsement of theirself or for others.
  • User can search the user for creating endorsements with a dropdown type search component.
  • User can select the skill from dropdown type search component.
  • User can create skill if not found from dropdown type search component.
  • User should be able to fill description while creating endorsement.

Scope

  • User can create endorsement of theirself or for others.
  • User can search the user for creating endorsements with a dropdown type search component.
  • User can select the skill from dropdown type search component.
  • User can create skill if not found from dropdown type search component.
  • User should be able to fill description while creating endorsement.

Note

  • As of now we're only making for adding upvote/downvote(removing will be done later*)
  • Do not add this to so that user can create this endorsement and skills.
  • Built with the set of skills as of now instead of creating a skill(like user can create React/ReactJS, which will be handling in separate issue).
  • Add validations for inputs

Remove fetch from hooks

Issue Description

Right now we're using fetch at some places but we should use axios instead of fetch.

Expected Behavior

It should use axios instead of fetch.

Current Behavior

It is using fetch at some places.

Screenshots

n/a

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Add search functionality for endorsements

Issue Description

More details to be filled

Expected Behavior

Current Behavior

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Add query hook with react query for self user details

Issue Description

Add query hook with react query for self user details

Expected Behavior

Add query hook with react query for self user details

Current Behavior

Add query hook with react query for self user details

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Setup volta on the skill-tree-frontend repo

Issue Description

As part of our ongoing efforts to optimize our development environment and streamline our workflow, we must integrate Volta into our Skill-Tree-Frontend repository. Volta offers a sophisticated solution for managing JavaScript command-line tools, ensuring consistency and efficiency across our projects.

Expected Behavior

Upon successful integration of Volta, our team members should experience a seamless transition between projects, with Volta automatically managing the versioning of tools like Node, npm, and Yarn based on the project's requirements.

Current Behavior

At present, our development environment lacks the benefits of Volta integration, leading to potential discrepancies in tool versions across projects and the manual effort required to manage dependencies.

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

  1. Navigate to the root directory of the project.
  2. Open the package.json file and you'll see volta is missing

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

This integration aligns with our goal of standardizing development practices and enhancing collaboration within our team. By leveraging Volta's capabilities, we anticipate significant improvements in development efficiency and reduced dependency management overhead.

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

[PROD-DEPLOYMENT] Skill Tree Frontend in Cloudflare

[PROD-DEPLOYMENT] Skill Tree of Cloudflare

Branch - main
Repo - skill-tree-frontend

Environment Variables

NODE_VERSION = 20.11.1
YARN_VERSION = 4.1.1
NEXT_PUBLIC_APP_ENV = production

Here are the steps for deploying the frontend in Cloudflare with Next js static build export:

  • Go to https://www.cloudflare.com/ and login with your credentials.
  • Go to Workers and Pages in sidebar (image for reference)
    image
  • Click on create application button
    image
  • There is Workers and Pages in tabs, click on Pages
    image
  • Click on Connect to Git button and give necessary permission required for this repository
    image
  • If the permission is already setup with Git or you setted up, the repository will show here as netlify-skilltree is coming
    image
  • Select the project and click on Begin Setup
    image
  • Add this configuration in form
    • Production branch - main
    • Framework preset - Next JS (Static HTML Export)
    • Build command -
    yarn run build
    
    • Build output directory -
    out
    

image

  • Fill this in Environment variables section

NODE_VERSION = 20.11.1
YARN_VERSION = 4.1.1
NEXT_PUBLIC_APP_ENV = production

  • Then click on Save and Deploy button

  • Hurray🥳🥳, we've deployed our site to Cloudflare
    image

  • Click on Continue to project button

  • Now head over to url coming under Production heading if everything is working fine
    image

  • Yep we can see the url and our site in action. Nice✨
    image

  • Next step is to configure our domain on Cloudflare

Domain will be - https://skilltree.realdevsquad.com

Please follow this guide for adding custom domain - https://developers.cloudflare.com/pages/configuration/custom-domains/

Update readme md to newest

Issue Description

Currently the readme file for the project is outddated we have to update this.

Expected Behavior

Currently the readme file for the project is outddated we have to update this. It should have following things in place:

  • Add local ssl proxy steps to setup to use APIs in dev environment
  • Remove staging url from readme.

Current Behavior

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Frontend setup with skill tree backend

Description

Add a simple health check API to frontend to check the overall end-to-end flow.

Acceptance Criteria

  • It should print the API response of the Skill Tree API in frontend

[Changes] - File changes done

issues
Files were not arranged in proper order, resulting in a barrier to creating new pages. so arranged the files in proper order

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.