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

Release latest to PROD #1009

Merged
merged 11 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style" : ["warn", {
"multiline": {
"delimiter": "none",
Expand Down
38 changes: 38 additions & 0 deletions .github/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"
references:
- dev
categories:
- title: "🚀 Features"
labels:
- "Type: Feature"
- "Type: Enhancement"
- title: "🐛 Bug Fixes"
labels:
- "Type: Bug"
- title: "🧰 Maintenance"
label:
- "Type: Maintenance"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- "Release: Major"
minor:
labels:
- "Release: Minor"
patch:
labels:
- "Release: Patch"
default: patch
exclude-labels:
- "skip-changelog"
template: |
## Changelog

$CHANGES

🙏 A big thank you to all the contributors to this release:

$CONTRIBUTORS
18 changes: 18 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- dev
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/stage_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release Staging
on:
push:
branches:
- "stage"
- "dev"

jobs:
build:
Expand Down
674 changes: 674 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
"build:files-ui": "yarn wsrun -p files-ui -c build",
"release:files-ui": "yarn wsrun -p files-ui -c release",
"start:files-ui": "yarn wsrun -p files-ui -c start",
"build:files-landing": "yarn wsrun -p files-landing-page -c build",
"release:files-landing": "yarn wsrun -p files-landing-page -c release",
"start:files-landing": "yarn wsrun -p files-landing-page -c start",
"build:chainsafex": "yarn wsrun -p chainsafex -c build",
"release:chainsafex": "yarn wsrun -p chainsafex -c release",
"start:chainsafex": "yarn wsrun -p chainsafex -c start",
Expand Down
7 changes: 7 additions & 0 deletions packages/common-components/src/Icons/icons/Grid.icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from "react"
import createSvgIcon from "../createSvgIcon"
import { ReactComponent as GridSvg } from "../svgs/grid.svg"

export { GridSvg }

export default createSvgIcon(<GridSvg />)
7 changes: 7 additions & 0 deletions packages/common-components/src/Icons/icons/Table.icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from "react"
import createSvgIcon from "../createSvgIcon"
import { ReactComponent as TableSvg } from "../svgs/table.svg"

export { TableSvg }

export default createSvgIcon(<TableSvg />)
2 changes: 2 additions & 0 deletions packages/common-components/src/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export { default as FolderFilledIcon, FolderFilledSvg } from "./icons/FolderFill
export { default as FullscreenIcon, FullscreenSvg } from "./icons/Fullscreen.icon"
export { default as GithubLogoIcon, GithubLogoSvg } from "./icons/GithubLogo.icon"
export { default as GoogleLogoIcon, GoogleLogoSvg } from "./icons/GoogleLogo.icon"
export { default as GridIcon, GridSvg } from "./icons/Grid.icon"
export { default as HomeIcon, HomeSvg } from "./icons/Home.icon"
export { default as InfoCircleIcon, InfoCircleSvg } from "./icons/InfoCircle.icon"
export { default as JcbCardIcon, JcbCardSvg } from "./icons/JcbCard.icon"
Expand All @@ -59,6 +60,7 @@ export { default as SettingIcon, SettingSvg } from "./icons/Setting.icon"
export { default as ShareAltIcon, ShareAltSvg } from "./icons/ShareAlt.icon"
export { default as StarIcon, StarSvg } from "./icons/Star.icon"
export { default as SunIcon, SunSvg } from "./icons/Sun.icon"
export { default as TableIcon, TableSvg } from "./icons/Table.icon"
export { default as UploadIcon, UploadSvg } from "./icons/Upload.icon"
export { default as UnionpayCardIcon, UnionpayCardSvg } from "./icons/UnionpayCard.icon"
export { default as UserIcon, UserSvg } from "./icons/User.icon"
Expand Down
6 changes: 6 additions & 0 deletions packages/common-components/src/Icons/svgs/grid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/common-components/src/Icons/svgs/table.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/common-contexts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@chainsafe/browser-storage-hooks": "^1.0.1",
"@chainsafe/files-api-client": "1.9.0-rc1",
"@chainsafe/files-api-client": "1.9.0",
"axios": "^0.21.1",
"uuid": "^8.3.1"
},
Expand Down
23 changes: 7 additions & 16 deletions packages/common-contexts/src/UserContext/UserContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type Profile = {
lastName?: string
publicAddress?: string
email?: string
createdAt?: Date
}

interface IUserContext {
Expand Down Expand Up @@ -41,7 +42,8 @@ const UserProvider = ({ children }: UserContextProps) => {
firstName: profileApiData.first_name,
lastName: profileApiData.last_name,
email: profileApiData.email,
publicAddress: profileApiData.public_address
publicAddress: profileApiData.public_address,
createdAt: profileApiData.created_at
}
setProfile(profileState)
return Promise.resolve()
Expand All @@ -52,21 +54,12 @@ const UserProvider = ({ children }: UserContextProps) => {

useEffect(() => {
if (isLoggedIn) {
const retrieveProfile = async () => {
try {
await refreshProfile()
} catch (err) {
console.error(err)
}
}
retrieveProfile()
refreshProfile()
.catch(console.error)
}
}, [isLoggedIn, refreshProfile])

const updateProfile = async (
firstName?: string,
lastName?: string
) => {
const updateProfile = async (firstName?: string, lastName?: string) => {
if (!profile) return Promise.reject("Profile not initialized")

try {
Expand All @@ -92,9 +85,7 @@ const UserProvider = ({ children }: UserContextProps) => {
}
}

const removeUser = () => {
setProfile(undefined)
}
const removeUser = useCallback(() => setProfile(undefined), [])

const getProfileTitle = () => {
if (profile?.publicAddress) {
Expand Down
2 changes: 1 addition & 1 deletion packages/common-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chainsafe/common-theme",
"version": "1.0.9",
"version": "1.0.10",
"description": "Chainsafe Common React Theming Engine",
"author": "Chainsafe Products Team",
"license": "GPL-3.0",
Expand Down
14 changes: 0 additions & 14 deletions packages/files-landing-page/.linguirc

This file was deleted.

9 changes: 0 additions & 9 deletions packages/files-landing-page/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/files-landing-page/craco.config.js

This file was deleted.

61 changes: 0 additions & 61 deletions packages/files-landing-page/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/files-landing-page/public/_redirects

This file was deleted.

Binary file removed packages/files-landing-page/public/csf_logo.png
Binary file not shown.
32 changes: 0 additions & 32 deletions packages/files-landing-page/public/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions packages/files-landing-page/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/files-landing-page/public/robots.txt

This file was deleted.

Loading