Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into new-master
Browse files Browse the repository at this point in the history
  • Loading branch information
vinzscam committed Feb 3, 2025
2 parents d928675 + 9c5b2f2 commit 77c855e
Show file tree
Hide file tree
Showing 88 changed files with 11,846 additions and 10,681 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['react-app'],
plugins: ['prettier', '@emotion'],
rules: {
'prettier/prettier': 'error',
'jsx-a11y/accessible-emoji': 'off',
'import/no-anonymous-default-export': 'off',
'react-hooks/exhaustive-deps': 'off',
},
overrides: [
{
files: ['src/__tests__/**/*'],
env: {
jest: true,
},
},
],
}
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @backstage/reviewers @vinzscam
* @lucasbento @pvinis @kelset
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:

steps:
- name: ⬇️ Checkout repository code
uses: actions/[email protected]
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16'

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -25,7 +29,8 @@ jobs:
run: yarn build

- name: 🚀 Deploy
uses: JamesIves/[email protected]
uses: JamesIves/github-pages-deploy-action@v4

with:
branch: gh-pages
folder: build
37 changes: 10 additions & 27 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repository code
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16'

- name: ⬆️ Upload output
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
path: ./**
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Restore output
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}

Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Restore output
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}

Expand All @@ -46,12 +46,15 @@ jobs:
- name: Run lint
run: yarn lint

- name: Run typecheck
run: yarn typecheck

test:
needs: [setup, install]
runs-on: ubuntu-latest
steps:
- name: ⬇️ Restore output
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}

Expand All @@ -60,23 +63,3 @@ jobs:

- name: Run tests
run: yarn test --runInBand

test-e2e:
needs: [setup, install]
runs-on: ubuntu-latest
if: ${{ !always() }}
steps:
- name: ⬇️ Restore output
uses: actions/download-artifact@v2
with:
name: ${{ github.sha }}

- name: Run e2e tests
run: yarn test-e2e

- name: ⬆️ Upload output
uses: actions/upload-artifact@v2
if: always()
with:
name: image-comparisons
path: ./src/__tests__/__image_snapshots__/__diff_output__/
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.19.1
9 changes: 9 additions & 0 deletions @types/emotion.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import '@emotion/react'

import { Theme as EmotionTheme } from '../src/theme'

export {}

declare module '@emotion/react' {
export interface Theme extends EmotionTheme {}
}
8 changes: 8 additions & 0 deletions @types/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface Window {}

interface Process {
env: {
PUBLIC_URL: string
NODE_ENV: 'development' | 'production'
}
}
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
</a>
</p>

![Image showing a screenshot of Upgrade Helper with the phrase "You are gonna love this!"](https://user-images.githubusercontent.com/6207220/61382138-7a3a6780-a8ac-11e9-8c74-b4cb4830e131.png)

## ⚙️ How to use

[![How to upgrade using upgrade-helper](https://img.youtube.com/vi/fmh_ZGHh_eg/0.jpg)](https://www.youtube.com/watch?v=fmh_ZGHh_eg)

## 🎩 How it works

The **Upgrade Helper** tool aims to provide the full set of changes happening between any two versions, based on the previous work done in the [upgrade-helper-diff](https://github.com/backstage/upgrade-helper-diff) project:
Expand Down Expand Up @@ -49,6 +55,8 @@ This project is a fork of [React Native Upgrade Helper](https://github.com/react

This project proudly uses [`rn-diff-purge`](https://github.com/react-native-community/rn-diff-purge), [`react-diff-view`](https://github.com/otakustay/react-diff-view) and [`create-react-app`](https://github.com/facebook/create-react-app).

## 📝 License
## 📝 License & CoC

This project is released under the [MIT license](./LICENSE).

This project is released under the MIT license (check the LICENSE and NOTICE files for details).
Morerover, this projects adopts the [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md) and all contributors are expected to follow it.
10 changes: 8 additions & 2 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
const { override, addBabelPreset } = require('customize-cra')
const { addReactRefresh } = require('customize-cra-react-refresh')

const ignoreWarnings = (value) => (config) => {
config.ignoreWarnings = value
return config
}

module.exports = override(
addBabelPreset('@emotion/babel-preset-css-prop'),
addReactRefresh({ disableRefreshCheck: true })

// Ignore warnings about the react-diff-view sourcemap files.
ignoreWarnings([/Failed to parse source map/])
)
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.(js|jsx|ts|tsx)?$': 'ts-jest',
},
transformIgnorePatterns: ['<rootDir>/node_modules/'],
testMatch: ['<rootDir>>/__tests__/**/*.spec.(js|jsx|ts|tsx)'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
}
3 changes: 3 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
node = "22"
yarn = "1.22.22"
Loading

0 comments on commit 77c855e

Please sign in to comment.