Skip to content

Commit f9bb961

Browse files
committed
Revert "squash 3e5fb05...e295be7"
This reverts commit 96a267e.
1 parent 96a267e commit f9bb961

File tree

3,319 files changed

+23861
-202171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,319 files changed

+23861
-202171
lines changed

.editorconfig

-17
This file was deleted.

apps/web/.env .env

File renamed without changes.
File renamed without changes.

.eslintignore

-8
This file was deleted.

apps/web/.eslintrc.js .eslintrc.js

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ rulesDirPlugin.RULES_DIR = 'eslint_rules'
99
module.exports = {
1010
extends: ['@uniswap/eslint-config/react'],
1111
plugins: ['rulesdir'],
12-
13-
rules: {
14-
// TODO: had to add this rule to avoid errors on monorepo migration that didnt happen in interface
15-
'cypress/unsafe-to-chain-command': 'off',
16-
},
17-
1812
overrides: [
1913
{
2014
files: ['**/*'],

.firebaserc

-5
This file was deleted.

.gitattributes

-3
This file was deleted.

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @uniswap/web-reviewers

.github/ISSUE_TEMPLATE/bug-report.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug Report
3+
about: Describe an issue in the Uniswap Interface
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Bug Description**
10+
A clear and concise description of the bug.
11+
12+
**Steps to Reproduce**
13+
14+
1. Go to ...
15+
2. Click on ...
16+
...
17+
18+
**Expected Behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Additional Context**
22+
Add any other context about the problem here (screenshots, whether the bug only occurs only in certain mobile/desktop/browser environments, etc.)

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Support
4+
url: https://discord.gg/FCfyBSbCU5
5+
about: Please ask and answer questions here
6+
- name: List a token
7+
url: https://github.com/Uniswap/default-token-list#adding-a-token
8+
about: Any requests to add a token to Uniswap should go here
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for improving the UX of the Uniswap Interface
4+
title: ''
5+
labels: 'improvement'
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/actions/report/action.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Report
2+
description: Report test failures via Slack
3+
inputs:
4+
name:
5+
description: The name of the failing test
6+
required: true
7+
SLACK_WEBHOOK_URL:
8+
description: The webhook URL to send the report to
9+
required: true
10+
11+
runs:
12+
using: composite
13+
steps:
14+
- uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
15+
with:
16+
payload: |
17+
{
18+
"text": "${{ inputs.name }} failing on `${{ github.ref_name }}`",
19+
"blocks": [
20+
{
21+
"type": "section",
22+
"text": {
23+
"type": "mrkdwn",
24+
"text": "*${{ inputs.name }} failing on `${{ github.ref_name }}`:* <https://github.com/${{ github.repository}}/actions/runs/${{ github.run_id }}|view failing action>"
25+
}
26+
},
27+
{
28+
"type": "section",
29+
"text": {
30+
"type": "mrkdwn",
31+
"text": "_This is blocking pull requests and branch promotions._\n_Please prioritize fixing the build._"
32+
}
33+
}
34+
]
35+
}
36+
env:
37+
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
38+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
39+
# The !oncall bot requires its own message:
40+
- uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
41+
with:
42+
payload: |
43+
{
44+
"text": "!oncall web"
45+
}
46+
env:
47+
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
48+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

.github/actions/setup/action.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Setup
2+
description: checkout repo, setup node, and install node_modules
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: actions/checkout@v3
8+
9+
- uses: actions/setup-node@v3
10+
with:
11+
node-version: 18
12+
registry-url: https://registry.npmjs.org
13+
# cache is intentionally omitted, as it is faster with yarn v1 to cache node_modules.
14+
15+
- uses: actions/cache@v3
16+
id: install-cache
17+
with:
18+
# node_modules/.cache is intentionally omitted, as this is used for build tool caches.
19+
path: |
20+
node_modules
21+
!node_modules/.cache
22+
key: ${{ runner.os }}-install-${{ hashFiles('yarn.lock') }}
23+
- if: steps.install-cache.outputs.cache-hit != 'true'
24+
run: yarn install --frozen-lockfile --ignore-scripts
25+
shell: bash
26+
27+
# Run patch-package to apply patches to dependencies.
28+
- run: yarn patch-package
29+
shell: bash
30+
31+
# Contracts are compiled from source. If source hasn't changed, the contracts do not need to be re-compiled.
32+
- uses: actions/cache@v3
33+
id: contracts-cache
34+
with:
35+
path: |
36+
src/abis/types
37+
src/types/v3
38+
key: ${{ runner.os }}-contracts-${{ hashFiles('src/abis/**/*.json', 'node_modules/@uniswap/**/artifacts/contracts/**/*.json') }}
39+
- if: steps.contracts-cache.outputs.cache-hit != 'true'
40+
run: yarn contracts
41+
shell: bash
42+
43+
# These operations cannot be cached, so they are run concurrently
44+
# - ajv: Validators compile quickly, so caching can be omitted.
45+
# - graphql: GraphQL is generated from schema and client-side graphql queries. The schema is always fetched and
46+
# changes to client-side queries are hard to detect, so it is always re-generated.
47+
# - i18n: Messages are extracted from source and compiled. No caching extractor is available (out-of-the-box).
48+
- run: yarn concurrently --max-processes=100% npm:ajv npm:graphql npm:i18n
49+
shell: bash

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
# Files stored in repository root
5+
directory: '/'
6+
schedule:
7+
interval: 'daily'
8+
allow:
9+
- dependency-name: '@uniswap/default-token-list'
10+
- dependency-name: '@uniswap/token-lists'
11+
reviewers:
12+
- 'Uniswap/dependabot-reviewers'

.github/pull_request_template.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!-- Your PR title must follow conventional commits: https://github.com/Uniswap/interface#pr-title -->
2+
3+
## Description
4+
<!-- Summary of change, including motivation and context. -->
5+
<!-- Use verb-driven language: "Fixes XYZ" instead of "This change fixes XYZ" -->
6+
7+
8+
<!-- Delete inapplicable lines: -->
9+
_Linear ticket:_
10+
_Slack thread:_
11+
_Relevant docs:_
12+
13+
14+
<!-- Delete this section if your change does not affect UI. -->
15+
## Screen capture
16+
17+
### Before
18+
| Mobile | Desktop |
19+
| ------------ | ------------ |
20+
| paste_before | paste_before |
21+
22+
23+
### After
24+
| Mobile | Desktop |
25+
| ------------ | ----------- |
26+
| paste_after | paste_after |
27+
28+
29+
## Test plan
30+
31+
<!-- Delete this section if your change is not a bug fix. -->
32+
### Reproducing the error
33+
34+
<!-- Include steps to reproduce the bug. -->
35+
1.
36+
37+
### QA (ie manual testing)
38+
39+
<!-- Include steps to test the change, ensuring no regression. -->
40+
- [ ] N/A
41+
42+
43+
#### Devices
44+
<!-- If applicable, include different devices and screen sizes that may be affected, and how you've tested them. -->
45+
46+
47+
### Automated testing
48+
49+
<!-- If N/A, check and note so it is obvious to your reviewers and does not show up as an incomplete task. -->
50+
<!-- eg - [x] Unit test N/A -->
51+
- [ ] Unit test
52+
- [ ] Integration/E2E test
+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: 1 | Push main -> staging
2+
3+
# This CI job is responsible for pushing the current contents of the `main` branch to the
4+
# `releases/staging` branch, which will in turn kick off a deploy to the staging environment.
5+
6+
on:
7+
workflow_dispatch:
8+
9+
# https://stackoverflow.com/questions/57921401/push-to-origin-from-github-action
10+
jobs:
11+
push-staging:
12+
name: 'Push to staging branch'
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: push/staging
16+
steps:
17+
- name: Check test status
18+
uses: actions/[email protected]
19+
with:
20+
script: |
21+
const statuses = await github.rest.repos.listCommitStatusesForRef({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
ref: context.sha
25+
})
26+
const status = statuses.data.find(status => status.context === 'Test / promotion')?.state || 'missing'
27+
core.info('Status: ' + status)
28+
if (status !== 'success') {
29+
core.setFailed('"Test / promotion" must be successful before pushing')
30+
}
31+
32+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
33+
with:
34+
token: ${{ secrets.RELEASE_SERVICE_ACCESS_TOKEN }}
35+
ref: main
36+
37+
# The source file must exist for the corresponding translation messages to be downloaded.
38+
- run: touch src/locales/en-US.po
39+
- name: Download translations
40+
uses: crowdin/github-action@3133cc916c35590475cf6705f482fb653d8e36e9
41+
with:
42+
upload_sources: false
43+
download_translations: true
44+
project_id: 458284
45+
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
46+
source: 'src/locales/en-US.po'
47+
translation: 'src/locales/%locale%.po'
48+
localization_branch_name: main
49+
create_pull_request: false
50+
push_translations: false
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Git config
55+
run: |
56+
git config user.name 'UL Service Account'
57+
git config user.email '[email protected]'
58+
59+
- name: Add translations
60+
run: |
61+
rm src/locales/en-US.po
62+
git add -f src/locales/*.po
63+
git commit -m 'ci(t9n): download translations from crowdin'
64+
65+
- name: Add CODEOWNERS
66+
run: |
67+
echo '* @uniswap/web-admins' > CODEOWNERS
68+
git add CODEOWNERS
69+
git commit -m 'ci: add global CODEOWNERS'
70+
71+
- name: Git push
72+
run: |
73+
git push origin main:releases/staging --force

0 commit comments

Comments
 (0)