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

Dev --> Main #460

Merged
merged 44 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7a6ac2c
Convert to ESM
rygine Feb 29, 2024
864f387
Fix vite warning
rygine Feb 29, 2024
311814b
Update caniuse-lite DB
rygine Feb 29, 2024
5db2f55
Upgrade vite and cypress
rygine Mar 1, 2024
f7df310
Remove storybook tooling
rygine Mar 1, 2024
dce49b3
Remove stories
rygine Mar 1, 2024
93c0ce1
Remove unused Docker files
rygine Mar 1, 2024
b361a29
Update GH actions
rygine Mar 1, 2024
4945a88
Merge pull request #451 from xmtp-labs/rygine/type-module
rygine Mar 1, 2024
ce44f89
Remove unused dev deps
rygine Mar 1, 2024
1885af5
Remove unused deps
rygine Mar 1, 2024
523e466
Add NPM override for vite-plugin-rewrite-all
rygine Mar 1, 2024
506dd9e
Merge pull request #452 from xmtp-labs/rygine/upgrade-deps
rygine Mar 1, 2024
9118ae1
Remove more unused deps
rygine Mar 1, 2024
ea2ef0c
Upgrade type deps
rygine Mar 1, 2024
d7ce2c6
Remove another unused dep
rygine Mar 1, 2024
069ebf7
Upgrade CSS deps
rygine Mar 1, 2024
5a531c4
Fix fullscreen on mobile browsers
m-005 Mar 1, 2024
c9cd9f5
Upgrade prettier, add plugin, format files
rygine Mar 1, 2024
01972a9
Upgrade ESLint deps
rygine Mar 1, 2024
6ce454a
Upgrade more dev deps
rygine Mar 1, 2024
1376c4f
Fix types
rygine Mar 1, 2024
a3324f3
Update tsconfig
rygine Mar 1, 2024
53a570c
Merge pull request #454 from xmtp-labs/rygine/dep-updates
rygine Mar 1, 2024
f6d34ef
Merge branch 'dev' into dev
daria-github Mar 1, 2024
d7bf261
Update ignore files
rygine Mar 1, 2024
9fec718
Add node version files
rygine Mar 1, 2024
46c2bf7
Add code of conduct
rygine Mar 1, 2024
71816e4
Update CODEOWNERS
rygine Mar 1, 2024
3138a65
Add VSCode settings, update extensions
rygine Mar 1, 2024
b6593a9
Update GitHub issue templates
rygine Mar 1, 2024
a0638f1
Update GitHub actions
rygine Mar 1, 2024
451a5fe
Update script names for formatting
rygine Mar 1, 2024
ff76c16
Merge pull request #455 from xmtp-labs/rygine/update-ci
rygine Mar 1, 2024
ce314c0
Merge branch 'dev' into dev
rygine Mar 1, 2024
b2babd9
Merge pull request #453 from m-005/dev
rygine Mar 1, 2024
e3c4441
Upgrade React SDK
rygine Mar 1, 2024
6aae90b
Fix inbox tabs
rygine Mar 1, 2024
1df491c
Ensure client before fetching consent list
rygine Mar 3, 2024
40a5986
Do not request snap in demo mode
rygine Mar 3, 2024
c4a5c15
Upgrade viem, wagmi, rainbowkit
rygine Mar 3, 2024
8041cef
Use happy-dom
rygine Mar 3, 2024
5598d1d
Reposition AcceptOrDeny component
rygine Mar 3, 2024
31e7106
Merge pull request #456 from xmtp-labs/rygine/fix-consent
daria-github Mar 12, 2024
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
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"root": true,
"extends": ["xmtp-web"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
"project": "./tsconfig.json"
},
"rules": {
"no-plusplus": "off",
"jsx-a11y/media-has-caption": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-misused-promises": [
"error",
{
Expand Down
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Global rule:
* @xmtp-labs/web
*.md @jhaaaa
*.md @fabriguespe
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Report a bug
description: Report a bug to share an issue you're experiencing.
title: "Bug: "
labels: bug
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to report a bug. Community contributions like yours are key to the development and adoption of XMTP. Review the following guidelines for reporting a bug:
- Include 1 bug per issue. Creating 1 issue per bug will make it easier to assign and track progress on bugs.
- Check [existing issues](https://github.com/xmtp-labs/xmtp-inbox-web/issues) to see if your issue has already been reported.
- Ensure that the bug is not security-related and can safely be disclosed publicly on GitHub. For information about how to report a security issue, see [Security policy](https://github.com/xmtp-labs/xmtp-inbox-web/security/policy).
- Follow the [XMTP code of conduct](https://github.com/xmtp-labs/xmtp-inbox-web/blob/main/CODE_OF_CONDUCT.md).
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: Provide a clear and concise description of the issue. Attach screenshots, if applicable.
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Provide a clear and concise description of the behavior you expected. Attach screenshots, if applicable.
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce the bug
description: Provide a clear and concise description of how to reproduce the bug, including any relevant environment details such as SDK version, browser, OS, and device.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Have questions about how to build with XMTP?
url: https://community.xmtp.org/
about: Ask your question and learn with the community in the XMTP Community Forums.
19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Request a feature
description: Create a feature request to suggest an idea or enhancement.
title: "Feature request: "
labels: enhancement
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to request a feature. Community contributions like yours are key to the development and adoption of XMTP. Review the following guidelines for requesting a feature:
- Include 1 feature request per issue. Creating 1 issue per request will make it easier to explore and assign a priority to a request.
- Check [existing issues](https://github.com/xmtp-labs/xmtp-inbox-web/issues) to see if the feature has already been requested.
- Ensure that the feature is not security-related and can safely be disclosed publicly on GitHub. For information about how to report a security issue, see [Security policy](https://github.com/xmtp-labs/xmtp-inbox-web/security/policy).
- Follow the [XMTP code of conduct](https://github.com/xmtp-labs/xmtp-inbox-web/blob/main/CODE_OF_CONDUCT.md).
- type: textarea
id: problem-description
attributes:
label: Is your feature request related to a problem?
description: Provide a clear and concise description of the problem to be solved.
- type: textarea
id: solution
attributes:
label: Describe the solution to the problem
description: Provide a clear and concise description of what you want to happen to solve the problem.
- type: textarea
id: usecases
attributes:
label: Describe the uses cases for the feature
description: Provide a clear and concise description of the use cases the feature unlocks.
- type: textarea
id: details
attributes:
label: Additional details
description: Add any other details about your feature request. Attach screenshots, if applicable.
69 changes: 69 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Code Checks

on: [pull_request]

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check code format
run: npm run format:check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check types
run: npm run typecheck

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.14.0
node-version-file: ".node-version"
cache: "npm"
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm run dev
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/fmt-check.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/lint.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/publish-docker.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/tests.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ composer.lock
*.swp
*.swo
.projectile
.vscode
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.history
*.vsix
*.tmproj
Expand All @@ -58,5 +60,4 @@ dist

# Environment
.env*
!docker/.env.default

1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19.1
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19.1
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.reflame.config.jsonc
CODEOWNERS
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
"useTabs": false,
"plugins": ["prettier-plugin-packagejson"]
}
19 changes: 0 additions & 19 deletions .storybook/main.ts

This file was deleted.

Loading
Loading