Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Add support for multiple Robinhood accounts #33

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b5f8ffc
Add Multiple Accounts to Settings page. Should allow to add and delet…
superpowered Jan 18, 2021
4f68e4f
Linting
superpowered Jan 18, 2021
8844554
re-indent head/body. formatOnSave causing issues here.
superpowered Jan 18, 2021
f7a47f4
Stop multiple event handlers from being registered on add button
superpowered Jan 18, 2021
5987e40
Get account name from robin hood account screen.
superpowered Jan 19, 2021
c3c6ef0
lint
superpowered Jan 19, 2021
cace38f
Update fields based on account name if we find a matching one.
superpowered Jan 19, 2021
afd222c
Can pass updated account name to success message. Definately needs cl…
superpowered Jan 19, 2021
831b84d
Merge commit 'c8ab2b380d1330a3ddac6caaa7a78b1487ae6660' into multiple…
superpowered Jan 19, 2021
c392b08
Mint value is unneeded
superpowered Jan 19, 2021
64c082c
Add Check / create for multiple accounts.
superpowered Jan 19, 2021
faf6b5f
Stop. Un.in.dent.ing.
superpowered Jan 19, 2021
92f9635
.vscode to gitignore. Should keep the original file, but allow it to …
superpowered Jan 19, 2021
cc20a1a
rm .vscode/settings.json
superpowered Jan 19, 2021
01bac47
Merge commit '1a10de5d0bbc6e6602076cae0bfcebe87e3cd906' into multiple…
superpowered Jan 19, 2021
2c6eb96
Pretty sure stellar wasn't supposed to get commited.
superpowered Jan 19, 2021
82f6ddf
Allow default
superpowered Jan 19, 2021
f115632
Recommend eslint to match recommended settings
superpowered Jan 22, 2021
da2d90f
Merge commit '4ea984ab381515819a83142426750e174cb95ea6' into multiple…
superpowered Jan 22, 2021
b98c8ab
Clean up the update script
superpowered Jan 22, 2021
3f218f6
Move Interfaces & urls to constants
superpowered Jan 22, 2021
298cec4
Add lint:fix, run it
superpowered Jan 22, 2021
6b043f6
Commenting.
superpowered Jan 22, 2021
42ac388
rename match to isMultipleAccounts. reorder functions by priority
superpowered Jan 22, 2021
47cbb2d
Browser typing is a dev extension
superpowered Jan 22, 2021
6ccd26a
Multiple Accounts readme
superpowered Jan 22, 2021
068b702
can remove `mint-force-sync`
superpowered Jan 22, 2021
9d9c457
Move `sanitizeInput` to utilities, `robinHoodValue` renamed to `robin…
superpowered Jan 22, 2021
4671502
Clean up settings
superpowered Jan 22, 2021
788043f
Clean up check
superpowered Jan 22, 2021
c983e8c
Some final cleanup
superpowered Jan 22, 2021
cdc2961
Error with missing args on timeout
superpowered Jan 22, 2021
aaca143
Fix issue with other not being set
superpowered Jan 22, 2021
8804287
Warnings for if a property cant be found or set
superpowered Jan 22, 2021
f6119d2
Add prettier to recommended extensions
pkmnct Jan 23, 2021
436f337
Run `npm i` to ensure package-lock.json up-to-date
pkmnct Jan 23, 2021
b07ac7c
Style/formatting changes, other minor tweaks
pkmnct Jan 23, 2021
735753e
Remove manual adding of accounts, now sync script will check if accou…
superpowered Jan 23, 2021
32813d1
Some debugs for the new flows
superpowered Jan 23, 2021
7189f49
Minor cleanup
pkmnct Jan 25, 2021
92e8f68
Fix typo
pkmnct Jan 25, 2021
143b47a
message may not have event key
pkmnct Jan 26, 2021
90cf1a5
Remove callbackData
pkmnct Jan 26, 2021
be3250c
Bump version
pkmnct Jan 26, 2021
d04ca78
Fix waitForElement
pkmnct Jan 26, 2021
422a3e3
Add additional default settings
pkmnct Jan 26, 2021
d110836
Merge commit '35de422d2a604bcbf7dafa2788f8521f398357a6' into multiple…
superpowered Jan 28, 2021
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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ node_modules
dist
*.zip

.stellar
.vscode/**/*
!.vscode/settings.json.default
!.vscode/extensions.json

.stellar
stellar
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
11 changes: 0 additions & 11 deletions .vscode/settings.json

This file was deleted.

13 changes: 13 additions & 0 deletions .vscode/settings.json.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"editor.formatOnSave": true,
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"search.exclude": {
".stellar": true,
"dist": true,
"package-lock.json": true
},
"cSpell.words": ["Robinhood"]
}
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "robinhood-mint-sync-chrome",
"version": "3.4.1",
"version": "3.5.0",
"repository": {
"type": "git",
"url": "git+https://github.com/pkmnct/robinhood-mint-sync-chrome.git"
Expand All @@ -17,6 +17,7 @@
},
"devDependencies": {
"@types/chrome": "0.0.128",
"@types/firefox-webext-browser": "^82.0.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"bestzip": "^2.1.7",
Expand Down Expand Up @@ -51,6 +52,8 @@
"eslint:fix": "eslint --fix --max-warnings 0 src/**",
"prettier": "prettier --check src/**",
"prettier:fix": "prettier --write src/**",
"lint": "npm run eslint && npm run prettier",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"get:stellar": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 node ./get-stellar.js",
"postinstall": "npm run get:stellar",
"manifest:update": "node manifest-helper.js",
Expand Down
35 changes: 35 additions & 0 deletions public/css/settings.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
input[type="checkbox"]:checked + label:before, input[type="radio"]:checked + label:before {
content: '✓';
}

.mutiple-accounts-wrapper {
display: none;
}
#setting-multipleAccountsEnabled:checked ~ .mutiple-accounts-wrapper {
display: block;
}

.mutiple-accounts-input-wrapper:first-child .multipleAccounts-delete{
display: none;
}

.mutiple-accounts-input-wrapper {
display: flex;
align-items: flex-end;
margin-bottom: 1.5em;
}

.mutiple-accounts-input-wrapper label {
width: calc(100% - 9em);
margin-right: 1em;
margin-bottom: 0;
}

.mutiple-accounts-input-wrapper label input {
width: 100%;
}

.multipleAccounts-delete {
width: 8em;
}

#main input[type="text"].error {
border-color: #762206;
}
26 changes: 24 additions & 2 deletions public/html/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="stylesheet" href="/css/settings.css" />
<link rel="icon" type="image/png" href="/images/icon128.png" />
</head>

<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
Expand All @@ -20,14 +21,16 @@ <h1>Settings</h1>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="#welcome" class="active">Welcome Page</a></li>
<li><a href="#changeLog" class="active">Changelog</a></li>
<li><a href="#triangleFix">Triangle Indicator Fix</a></li>
<li><a href="#debugMode">Debug Mode</a></li>
<li><a href="#multipleAccounts">Multiple Accounts</a></li>
</ul>
</nav>

<!-- Main -->
<main id="main">
<section id="welcome" class="main">
<section id="changeLog" class="main">
<header class="major">
<h2>Changelog</h2>
</header>
Expand All @@ -38,6 +41,8 @@ <h2>Changelog</h2>
<input type="checkbox" id="setting-changelogOnUpdate" name="setting-changelogOnUpdate" />
<label for="setting-changelogOnUpdate">Display changelog on update</label>
</section>

<!-- Triangle Indicator Fix -->
<section id="triangleFix" class="main">
<header class="major">
<h2>Triangle Indicator Fix</h2>
Expand All @@ -49,6 +54,8 @@ <h2>Triangle Indicator Fix</h2>
<input type="checkbox" id="setting-fixTriangle" name="setting-fixTriangle" />
<label for="setting-fixTriangle">Triangle Indicator Fix</label>
</section>

<!-- Debug Mode -->
<section id="debugMode" class="main">
<header class="major">
<h2>Debug Mode</h2>
Expand All @@ -60,6 +67,8 @@ <h2>Debug Mode</h2>
<input type="checkbox" id="setting-debugMode" name="setting-debugMode" />
<label for="setting-debugMode">Debug Mode</label>
</section>

<!-- Trigger Initial Setup -->
<section id="setup" class="main">
<header class="major">
<h2>Trigger Initial Setup</h2>
Expand All @@ -69,6 +78,19 @@ <h2>Trigger Initial Setup</h2>
</p>
<a href="https://mint.intuit.com/settings.event?filter=property&setupRobinhood=true" target="_blank" class="button">Trigger Initial Setup</a>
</section>

<!-- Multiple Accounts -->
<section id="multipleAccounts" class="main">
<header class="major">
<h2>Multiple Accounts</h2>
</header>
<p>
Multiple account support allows you to sync more than one Robinhood account to a single Mint account. Whichever Robinhood account you currently have
signed in on your browser will be synced to Mint. To update another account, sign out of Robinhood and sign in with the account you want to sync.
</p>
<input type="checkbox" id="setting-multipleAccountsEnabled" name="setting-multipleAccountsEnabled" />
<label for="setting-multipleAccountsEnabled">Allow Multiple Accounts</label>
</section>
</main>

<!-- Footer -->
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Robinhood Mint Sync",
"description": "Automatically add your Robinhood portfolio to Mint",
"version": "3.4.1",
"version": "3.5.0",
"author": "George Walker",
"browser_specific_settings": {
"gecko": {
Expand Down
Loading