Code Monkey home page Code Monkey logo

website-goals's People

Stargazers

Andrzej Dubiel avatar

Watchers

James Cloos avatar Ankush Dharkar avatar Nikhil Bhandarkar avatar  avatar Swaraj Rajpure avatar Vaibhav Desai avatar

website-goals's Issues

Setup local ssl proxy

Currently when running dev mode, we have to manually redirect port 3000 to 443 using something like

npx local-ssl-proxy --source 443 --target 3000

For us to run the website in custom local domain and avoid CORS error. Read more about cors

We want to automatically redirect port 3000 to 433 when running

yarn run dev

You can check the setup at website-my for reference

If you face any problem please message in #๐Ÿ”ฎgoals-site-vue

Create goal data layer

  • Setup Pinia

  • Setup Pinia-orm

  • Setup User repository, model, interface and adapter

  • Setup Goal repository. interface and adapter

  • Setup UserGoal repository, interface and adapter

  • Setup goals modal

Upgrade packages + Housekeeping

 core-js                  ^3.9.1  โ†’  ^3.20.2
 nuxt                    ^2.15.3  โ†’  ^2.15.8
 @nuxtjs/eslint-config    ^6.0.0  โ†’   ^8.0.0
 eslint                  ^7.22.0  โ†’   ^8.6.0
 eslint-config-prettier   ^8.1.0  โ†’   ^8.3.0
 eslint-plugin-nuxt       ^2.0.0  โ†’   ^3.1.0
 eslint-plugin-prettier   ^3.3.1  โ†’   ^4.0.0
 eslint-plugin-vue        ^7.7.0  โ†’   ^8.2.0
 prettier                 ^2.2.1  โ†’   ^2.5.1๏ปฟ

Goal PRD

User Story

  • As a user, I should be able to view all public goal to keep thing transparent.
  • As a user, I should be able to view all goals assigned to me in a click.
  • As a user, I should be able to create a new goal for myself.
  • As a user, I should be able to edit my goals.

Super user

  • As a superuser, I should be able to view all public goals.
  • As a superuser, I should be able to filter/sort based on created at, status, and assigned to better keep track of goals.
  • As a superuser, I should be able to create new goals with just the title of goal to keep things convenient.
  • As a superuser, I should be able to assign people goals.
  • As a superuser, I should be able to update the details of any public goal.

As a superuser, I should be able to create goal templates, to reuse goal details.

Authentication Flow

  • (Django) Goal Authentication middleware
  • (Vue) Frontend authentication sync
  • (Node js) RDS backend sync
    image

Authorization

  • Authorization middleware

image

Migrate to nuxt 3

  • Upgrade to Nuxt 3
  • Upgrade to Vuetify 3 (necessary)
  • Upgrade to Pinia (recommended)

Dark mode for goals site

Enabling Dark Mode for Goals site
working member - Pavan

Sample picture of Welcome site before and after enabling dark mode attached for reference

Before -
image

After -
image

Goal Schemas

Types

Goal

id; String
title: String
description: String
type: String
resources: Array
createdBy: Timestamp
createdAt: Timestamp
access: Array

UserGoal

goalId: String
userId: String
startOn: timestamp
endOn: timestamp
percentageCompleted: Integer
assignedBy: String
status: String
deferUntil: timestamp

Advantage

  • Goals should be reusable
  • Should be as configurable as possible
  • Data should be normalized
  • User model shouldn't be affected

Setup MSW

Mock Service Worker (MSW) is a seamless REST/GraphQL API mocking library for browsers and Node.js.

[RFC] Goal Site initial release

Target

  • Create Goals by super_user.
  • Assign goals to different users by super_user. Goals should be reusable.
  • Display list of goals to user.
  • Mark as complete by app_owner or super_user.
  • Standard RDS Navbar.

Guidelines

  • Use atomic components following RDS design system.
  • Tests must be included in the same PR.
  • PR should as small as possible.

Stop tests on push

Issue

  • When a PR is created, the git workflow runs tests on all the pull requests, but once the tests are run on pull requests they run again during push

When was the issue discovered?

  • The issue was discovered on 18th August 2022 during a hangout call while trying to merge PRs.

Files that might be creating this

  • .github/workflows/test.yml

Screenshot of the Problem

image

Upgrade packages for Goals site

-To check for the list of packages which are being used in package.json and upgrade it to the latest available version.
-Also verify if the build remains stable after upgradation.

Standardize Navbar across Real Dev Squad

Navbars on different sites(sub-domains of RDS) are different as of now.

We need to make it look similar and familiar to the user. So we are going to redesign it.

Design of New Navbar:

https://www.figma.com/file/bpFHG9hXM13GSLmTkoNsrF/Navbar?node-id=0%3A1

For CSS, refer to the link below

https://github.com/Real-Dev-Squad/website-www/blob/develop/css/navbar.css

Few Details

  • font : Roboto
  • weight: 700
  • active color : #49A82E
  • hover color : #49A82E
  • font size : 16 px (try making it in rem)
  • active underline height : 3px (color : #49A82E)

Pay Attention

=> Underline should be under the text as shown in the image and not inside the container in which the text persists.
=> Underline should be only under the active tab, it should not be visible on hover.
=> The full navbar should be changed to the toggle menu when the screen width is less than 970px.
=> User should be directed to my.realdevsquad.com on clicking User Greet

There might be slight changes for different domains and you are free to ask in the comments for that

Refer to Real-Dev-Squad/website-members#265 for more insights.

Setup Husky

  • Install Husky
  • Setup husky
  • Setup auto lint

Update setup to use TS

Since this codebase has been not updated for a while, please update all the packages to use what the official setup recommends.

Also, please update the config to start using TS here.

Setup PR template

template to be used

### Issue:

### Description:

### Anything you would like to inform the reviewer about:

### Dev Tested:
- [ ] Yes
- [ ] No

### Put the Feature behind Feature Flag
- [ ] Yes
- [ ] No

### Test Stats

### Images/video of the change:

### Follow-up Issues (if any):

> NOTE: After your PR is merged in main please verify its working on prod and raise a dev to main PR

For reference on how to do the same, you can check website-status

NOTE: If you face any problem please message in #๐Ÿ”ฎgoals-site-vue

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.