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

Add orgs #584

Merged
merged 362 commits into from
Feb 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
362 commits
Select commit Hold shift + click to select a range
2c5e1a2
Trying edit overlay on user avatar
ackernaut Jan 20, 2017
8a0e453
Move error message out of the avatar block
ackernaut Jan 20, 2017
02f5f76
wire up avatar upload frontend
mattkrick Jan 23, 2017
a059daa
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Jan 23, 2017
8634137
clean up orgAvatar
mattkrick Jan 23, 2017
6c42e1a
make babel transforms explicit
mattkrick Jan 23, 2017
4be9a85
add org/user avatar uploads
mattkrick Jan 23, 2017
8e4ddee
handle expired trials/rejected payments
mattkrick Jan 23, 2017
0c80dfc
Style pass, controls, etc.
ackernaut Jan 23, 2017
8d5289d
fix double sub for notifications
mattkrick Jan 23, 2017
98f01f9
fix double sub for notifications2
mattkrick Jan 23, 2017
ca51be0
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Jan 23, 2017
a790c7e
require isPaid on subs
mattkrick Jan 23, 2017
76436b5
Editable avatar styles WIP
ackernaut Jan 23, 2017
242c060
wire up isPaid icons on dashnav
mattkrick Jan 24, 2017
7188ad8
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Jan 24, 2017
51ffb4d
refactor TeamDashModal to MeetingInProgressModal
mattkrick Jan 24, 2017
f1da55f
Refactor panel styles for editable avatar
ackernaut Jan 24, 2017
27ce0d3
add Unpaid modal to team dash
mattkrick Jan 24, 2017
95df190
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Jan 24, 2017
b39e0aa
Add fallback images for avatar
ackernaut Jan 24, 2017
c8cb6b8
Button can be style "flat"
ackernaut Jan 24, 2017
816fd03
Oops, yank bad import
ackernaut Jan 24, 2017
ed0d59e
Latest button work WIP
ackernaut Jan 25, 2017
f24222b
first pass at portals for menus
mattkrick Jan 25, 2017
d651e89
First pass at invoice, line item details
ackernaut Jan 25, 2017
c079146
refactor add project and filter project menus to portals
mattkrick Jan 26, 2017
dd0abaa
add dumb dropdown
mattkrick Jan 26, 2017
264750f
refactor eager MenuItems to lazy itemFactory
mattkrick Jan 26, 2017
62ca3e3
Invoice header, footer, responsive styling
ackernaut Jan 26, 2017
3893998
Simple print styles
ackernaut Jan 26, 2017
36a0b7c
Invoice line item gutter responsive
ackernaut Jan 26, 2017
f3f991e
wire up org dropdown
mattkrick Jan 26, 2017
78f7db5
BYOPortal
mattkrick Jan 27, 2017
77c284e
Increase max-width of invoice
ackernaut Jan 27, 2017
bccd22c
add animations to CreditCardModal
mattkrick Jan 27, 2017
3b5e5ce
create schema for adding orgs
mattkrick Jan 28, 2017
e2c5f2c
refactor server utils, remove nonnullifythunk
mattkrick Jan 28, 2017
202595c
refactor notifications to a multiIndex instead of parentIds
mattkrick Jan 28, 2017
8563482
refactor stripe billing and org creation for easy reuse
mattkrick Jan 29, 2017
9ee5ac1
refactor activeUserCount to activeUsers
mattkrick Jan 30, 2017
5aef3bb
cleanup
mattkrick Jan 30, 2017
2bae8ab
refactor the migration to handle userOrgs and orgUsers and fix quanti…
mattkrick Jan 31, 2017
fe611fa
refactor the app for userOrgs and orgUsers
mattkrick Jan 31, 2017
c49ad78
fix org modals and subs
mattkrick Feb 1, 2017
f5f35ea
First pass, dash nav inline action buttons
ackernaut Feb 1, 2017
d7bf2e2
finish portalizing modals
mattkrick Feb 1, 2017
0d0295b
Merge branch 'add-orgs' into portals
mattkrick Feb 1, 2017
c4e313e
Adds IconAvatar
ackernaut Feb 1, 2017
cde6345
fixed long refs
mattkrick Feb 1, 2017
7b0667e
Change icon for agenda queue on team dash
ackernaut Feb 1, 2017
11a36e5
basic orgmembers menus
mattkrick Feb 2, 2017
1f446f4
attempt orgBilling CCinfo style fix
mattkrick Feb 2, 2017
762096b
wire up notifications
mattkrick Feb 2, 2017
faff2ef
update socketcluster setAuthToken
mattkrick Feb 2, 2017
f598451
Revert dash nav button work, moving to user hub, menu
ackernaut Feb 2, 2017
daf4020
Use panel component for notifications
ackernaut Feb 2, 2017
270cbdc
Merge branch 'add-orgs' into portals
mattkrick Feb 2, 2017
969d072
Merge branch 'add-orgs' into portals
mattkrick Feb 2, 2017
980b981
Merge pull request #683 from ParabolInc/portals
mattkrick Feb 2, 2017
5489df2
Small backend fixes
jordanh Feb 2, 2017
6733214
Merge branch 'portals' of github.com:ParabolInc/action into portals
jordanh Feb 2, 2017
79c46f8
Merge branch 'portals' into add-orgs
jordanh Feb 2, 2017
aec3df2
fix isTrial in addOrgs migration
mattkrick Feb 2, 2017
55219d7
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 2, 2017
c959ca4
fix typo
mattkrick Feb 2, 2017
3e5452e
refactor requireOrgLeader
mattkrick Feb 3, 2017
57b81bb
fix for terry
mattkrick Feb 3, 2017
773b5f1
Select org menu WIP
ackernaut Feb 3, 2017
014933d
fix email idx
mattkrick Feb 3, 2017
cdcb2e7
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 3, 2017
f132f61
add pending org approvals in addTeam
mattkrick Feb 3, 2017
1632f50
Menus are a WIP
ackernaut Feb 3, 2017
6f78c4f
Clean up badge
ackernaut Feb 3, 2017
e0326db
Menus can have icons, settings views WIP
ackernaut Feb 3, 2017
0e628d4
More notification style states
ackernaut Feb 3, 2017
3ff6826
More hub and dash header polish
ackernaut Feb 3, 2017
963f252
refactor login
mattkrick Feb 4, 2017
73d35ad
remove created_at
mattkrick Feb 4, 2017
bb2a4b7
fix vanishing avatars
mattkrick Feb 4, 2017
f5fbeef
Fixes and partial de-linting
jordanh Feb 4, 2017
88f4638
Fixed variable typo, a little lint
jordanh Feb 4, 2017
4bd1b6b
Add `userOrgs` to `Organization`.
jordanh Feb 4, 2017
9c984eb
Fix initial Org name
jordanh Feb 4, 2017
dc962e7
Fix notifications stub
jordanh Feb 4, 2017
444fc62
fix welcome step 3 skip bug
mattkrick Feb 4, 2017
f1cd158
Merge remote-tracking branch 'origin/add-org-invites' into add-org-in…
mattkrick Feb 4, 2017
3b7e1cf
establish server validation failure pattern
mattkrick Feb 5, 2017
14c2e48
validate step 2 on server, wait for response
mattkrick Feb 5, 2017
ba9ae67
refactor name updates
mattkrick Feb 5, 2017
4061114
Merge branch 'master' into add-org-invites-master
jordanh Feb 5, 2017
f625f48
add cancel approval
mattkrick Feb 6, 2017
22952d4
Merge branch 'add-org-invites' into add-org-invites-master
jordanh Feb 6, 2017
cb6a2d4
Merge pull request #699 from ParabolInc/add-org-invites-master
jordanh Feb 6, 2017
6928f35
complete team settings invitations
mattkrick Feb 7, 2017
9541d5d
fixing userOrgs double entry on accepting invite
mattkrick Feb 7, 2017
4f6c91f
Added intranet graphql endpoint
jordanh Feb 7, 2017
e6782b6
Revert auth0Helpers change
jordanh Feb 7, 2017
f88ae0d
speed up webpack dev builds
mattkrick Feb 7, 2017
6b1a934
Add billing panel styles
ackernaut Feb 7, 2017
b4df76c
wrap up invites
mattkrick Feb 7, 2017
ad9576d
Merge branch 'add-orgs' into add-org-invites
mattkrick Feb 7, 2017
cdac866
Merge branch 'add-orgs' into add-org-invites
mattkrick Feb 7, 2017
82eb569
Merge pull request #705 from ParabolInc/add-org-invites
mattkrick Feb 7, 2017
8f2fc8c
Merge pull request #700 from ParabolInc/add-org-invites-intranet-jobs
mattkrick Feb 7, 2017
30e1654
begin test fixes
mattkrick Feb 7, 2017
569f4d5
add content to proj input
mattkrick Feb 7, 2017
c590b12
await the promise for updateUserWithAuthToken
mattkrick Feb 8, 2017
0c20e41
refactor adding group and billing
mattkrick Feb 8, 2017
0119dc0
minor fixes for e2e PR testing
mattkrick Feb 8, 2017
5c2bf34
add RejectOrgApprovalModal
mattkrick Feb 8, 2017
514e02b
create rejectOrgApproval mutation
mattkrick Feb 9, 2017
969d174
move notification components to their own module
mattkrick Feb 9, 2017
043b4e5
add clearNotification mutation
mattkrick Feb 9, 2017
038a36a
add acceptUser button
mattkrick Feb 9, 2017
e8bcbd6
finish PR test 2
mattkrick Feb 9, 2017
66a5949
CC panel styled, fix fallback SVGs
ackernaut Feb 9, 2017
ce1d1e1
fix closePortal console error for menuitem
mattkrick Feb 9, 2017
da03a66
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 9, 2017
5236c2d
add last4 to newteamform for added payment ack
mattkrick Feb 9, 2017
caa75ee
begin CC form validation
mattkrick Feb 9, 2017
1acc5a7
Menus, fields, etc. WIP
ackernaut Feb 9, 2017
1e76800
finish cc validation
mattkrick Feb 10, 2017
7d7c62b
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 10, 2017
2565963
Flat button for menu v-ellipsis
ackernaut Feb 10, 2017
8d406d0
target -> current target
mattkrick Feb 10, 2017
0738d95
Tweak button
ackernaut Feb 10, 2017
4b4b227
More love for the CC modal form
ackernaut Feb 10, 2017
8db8bbd
Latest New Team form, Org Members
ackernaut Feb 10, 2017
3a4f01e
Padding, 👾
ackernaut Feb 10, 2017
284423d
Latest progress on notifications
ackernaut Feb 10, 2017
53272a6
wire up update button
mattkrick Feb 10, 2017
9e09089
fix keyboard onSubmit for CC modal
mattkrick Feb 10, 2017
7a8743a
Patch for block button, menu, input with dropdown
ackernaut Feb 10, 2017
46da44b
Try updated focus styles for inputs
ackernaut Feb 10, 2017
61639fe
Update input box shadow on focus
ackernaut Feb 10, 2017
1e107e3
A little convenience to build dll on `npm run dev` if needed
jordanh Feb 11, 2017
aaf22b3
clean up newOrg flow
mattkrick Feb 11, 2017
ed226f6
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 11, 2017
c9260ca
refactor validUntil into periodEnd
mattkrick Feb 11, 2017
265ee22
ensure inactive prop on all users, true or false
mattkrick Feb 12, 2017
e54afa8
prepare for puase webhook tests on ngrok
mattkrick Feb 12, 2017
3a99e67
write a comically awful unix command for fixed url tunneling
mattkrick Feb 12, 2017
63d84b0
More straightforward UNIX command to start ultrahook tunnel
jordanh Feb 13, 2017
a5f4130
add autopause mutation
mattkrick Feb 13, 2017
87a9460
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 13, 2017
2bf995e
bugfix invoiceitem.created
mattkrick Feb 13, 2017
0de02e9
Quick restore of underline style option for fields
ackernaut Feb 13, 2017
01c36be
Restore spacing in dash filter toggles
ackernaut Feb 13, 2017
24d8280
fix pauseUser
mattkrick Feb 14, 2017
90357b5
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 14, 2017
e29ae1d
refactor remove team member to support multiple team removals
mattkrick Feb 14, 2017
0d0b055
remove duplicate kickout callbacks
mattkrick Feb 15, 2017
b5a4926
fix a little of kick_out but it is still waiting on something but i d…
mattkrick Feb 15, 2017
cdc3871
fixed long awkward leave team pause
mattkrick Feb 15, 2017
2fcf317
can reactivate teammembers in realtime
mattkrick Feb 15, 2017
c653dfd
add ADD_TO_TEAM toast
mattkrick Feb 15, 2017
dbc19a4
stop sending the package.json to the client
mattkrick Feb 15, 2017
24f7262
fixes #520 fallback avatars
ackernaut Feb 15, 2017
bbeb9ef
fix org removal
mattkrick Feb 16, 2017
3dfef0c
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 16, 2017
88b8065
require credit card on new org form
mattkrick Feb 16, 2017
858af02
refactor KICK_OUT onto USER_MEMO channel
mattkrick Feb 16, 2017
639709b
fix the late stale request for the guy that just got the boot
mattkrick Feb 16, 2017
b51a503
Avatar updates WIP
ackernaut Feb 16, 2017
aa0c669
fix multi-invite for multi-approval
mattkrick Feb 17, 2017
dd1ebeb
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 17, 2017
eb63420
add PROMOTE_TO_BILLING_LEADER
mattkrick Feb 17, 2017
b411510
replace isTrial with !creditCard fix #720
mattkrick Feb 17, 2017
1055f3c
fix CC and trial extension logic
mattkrick Feb 17, 2017
cbe591b
Size “smallest” for noti buttons
ackernaut Feb 17, 2017
dea9c17
Use modal context
ackernaut Feb 17, 2017
9e63764
Set overlay based on both team modals
ackernaut Feb 17, 2017
8aabcfa
Refactors avatar including update UI
ackernaut Feb 17, 2017
76eb4a1
Yank IconLink
ackernaut Feb 17, 2017
3da31ed
begin testing expired trials
mattkrick Feb 17, 2017
048eb31
Add orgs tests (#719)
jordanh Feb 17, 2017
3e0eb5c
Fixup server include paths
jordanh Feb 18, 2017
adcae17
Fix for #725, acceptInvitation race
jordanh Feb 18, 2017
303a451
Re-add [email protected] to mockTeam
jordanh Feb 18, 2017
8150e7a
Lint, copy edits to CreditCardModael
jordanh Feb 18, 2017
55408ed
handle expired trials
mattkrick Feb 18, 2017
270cc63
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 18, 2017
628092c
Modularized org1 unit tests
jordanh Feb 18, 2017
d49fa2c
Refactored server unit tests.
jordanh Feb 19, 2017
8cf5639
Added reactivateTestMembers test, small fixes
jordanh Feb 19, 2017
84d2337
addBilling tested with The Avengers team
jordanh Feb 19, 2017
7e62520
Moving `npm test` above `npm lint` in CircleCI
jordanh Feb 19, 2017
97f640f
Added boilerplate test for addBilling
jordanh Feb 19, 2017
3be19c1
Migrate testing database in circle.yml
jordanh Feb 19, 2017
f7876e6
Making testing DB migrate its own test phase
jordanh Feb 19, 2017
4b2a8b8
Merge branch 'add-orgs' into add-orgs-tests-2
jordanh Feb 19, 2017
3844648
Add orgs tests 2 (#727)
jordanh Feb 19, 2017
cd65529
Re-adding yarn.lock, oops!
jordanh Feb 19, 2017
7ddd48d
Merge branch 'add-orgs' of github.com:ParabolInc/action into add-orgs
jordanh Feb 19, 2017
e8f01aa
add expired trial notification
mattkrick Feb 20, 2017
f91da49
handle declined cards
mattkrick Feb 20, 2017
77694ab
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 20, 2017
56d7c59
Agenda list links state, disabled state
ackernaut Feb 20, 2017
c4c4ac0
fix payment failures (untested)
mattkrick Feb 21, 2017
be7e67c
fix payment failures (tested)
mattkrick Feb 21, 2017
b64b7fe
be safe about stripeSubscriptionId
mattkrick Feb 21, 2017
b9ef59c
refactor invoiceCreated
mattkrick Feb 21, 2017
8defdb5
Meeting sidebar, check who can navigate
ackernaut Feb 21, 2017
f3bbd7b
Yank console logs
ackernaut Feb 21, 2017
a049b3c
Merge branch 'add-orgs-agenda-list' into add-orgs
ackernaut Feb 21, 2017
aaa452a
attempted merge into master
mattkrick Feb 21, 2017
d5f5e9e
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 21, 2017
ba1f2c1
fix editing status
mattkrick Feb 21, 2017
c051bc3
autolint
mattkrick Feb 21, 2017
fec226e
little lint
mattkrick Feb 21, 2017
8de6350
server lint
mattkrick Feb 21, 2017
a453d34
Added jest plugin to yarn.lock
jordanh Feb 21, 2017
dd11ff5
Lint
jordanh Feb 21, 2017
900fad7
work on invoice created edge cases
mattkrick Feb 22, 2017
71a640f
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 22, 2017
3167f24
Merge branch 'add-orgs' of github.com:ParabolInc/action into add-orgs
jordanh Feb 22, 2017
3e1f478
wire up invoice list
mattkrick Feb 22, 2017
0979f3d
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 22, 2017
482db49
Lint fixes.
jordanh Feb 22, 2017
6fa41d4
Merge branch 'add-orgs' of github.com:ParabolInc/action into add-orgs
jordanh Feb 22, 2017
1025344
create invoiceDetails query
mattkrick Feb 22, 2017
07f81ab
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 22, 2017
ce12cc0
Mowr lint
jordanh Feb 22, 2017
de7a76c
Merge branch 'add-orgs' of github.com:ParabolInc/action into add-orgs
jordanh Feb 22, 2017
7fad205
Even mowr lint
jordanh Feb 22, 2017
e29efa0
bump to node 7.6.0 (leave babel-polyfill in prod for unsupported mobi…
mattkrick Feb 22, 2017
f41d489
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 22, 2017
65018ac
remove legacy add-module-exports (required babel es2015-preset)
mattkrick Feb 22, 2017
0080840
Various clean-up, lint
ackernaut Feb 22, 2017
f4c078d
First pass at empty org list CTA panel
ackernaut Feb 22, 2017
e7fba46
Notification count in standard user hub
ackernaut Feb 22, 2017
6e02d6a
add invoices (untested)
mattkrick Feb 22, 2017
2561b24
fix empty dashboards
mattkrick Feb 23, 2017
d1731be
fix .babelrc order and invoice.created edge case
mattkrick Feb 23, 2017
66396bb
fix invoice detail line items
mattkrick Feb 23, 2017
f7b70a7
minor fixes to invoice
mattkrick Feb 23, 2017
c7896fd
Update styles for invoice amount section
ackernaut Feb 23, 2017
5ae0bff
remove next month's charges upon failed payment
mattkrick Feb 23, 2017
d1b3b84
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 23, 2017
dd024ee
A little more padding for amount section
ackernaut Feb 23, 2017
c063b03
Fixes mouse enter, leave for Progress Bar
ackernaut Feb 23, 2017
ec0f6a9
fix payment status wording
mattkrick Feb 23, 2017
6e4bae9
Merge remote-tracking branch 'origin/add-orgs' into add-orgs
mattkrick Feb 23, 2017
fcfa9cb
add upcoming invoice to the orgbilling list
mattkrick Feb 23, 2017
b8ae43f
add upcoming invoice details
mattkrick Feb 24, 2017
4706cea
lint free
mattkrick Feb 24, 2017
5fe564e
tiny cleanup
mattkrick Feb 24, 2017
0313df2
Merge branch 'master' into add-orgs
mattkrick Feb 24, 2017
e57a13b
fix lint
mattkrick Feb 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 9 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"presets": ["react", "es2015", "stage-0"],
"presets": ["react"],
"plugins": [
["transform-class-properties"],
["transform-export-extensions"],
["transform-object-rest-spread"],
["react-hot-loader/babel"],
["transform-decorators-legacy"],
["add-module-exports"],
["react-hot-loader/babel"]
["transform-class-properties"],
["transform-es2015-modules-commonjs"],
["transform-es2015-destructuring"],
["transform-es2015-classes"]
]
}
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ SEGMENT_WRITE_KEY="rKdQ0ZHoyoBEJ3X2kMDV2uJl46Ayby3g"

SENTRY_DSN="https://x:[email protected]/z"
SENTRY_DSN_PUBLIC="https://[email protected]/z"

STRIPE_SECRET_KEY="sk_test_WUUUMuChAsCoSaS"
STRIPE_PUBLISHABLE_KEY="pk_test_DaMeLaLlAvE"

ULTRAHOOK_API_KEY="sourApplesAndSweetCarrots"

INTRANET_JWT_SECRET="ZG9udHlvdWxvb2thdG1leW91d2VpcmRv"
2 changes: 2 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Environment variables used when NODE_ENV=testing
RETHINKDB_URL=rethinkdb://localhost:28015/actionTesting
18 changes: 10 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
"env": {
"browser": true,
"node": true,
"mocha": true
"jest": true
},
"rules": {
"arrow-body-style": 0,
"babel/generator-star-spacing": 0,
"react/no-multi-comp": 0,
"global-require": 0,
"import/default": 0,
"import/no-duplicates": 0,
"import/named": 0,
"import/namespace": 0,
"import/no-unresolved": 0,
"import/no-named-as-default": 2,
"arrow-body-style": 0,
"import/no-named-as-default": 0,
"comma-dangle": 0,
"id-length": 0,
"indent": [
2,
2,
{
"SwitchCase": 1
"SwitchCase": 1,
}
],
"no-alert": 0,
Expand All @@ -36,14 +36,16 @@
"no-confusing-arrow": 0,
"max-len": [
1,
140
140,
],
"object-curly-spacing": 0,
"react/jsx-space-before-closing": 0
"react/jsx-space-before-closing": 0,
"react/no-multi-comp": 0
},
"plugins": [
"import",
"jest",
"react",
"import"
],
"parser": "babel-eslint",
"settings": {
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
.env
.idea/
.happypack/
dll/
build/
dll/
node_modules/
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Action is a Node.js application based upon the
| Client State | [Redux](http://redux.js.org/) |
| Client Data Cache | [Cashay](https://github.com/mattkrick/cashay) |
| Front-end Views | [React](https://facebook.github.io/react/) |
| Styling | [aphrodite](https://github.com/khan/aphrodite) |
| Styling | [aphrodite](https://github.com/khan/aphrodite) |
| Unit Testing | [jest](https://facebook.github.io/jest) |

Action is programmed in ECMAscript ES6/7 (including async/await).
Transpilation is provided by [babel](https://github.com/babel/babel).
Expand Down Expand Up @@ -90,6 +91,7 @@ In this mode, webpack will hot swap your updated client modules without
needing to restarting the development server.

```bash
$ npm run build:dll
$ npm run dev
```
[http://localhost:3000/](http://localhost:3000/)
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
executorType: docker
containerInfo:
- image: node:6.9.4
- image: node:7.6.0
- image: rethinkdb:2.3.5
stages:
build:
Expand Down
71 changes: 44 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,63 @@
"main": "index.js",
"scripts": {
"start": "NODE_ENV=production node ./src/server/server.babel.js",
"dev": "NODE_ENV=development node ./src/server/server.babel.js",
"start:tunnel": "export $(grep ^ULTRAHOOK_API_KEY .env | tr -d '\"') && ultrahook -k $ULTRAHOOK_API_KEY dev 3000",
"dev": "if [ ! -f \"dll/vendors.json\" ] ; then npm run build:dll ; fi ; NODE_ENV=development node ./src/server/server.babel.js",
"build": "rimraf build && concurrently \"npm run build:client\" \"npm run build:server\"",
"build:deploy": "rimraf build && npm run build:server && npm run build:client-deploy",
"build:min": "rimraf build && concurrently \"npm run build:client-min\" \"npm run build:server\"",
"bs": "npm run build && npm start",
"debug:stripe": "node ./src/server/billing/debug.babel.js",
"quickstart": "npm run db:migrate && npm run build && npm run start",
"build:client": "NODE_ENV=production webpack --config ./webpack/prod.babel.js",
"build:dll": "NODE_ENV=production webpack --config ./webpack/webpack.config.dll.js",
"build:client-min": "NODE_ENV=production WEBPACK_MIN=true webpack --config ./webpack/prod.babel.js",
"build:client-deploy": "NODE_ENV=production WEBPACK_DEPLOY=true WEBPACK_MIN=true webpack --config ./webpack/prod.babel.js",
"build:server": "NODE_ENV=production webpack --config ./webpack/server.babel.js",
"db:migrate": "./src/server/database/migrate.sh up-all",
"test": "NODE_ENV=testing ava ./src/**/__tests__/**/*-tests.js --verbose",
"db:migrate-testing": "NODE_ENV=testing ./src/server/database/migrate.sh up-all",
"test": "NODE_ENV=testing jest",
"test:intranetToken": "node ./src/server/utils/getIntranetToken.babel.js",
"db:migrate-up": "./src/server/database/migrate.sh up",
"db:migrate-up-all": "npm run db:migrate",
"db:migrate-down": "./src/server/database/migrate.sh down",
"db:migrate-down-all": "./src/server/database/migrate.sh down-all",
"lint": "eslint 'src/**/*.js' 'tests/*.js' 'webpack/*.js'",
"lint": "eslint 'src/**/*.js' 'webpack/*.js'",
"lint:fix": "eslint --fix 'src/**/*.js' 'tests/*.js' 'webpack/*.js'",
"profile": "webpack -p --config ./webpack/prod.babel.js --profile --json > stats.json"
"profile": "NODE_ENV=development webpack --config ./webpack/dev.babel.js --profile --json > stats.json"
},
"pre-commit": [],
"devDependencies": {
"ava": "^0.17.0",
"babel-cli": "6.18.0",
"babel-core": "6.18.2",
"babel-eslint": "^6.1.2",
"babel-jest": "^18.0.0",
"babel-loader": "6.2.7",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-react-transform": "2.0.2",
"babel-plugin-static-fs": "1.1.0",
"babel-plugin-transform-async-generator-functions": "^6.22.0",
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.22.0",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-preset-es2015": "6.18.0",
"babel-plugin-transform-es2015-classes": "^6.23.0",
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-react": "6.16.0",
"babel-preset-stage-0": "6.16.0",
"babel-register": "6.18.0",
"chance": "^1.0.4",
"concurrently": "2.2.0",
"eslint": "^3.10.2",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.12.0",
"eslint-plugin-jest": "^19.0.0",
"eslint-plugin-react": "5.2.2",
"file-loader": "0.9.0",
"jest": "^18.1.0",
"jest-junit-reporter": "^1.0.1",
"json-loader": "0.5.4",
"lockfile": "^1.0.2",
"manifest-assets-webpack-plugin": "^4.0.0",
Expand All @@ -68,12 +84,11 @@
"redbox-react": "1.3.3",
"rethink-migrate": "^1.3.1",
"rimraf": "2.5.4",
"sinon": "^1.17.6",
"stats-webpack-plugin": "0.4.2",
"transform-loader": "^0.2.3",
"unused-files-webpack-plugin": "^3.0.0",
"url-loader": "0.5.7",
"webpack": "2.1.0-beta.25",
"webpack": "2.2.0",
"webpack-dev-middleware": "1.8.4",
"webpack-hot-middleware": "^2.13.2",
"webpack-shell-plugin": "^0.4.3",
Expand All @@ -86,11 +101,10 @@
"auth0": "^2.5.0",
"auth0-lock": "^9.2.2",
"aws-sdk": "^2.7.19",
"babel-polyfill": "6.16.0",
"babel-runtime": "6.18.0",
"bcrypt": "^0.8.7",
"bcrypt": "^1.0.2",
"body-parser": "1.15.2",
"cashay": "^0.22.1",
"cashay": "^0.22.4",
"cheerio": "^0.22.0",
"compression": "1.6.2",
"cors": "2.8.1",
Expand All @@ -107,54 +121,57 @@
"isomorphic-fetch": "2.2.1",
"jsonwebtoken": "^7.1.9",
"jwt-decode": "^2.1.0",
"lodash.throttle": "^4.1.1",
"mailcomposer": "^3.12.0",
"mailgun-js": "^0.7.13",
"mime-types": "^2.1.13",
"ms": "^0.7.2",
"node-env-flag": "0.1.0",
"oy-vey": "^1.0.0-alpha",
"raven": "^0.12.1",
"react": "15.4.0",
"react": "^15.4.2",
"react-async-hoc": "0.2.0",
"react-copy-to-clipboard": "^4.2.3",
"react-dnd": "^2.1.4",
"react-dnd-html5-backend": "^2.1.2",
"react-dom": "15.4.0",
"react-dom": "^15.4.2",
"react-fontawesome": "^1.4.0",
"react-helmet": "^3.2.2",
"react-hotkey-hoc": "^0.2.1",
"react-markdown": "^2.4.4",
"react-notification-system": "^0.2.10",
"react-portal-hoc": "^0.3.2",
"react-redux": "^4.4.6",
"react-router": "2.8.0",
"react-router": "2.8.1",
"react-textarea-autosize": "^4.0.5",
"redux": "3.6.0",
"redux-form": "^6.2.0",
"redux-logger": "2.7.4",
"redux-raven-middleware": "^1.1.0",
"redux-segment": "^1.5.0",
"redux-segment": "^1.6.0",
"redux-socket-cluster": "^0.10.1",
"redux-storage-engine-localstorage": "^1.1.2",
"redux-storage-whitelist-fn": "^4.0.1",
"redux-thunk": "2.1.0",
"rethinkdbdash": "2.3.26",
"serve-favicon": "^2.3.2",
"shortid": "^2.2.6",
"sinon": "^1.17.6",
"socketcluster": "^5.0.23",
"socketcluster-client": "^5.0.21",
"socketcluster": "^5.3.0",
"socketcluster-client": "^5.2.5",
"stripe": "^4.14.0",
"tap-xunit": "^1.7.0",
"tinycolor2": "^1.4.1",
"webpack-s3-plugin": "^0.9.2"
},
"ava": {
"babel": "inherit",
"require": [
"babel-register"
]
},
"engines": {
"node": "6.2.0",
"node": "7.6.0",
"npm": "3.9.3"
},
"jest": {
"modulePaths": [
"<rootDir>/src"
],
"testRegex": "/__tests__/.*-tests\\.jsx?$",
"testResultsProcessor": "./node_modules/jest-junit-reporter",
"verbose": true
}
}
2 changes: 1 addition & 1 deletion src/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const initialState = {};
if (module.hot) {
/* eslint-disable global-require, no-shadow */
module.hot.accept('./Root', () => {
const Root = require('./Root');
const Root = require('./Root').default;
render(
<AppContainer>
<Root store={store}/>
Expand Down
7 changes: 4 additions & 3 deletions src/client/makeStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {createMiddleware, createLoader} from 'redux-storage-whitelist-fn';
import {createTracker} from 'redux-segment';
import createEngine from 'redux-storage-engine-localstorage';
import makeReducer from 'universal/redux/makeReducer';
import {APP_REDUX_KEY, APP_VERSION, APP_VERSION_KEY} from 'universal/utils/constants';
import {APP_REDUX_KEY, APP_VERSION_KEY} from 'universal/utils/constants';

const storageWhitelist = type => {
const whitelistPrefixes = ['@@auth', '@@cashay', '@@root'];
Expand Down Expand Up @@ -60,8 +60,9 @@ export default async initialState => {
));
}
const versionInStorage = window.localStorage.getItem(APP_VERSION_KEY);
if (APP_VERSION !== versionInStorage) {
window.localStorage.setItem(APP_VERSION_KEY, APP_VERSION);

if (__APP_VERSION__ !== versionInStorage) { // eslint-disable-line no-undef
window.localStorage.setItem(APP_VERSION_KEY, __APP_VERSION__); // eslint-disable-line no-undef
return store;
}
const load = createLoader(engine);
Expand Down
Loading