Skip to content

Commit

Permalink
Merge pull request #229 from arconnectio/staging
Browse files Browse the repository at this point in the history
feat: ArConnect 1.2.0 Release
  • Loading branch information
nicholaswma authored Feb 14, 2024
2 parents 46e6b82 + 7295c79 commit 47506a7
Show file tree
Hide file tree
Showing 58 changed files with 5,702 additions and 538 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "production",
"updateInternalDependencies": "patch",
"ignore": []
}
28 changes: 28 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Finalize Versioning and Open PR to Production

on:
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file added assets-beta/icon512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/offline/logo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/offline/logo256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/offline/logo64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/online/logo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/online/logo256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-beta/icons/online/logo64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
151 changes: 150 additions & 1 deletion assets/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"message": "Yes",
"description": "The word \"yes\""
},
"no": {
"message": "No",
"description": "The word \"no\""
},
"accept": {
"message": "Accept",
"description": "Accept terms"
Expand Down Expand Up @@ -391,6 +395,10 @@
"message": "Sign notification",
"description": "Sign notification settings title"
},
"setting_sign_settings": {
"message": "Sign settings",
"description": "Sign settings title"
},
"setting_display_theme": {
"message": "Theme",
"description": "Theme settings title"
Expand Down Expand Up @@ -803,6 +811,14 @@
"message": "Enter password to generate wallet",
"description": "Request to enter password before generating a wallet in settings"
},
"select_recipient" : {
"message": "Select Recipient",
"description": "Select recipient when sending currency"
},
"send_to" : {
"message" : "Send To",
"description" : "Send To for slider menu"
},
"no_close_window": {
"message": "Don't close the window!",
"description": "Request to not close the window"
Expand Down Expand Up @@ -923,6 +939,14 @@
"message": "Manage tokens added by dApps or the user",
"description": "Tokens setting description"
},
"setting_contacts": {
"message": "Contacts",
"description": "Contacts setting title"
},
"setting_contacts_description": {
"message": "Add/edit contacts",
"description": "Contacts setting description"
},
"explore": {
"message": "Explore",
"description": "Explore title"
Expand All @@ -945,6 +969,10 @@
}
}
},
"recents": {
"message" : "Recents",
"description" : "recents for send modal"
},
"all_set": {
"message": "You're all set!",
"description": "All set title"
Expand Down Expand Up @@ -1272,7 +1300,7 @@
"description": "Label for the address input"
},
"transaction_send_address_input_placeholder": {
"message": "Address or ANS name...",
"message": "Address or ArNS name...",
"description": "Placeholder for the address input"
},
"transaction_send_scan_address": {
Expand Down Expand Up @@ -1311,6 +1339,10 @@
"message": "Copy address",
"description": "Click to copy address tooltip"
},
"expand_view": {
"message": "Expand view",
"description": "Click to open extension in a browser tab"
},
"allowance_edit": {
"message": "Edit allowance",
"description": "Edit allowance tooltip"
Expand Down Expand Up @@ -1492,5 +1524,122 @@
"receive_AR_button": {
"message": "Receive AR",
"description": "Button text for the receive AR button"
},
"search_contacts": {
"message": "Search contacts...",
"description": "Search input placeholder for contacts"
},
"add_contact": {
"message": "Add contact",
"description": "Add a contact button text"
},
"send_transaction": {
"message": "Send transaction",
"description": "Active contact send button text"
},
"contact_info": {
"message": "Contact Info",
"description": "Contact settings title"
},
"user_not_in_contacts": {
"message": "This user is not in your contacts.",
"description": "Small message title on transaction confirmation page"
},
"create_contact": {
"message": "Create contact?",
"description": "Create contact question"
},
"add_new_contact": {
"message": "Add a new contact",
"description": "Add a new contact title"
},
"uploaded_avatar": {
"message": "Uploaded avatar to Arweave.",
"description": "Successful upload toast text"
},
"ArNS_address": {
"message": "ArNS Address",
"description": "Contact ArNS address subtitle"
},
"select_ArNS_address": {
"message": "Select ArNS address",
"description": "Select ArNS address text"
},
"no_ArNS_address_found": {
"message": "No ArNS address found",
"description": "No ArNS address found text"
},
"arweave_url": {
"message": "ar://",
"description": "Arweave address for ArNS names"
},
"contact_avatar": {
"message": "Avatar",
"description": "Contact Avatar subtitle"
},
"first_last_name": {
"message": "First and Last name",
"description": "Contact name input placeholder text"
},
"arweave_account_address": {
"message": "Arweave Account Address",
"description": "Contact arweave account address subtitle"
},
"account_address": {
"message": "Account address",
"description": "Contact account address input placeholder text"
},
"notes": {
"message": "Notes",
"description": "Contact notes subtitle"
},
"type_message_here": {
"message": "Type a message here...",
"description": "Contact notes input placeholder text"
},
"save_changes": {
"message": "Save changes",
"description": "Save button text"
},
"remove_contact": {
"message": "Remove contact",
"description": "Remove contact button text"
},
"remove_contact_question": {
"message": "Are you sure you want to remove this contact?",
"description": "Remove contact modal text"
},
"save_new_contact": {
"message": "Save new contact",
"description": "Save new contact button text"
},
"address_in_use": {
"message": "Address is already in use.",
"description": "Contacts error message if address is already in use"},
"password_allowance": {
"message": "Password required allowance",
"description": "Input title for the password allowance label"
},
"add": {
"message": "Add",
"description" : "add button text"
},
"your_contacts": {
"message": "Your Contacts",
"desription": "Your Contacts title in Send Modal"
},
"check_address" : {
"message": "Please check the recipient address",
"description": "Error message for invalid address/ArNS"
},
"arns_added":{
"message": " ar://$ADDRESS$ added",
"description": "ArNS recipient added",
"placeholders": {
"address": {
"content": "$1",
"example": "Address"
}
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"dependencies": {
"@arconnect/components": "^0.2.5",
"@arconnect/components": "^0.2.6",
"@arconnect/keystone-sdk": "^0.0.5",
"@arconnect/warp-dre": "^0.0.1",
"@arconnect/webext-bridge": "^5.0.6",
Expand Down Expand Up @@ -88,6 +88,7 @@
"wouter": "^2.8.0-alpha.2"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@types/chrome": "^0.0.196",
Expand Down
8 changes: 6 additions & 2 deletions src/api/modules/sign/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { getSetting } from "~settings";
import { nanoid } from "nanoid";
import type Transaction from "arweave/web/lib/transaction";
import Application from "~applications/application";
import { ExtensionStorage } from "~utils/storage";
import iconUrl from "url:/assets/icon512.png";
import browser from "webextension-polyfill";
import Arweave from "arweave";
Expand Down Expand Up @@ -70,10 +71,13 @@ export async function signNotification(
appURL: string,
type: "sign" | "dispatch" = "sign"
) {
async function getNotificationSetting() {
return await ExtensionStorage.get("setting_sign_notification");
}
// fetch if notification is enabled
const notificationSetting = getSetting("sign_notification");
const notificationSetting = await getNotificationSetting();

if (!(await notificationSetting.getValue())) return;
if (notificationSetting === "false" || !notificationSetting) return;

// get gateway config
const app = new Application(appURL);
Expand Down
Loading

0 comments on commit 47506a7

Please sign in to comment.