Skip to content

Commit

Permalink
Merge branch 'develop' into 1907-rebrand-addproposalpopup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro authored Feb 19, 2024
2 parents f8f2e56 + 5eab4c2 commit 5ab4ade
Show file tree
Hide file tree
Showing 72 changed files with 2,290 additions and 1,962 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
schedule:
# 12:00AM (UTC) Sunday
- cron: '0 0 * * SUN'
workflow_dispatch:

jobs:
trigger-build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 18.15.0
node-version: 18.19.1

# Used to read the `binding.gyp` file from `@iota/sdk`
- name: Set up Python 3.10
Expand Down
48 changes: 26 additions & 22 deletions firefly.diff
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@
delete mode 100644 packages/desktop/components/AccountActivity.svelte
delete mode 100644 packages/desktop/components/AccountSummary.svelte
delete mode 100644 packages/desktop/components/OnboardingLayout.svelte
delete mode 100644 packages/desktop/components/ProposalStatusInfo.svelte
delete mode 100644 packages/desktop/components/Scroller.svelte
delete mode 100644 packages/desktop/components/SendButton.svelte
delete mode 100644 packages/desktop/components/VotingPower.svelte
delete mode 100644 packages/desktop/components/buttons/NetworkDrawerButton.svelte
delete mode 100644 packages/desktop/components/buttons/index.js
delete mode 100644 packages/desktop/components/buttons/menu-buttons/AccountActionsButton.svelte
Expand All @@ -72,25 +74,19 @@
delete mode 100644 packages/desktop/components/drawers/network-config/drawers/DrawerTemplate.svelte
delete mode 100644 packages/desktop/components/drawers/network-config/drawers/components/IscpChainInformation.svelte
rename packages/desktop/components/filter/{index.js => index.ts} (100%)
rename packages/desktop/components/{index.js => index.ts} (50%)
delete mode 100644 packages/desktop/components/index.js
delete mode 100644 packages/desktop/components/menu-buttons/index.js
rename packages/{shared/components/modals => desktop/components/menus}/NodeActionsMenu.svelte (52%)
rename packages/desktop/components/{menu-buttons/ProposalDetailsButton.svelte => menus/ProposalDetailsMenu.svelte} (55%)
delete mode 100644 packages/desktop/components/modals/AccountActionsMenu.svelte
delete mode 100644 packages/desktop/components/modals/AccountSwitcherModal.svelte
delete mode 100644 packages/desktop/components/modals/index.js
rename packages/desktop/components/panes/{index.js => index.ts} (100%)
rename packages/desktop/components/{ => popup}/popups/AddNodePopup.svelte (58%)
rename packages/desktop/components/{ => popup}/popups/AddNodePopup.svelte (56%)
rename packages/desktop/components/{ => popup}/popups/AddProposalPopup.svelte (77%)
rename packages/desktop/components/{ => popup}/popups/ManageVotingPowerPopup.svelte (67%)
rename packages/desktop/components/{ => popup}/popups/MintNativeTokenFormPopup.svelte (69%)
rename packages/desktop/components/{ => popup}/popups/MintNftFormPopup.svelte (84%)
rename packages/desktop/components/{ => popup}/popups/NodeAuthRequiredPopup.svelte (73%)
rename packages/desktop/components/{ => popup}/popups/RemoveProposalPopup.svelte (64%)
rename packages/desktop/components/{ => popup}/popups/RevotePopup.svelte (70%)
rename packages/desktop/components/{ => popup}/popups/StopVotingPopup.svelte (64%)
rename packages/desktop/components/{ => popup}/popups/VoteForProposalPopup.svelte (69%)
rename packages/desktop/components/{ => popup}/popups/VotingPowerToZeroPopup.svelte (67%)
rename packages/desktop/components/{ => popup}/popups/RemoveProposalPopup.svelte (52%)
delete mode 100644 packages/desktop/components/popups/AccountSwitcherPopup.svelte
delete mode 100644 packages/desktop/components/popups/ActivityDetailsPopup.svelte
delete mode 100644 packages/desktop/components/popups/AliasConfirmationPopup.svelte
Expand All @@ -114,17 +110,23 @@
delete mode 100644 packages/desktop/components/popups/LedgerConnectionGuidePopup.svelte
delete mode 100644 packages/desktop/components/popups/LegalUpdatePopup.svelte
delete mode 100644 packages/desktop/components/popups/ManageAccountPopup.svelte
delete mode 100644 packages/desktop/components/popups/ManageVotingPowerPopup.svelte
delete mode 100644 packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte
delete mode 100644 packages/desktop/components/popups/MintNftConfirmationPopup.svelte
delete mode 100644 packages/desktop/components/popups/NodeAuthRequiredPopup.svelte
delete mode 100644 packages/desktop/components/popups/NodeInfoPopup.svelte
delete mode 100644 packages/desktop/components/popups/Popup.svelte
delete mode 100644 packages/desktop/components/popups/ReceiveAddressPopup.svelte
delete mode 100644 packages/desktop/components/popups/RemoveNode.svelte
delete mode 100644 packages/desktop/components/popups/RevotePopup.svelte
delete mode 100644 packages/desktop/components/popups/SendFlowPopup.svelte
delete mode 100644 packages/desktop/components/popups/StopVotingPopup.svelte
delete mode 100644 packages/desktop/components/popups/TestDeepLinkFormPopup.svelte
delete mode 100644 packages/desktop/components/popups/TokenInformationPopup.svelte
delete mode 100644 packages/desktop/components/popups/UnlockStrongholdPopup.svelte
delete mode 100644 packages/desktop/components/popups/VerifyLedgerTransactionPopup.svelte
delete mode 100644 packages/desktop/components/popups/VoteForProposalPopup.svelte
delete mode 100644 packages/desktop/components/popups/VotingPowerToZeroPopup.svelte
delete mode 100644 packages/desktop/components/popups/WalletFinderPopup.svelte
delete mode 100644 packages/desktop/components/popups/index.js
delete mode 100644 packages/desktop/components/popups/send/SendConfirmationPopup.svelte
Expand Down Expand Up @@ -154,7 +156,7 @@
delete mode 100644 packages/desktop/lib/auxiliary/popup/helpers/index.ts
rename packages/desktop/lib/{electron.ts => electron/index.ts} (54%)
rename packages/desktop/{electron/lib/menuState.js => lib/electron/menus/menu-state.constant.ts} (86%)
rename packages/desktop/{electron/main.js => lib/electron/processes/main.process.ts} (61%)
rename packages/desktop/{electron/main.js => lib/electron/processes/main.process.ts} (60%)
rename packages/desktop/{electron/lib/analytics.js => lib/electron/utils/analytics.utils.ts} (82%)
rename packages/desktop/{electron/lib/errorHandling.js => lib/electron/utils/error.utils.ts} (69%)
delete mode 100644 packages/desktop/lib/routers/actions/openSettings.ts
Expand Down Expand Up @@ -676,13 +678,16 @@
delete mode 100644 packages/shared/assets/illustrations/onboarding/ledger-live-updated-desktop-darkmode.svg
delete mode 100644 packages/shared/assets/illustrations/onboarding/ledger-live-updated-desktop.svg
delete mode 100644 packages/shared/assets/illustrations/onboarding/ledger-search-apps-desktop.svg
delete mode 100644 packages/shared/assets/illustrations/wallet/empty-collectibles-darkmode.svg
delete mode 100644 packages/shared/assets/illustrations/wallet/empty-collectibles.svg
delete mode 100644 packages/shared/components/Alert.svelte
delete mode 100644 packages/shared/components/Animation.svelte
delete mode 100644 packages/shared/components/Button.svelte
delete mode 100644 packages/shared/components/ButtonRadio.svelte
delete mode 100644 packages/shared/components/ColorPicker.svelte
delete mode 100644 packages/shared/components/Error.svelte
delete mode 100644 packages/shared/components/HR.svelte
delete mode 100644 packages/shared/components/Illustration.svelte
delete mode 100644 packages/shared/components/LoadingScreen.svelte
delete mode 100644 packages/shared/components/Logo.svelte
delete mode 100644 packages/shared/components/OutdatedNodeTooltip.svelte
Expand Down Expand Up @@ -714,7 +719,9 @@
delete mode 100644 packages/shared/components/atoms/badges/VerificationBadge.svelte
delete mode 100644 packages/shared/components/atoms/badges/index.js
delete mode 100644 packages/shared/components/atoms/boxes/AddressBox.svelte
delete mode 100644 packages/shared/components/atoms/boxes/CopyableBox.svelte
delete mode 100644 packages/shared/components/atoms/boxes/KeyValueBox.svelte
delete mode 100644 packages/shared/components/atoms/boxes/index.js
delete mode 100644 packages/shared/components/atoms/buttons/AddInputButton.svelte
delete mode 100644 packages/shared/components/atoms/buttons/AssetActionsButton.svelte
delete mode 100644 packages/shared/components/atoms/buttons/ExportStrongholdButton.svelte
Expand Down Expand Up @@ -1081,9 +1088,11 @@
delete mode 100644 packages/shared/lib/core/utils/constants/iota-unit-map.constant.ts
delete mode 100644 packages/shared/lib/core/utils/crypto/utils/validateAssetId.ts
delete mode 100644 packages/shared/lib/core/utils/crypto/utils/validateEthereumAddress.ts
delete mode 100644 packages/shared/lib/core/utils/function.ts
delete mode 100644 packages/shared/lib/core/utils/interfaces/format-iota-unit-options.interface.ts
delete mode 100644 packages/shared/lib/core/utils/interfaces/index.ts
delete mode 100644 packages/shared/lib/core/utils/interfaces/key-value-box-list.interface.ts
delete mode 100644 packages/shared/lib/core/utils/tests/function.test.ts
delete mode 100644 packages/shared/lib/core/utils/tests/ui.test.ts
delete mode 100644 packages/shared/lib/core/utils/tests/unit.test.ts
delete mode 100644 packages/shared/lib/core/utils/time.ts
Expand Down Expand Up @@ -1210,17 +1219,14 @@
delete mode 100644 packages/shared/locales/sv.json
delete mode 100644 packages/shared/locales/tr.json
rename packages/shared/{ => src}/components/Idle.svelte (93%)
rename packages/shared/{ => src}/components/Illustration.svelte (53%)
rename packages/shared/{ => src}/components/Link.svelte (90%)
rename packages/shared/{ => src}/components/QR.svelte (66%)
rename packages/shared/{ => src}/components/Spinner.svelte (79%)
rename packages/shared/{ => src}/components/Text.svelte (98%)
rename packages/shared/{ => src}/components/Tooltip.svelte (97%)
rename packages/shared/{ => src}/components/Transition.svelte (75%)
rename packages/shared/{ => src}/components/atoms/Icon.svelte (94%)
rename packages/shared/{ => src}/components/atoms/Icon.svelte (90%)
rename packages/shared/{components/atoms => src/components}/boxes/Box.svelte (85%)
rename packages/shared/{components/atoms => src/components}/boxes/CopyableBox.svelte (81%)
rename packages/shared/{components/atoms/boxes/index.js => src/components/boxes/index.ts} (73%)
rename packages/shared/{components/atoms => src/components}/buttons/ReceiveButton.svelte (81%)
rename packages/shared/{ => src}/components/enums/font-weight.enum.ts (100%)
rename packages/shared/{ => src}/components/enums/index.ts (50%)
Expand All @@ -1232,9 +1238,9 @@
rename packages/shared/{components/index.js => src/components/index.ts} (53%)
rename packages/shared/{ => src}/components/inputs/AliasInput.svelte (51%)
rename packages/shared/{ => src}/components/inputs/Checkbox.svelte (98%)
rename packages/shared/{components/inputs/Dropdown2.svelte => src/components/inputs/Dropdown.svelte} (98%)
rename packages/shared/{components/inputs/Dropdown2.svelte => src/components/inputs/Dropdown.svelte} (96%)
rename packages/shared/{ => src}/components/inputs/Input.svelte (93%)
rename packages/shared/{ => src}/components/inputs/InputContainer.svelte (75%)
rename packages/shared/{ => src}/components/inputs/InputContainer.svelte (69%)
rename packages/shared/{ => src}/components/inputs/NodeInput.svelte (95%)
rename packages/shared/{ => src}/components/inputs/OptionalInput.svelte (55%)
rename packages/shared/{ => src}/components/inputs/Radio.svelte (94%)
Expand Down Expand Up @@ -1617,7 +1623,7 @@
rename packages/shared/{ => src}/lib/core/account/utils/sumBalanceForAccounts.ts (100%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/generateAndStoreActivitiesForAccount.ts (54%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/hideActivitiesForFoundries.ts (77%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/linkTransactionsWithClaimingTransactions.ts (88%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/linkTransactionsWithClaimingTransactions.ts (92%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/preprocessOutputsForAccount.ts (68%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/preprocessTransactionsForAccount.ts (80%)
rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/setAsyncStatusOfAccountActivities.ts (79%)
Expand All @@ -1637,7 +1643,7 @@
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/stores/all-account-activities.store.ts (83%)
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/stores/claimed-activities.store.ts (78%)
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/stores/hidden-activities.store.ts (74%)
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/stores/selected-account-activities.store.ts (56%)
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/stores/selected-account-activities.store.ts (59%)
rename packages/shared/{lib/core/wallet/interfaces => src/lib/core/activity/types}/activity-filter.interface.ts (90%)
rename packages/shared/{lib/core/wallet/interfaces => src/lib/core/activity/types}/activity-generation-parameters.interface.ts (82%)
rename packages/shared/{lib/core/wallet => src/lib/core/activity}/types/activity.type.ts (81%)
Expand Down Expand Up @@ -1690,7 +1696,7 @@
rename packages/shared/{ => src}/lib/core/app/interfaces/managers/notification-manager.interface.ts (100%)
rename packages/shared/{ => src}/lib/core/app/interfaces/managers/pincode-manager.interface.ts (77%)
rename packages/shared/{ => src}/lib/core/app/interfaces/nft-download-state.interface.ts (74%)
rename packages/shared/{ => src}/lib/core/app/interfaces/platform-event-map.interface.ts (54%)
rename packages/shared/{ => src}/lib/core/app/interfaces/platform-event-map.interface.ts (53%)
rename packages/shared/{ => src}/lib/core/app/interfaces/platform.interface.ts (81%)
rename packages/shared/{ => src}/lib/core/app/stores/app-settings.store.ts (55%)
rename packages/shared/{ => src}/lib/core/app/stores/app-version-details.store.ts (100%)
Expand All @@ -1707,7 +1713,7 @@
rename specs/images/.gitkeep => packages/shared/src/lib/core/contact/helpers/index.ts (100%)
rename packages/shared/{lib/core/app => src/lib/core/contact}/index.ts (72%)
rename packages/shared/{ => src}/lib/core/error/actions/index.ts (100%)
rename packages/shared/{ => src}/lib/core/error/actions/logAndNotifyError.ts (79%)
rename packages/shared/{ => src}/lib/core/error/actions/logAndNotifyError.ts (70%)
rename packages/shared/{ => src}/lib/core/error/classes/base-error.class.ts (81%)
rename packages/shared/{ => src}/lib/core/error/classes/index.ts (100%)
rename packages/shared/{ => src}/lib/core/error/constants/default-app-error-parameters.constant.ts (100%)
Expand Down Expand Up @@ -2148,7 +2154,6 @@
rename packages/shared/{ => src}/lib/core/utils/enums/time-period.enum.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/filter.ts (63%)
rename packages/shared/{ => src}/lib/core/utils/format.ts (77%)
rename packages/shared/{ => src}/lib/core/utils/function.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/index.ts (86%)
rename packages/shared/{ => src}/lib/core/utils/interfaces/date-difference.interface.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/interfaces/dropdown-item.interface.ts (100%)
Expand All @@ -2172,7 +2177,6 @@
rename packages/shared/{ => src}/lib/core/utils/tests/crypto.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/date.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/format.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/function.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/math.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/number.test.ts (100%)
rename packages/shared/{ => src}/lib/core/utils/tests/object.test.ts (95%)
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/components/ProposalCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { onMount } from 'svelte'
import { EventStatus } from '@iota/sdk/out/types'
import { ProposalStatusInfo } from '@components'
import { ProposalStatusInfo } from '@views/governance'
import { Text } from '@ui'
import { FontWeight } from '@ui/enums'
import { TooltipIcon, IconName } from '@bloomwalletio/ui'
Expand Down
1 change: 0 additions & 1 deletion packages/desktop/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export { default as ProposalAnswer } from './ProposalAnswer.svelte'
export { default as ProposalCard } from './ProposalCard.svelte'
export { default as ProposalsDetails } from './ProposalsDetails.svelte'
export { default as ProposalQuestion } from './ProposalQuestion.svelte'
export { default as ProposalStatusInfo } from './ProposalStatusInfo.svelte'
export { default as ProposalStatusTimelineTooltip } from './ProposalStatusTimelineTooltip.svelte'
export { default as SidebarTab } from './SidebarTab.svelte'
export { default as StatusTile, type StatusTileProps } from './StatusTile.svelte'
Expand Down
2 changes: 2 additions & 0 deletions packages/desktop/components/popup/Popup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import RemoveProposalPopup from './popups/RemoveProposalPopup.svelte'
import RevotePopup from './popups/RevotePopup.svelte'
import SendFlowPopup from './popups/SendFlowPopup.svelte'
import SiwePopup from './popups/SiwePopup.svelte'
import SignTypedDataPopup from './popups/SignTypedDataPopup.svelte'
import SignMessagePopup from './popups/SignMessagePopup.svelte'
import StopVotingPopup from './popups/StopVotingPopup.svelte'
Expand Down Expand Up @@ -127,6 +128,7 @@
[PopupId.RemoveProposal]: RemoveProposalPopup,
[PopupId.Revote]: RevotePopup,
[PopupId.SendFlow]: SendFlowPopup,
[PopupId.Siwe]: SiwePopup,
[PopupId.SignTypedData]: SignTypedDataPopup,
[PopupId.SignMessage]: SignMessagePopup,
[PopupId.StopVoting]: StopVotingPopup,
Expand Down
10 changes: 8 additions & 2 deletions packages/desktop/components/popup/popups/AddNodePopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
let nodeConfigurationForm: NodeConfigurationForm
let isBusy = false
let requiresAuth = false
$: disabled = !node?.url || (requiresAuth && !node?.auth)
async function onSubmit(): Promise<void> {
try {
Expand All @@ -40,7 +43,9 @@
onSuccess()
} catch (err) {
if (err.type !== 'validationError') {
if (err?.error?.match(/(username)|(password)|(jwt)/g)) {
requiresAuth = true
} else if (err.type !== 'validationError') {
showNotification({
variant: 'error',
text: localize(err?.error ?? 'error.global.generic'),
Expand All @@ -63,12 +68,13 @@
type: 'submit',
form: 'node-configuration-form',
text: localize(`actions.${isEditingNode ? 'updateNode' : 'addNode'}`),
disabled: !node.url,
disabled,
}}
>
<NodeConfigurationForm
bind:this={nodeConfigurationForm}
bind:node
{requiresAuth}
{onSubmit}
{isBusy}
isDeveloperProfile={$activeProfile.isDeveloperProfile}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Alert } from '@bloomwalletio/ui'
import { localize } from '@core/i18n'
import { LedgerAppName, LedgerConnectionState, ledgerConnectionState } from '@core/ledger'
import { isFunction } from '@core/utils'
import { closePopup } from '@desktop/auxiliary/popup'
import { LedgerStatusIllustration, LedgerIllustrationVariant } from '@ui'
import PopupTemplate from '../PopupTemplate.svelte'
Expand Down Expand Up @@ -53,12 +52,8 @@
}
function continueFlow(): void {
if (isFunction(onContinue)) {
closePopup()
onContinue()
} else {
closePopup()
}
closePopup()
onContinue?.()
}
function onCancelClick(): void {
Expand Down
Loading

0 comments on commit 5ab4ade

Please sign in to comment.