Skip to content

Merge Collections to Master #1340

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

Merged
merged 248 commits into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
3d2a862
Added design of the API key page
Vertmo Oct 13, 2018
db71a2b
Added DB schema and backend logic for API keys creation and deletion
Vertmo Oct 14, 2018
4d4f636
You can now generate keys from the advanced settings interface
Vertmo Oct 15, 2018
78695d3
Improved interface for copying key after creation
Vertmo Nov 5, 2018
3b55ff8
Hashing keys before storing them
Vertmo Nov 6, 2018
f0b669d
Added Basic Auth using passport-http
Vertmo Nov 6, 2018
89babdc
Update test snapshots
andrewn May 13, 2019
a860762
Adds passport-http to package-lock.json
andrewn May 13, 2019
403234a
Moves API key creation to server
andrewn May 13, 2019
90f34d7
Updates client UI to request token generation from server
andrewn May 14, 2019
de5e1a9
Removes AdvancedSettingsView as functionality now in AccountView
andrewn May 14, 2019
7bfacf0
Do not return any keys in API
andrewn May 14, 2019
69d5a87
Fixes API controller tests
andrewn May 14, 2019
504eaca
Displays all API keys in a table, including new token information
andrewn May 14, 2019
ed87d4c
Aligns AccountView to top of page
andrewn May 14, 2019
a03eed1
Copy button copies token to clipboard
andrewn May 14, 2019
3e760ca
Styles Account and APIKeys components
andrewn May 15, 2019
89dd41d
lastUserAt should be null if the key has never been used
andrewn May 15, 2019
7fd226f
Removes hashedKey from APIKey data when serialising
andrewn May 15, 2019
27ea1c1
Adds a temporary route for checking Personal Access Tokens work
andrewn May 15, 2019
9f627c1
Fixes bug where lastUsedAt timestamp wasn't set when access token used
andrewn May 15, 2019
c508765
Fixes linting errors
andrewn May 15, 2019
3cedf37
Changes API_KEY_REMOVED action constant to match API_KEY_CREATED
andrewn May 15, 2019
34fea13
Fixes Account back behaviour
andrewn May 15, 2019
fe513fd
Adds spacing around social login button
andrewn May 22, 2019
693542e
Forces light theme on Account page
andrewn May 22, 2019
7c4f180
Consistent user data returned from API
andrewn May 22, 2019
5bf2835
Experiment with "Checks" in Travis output (#1081)
andrewn May 24, 2019
b41b353
fixes #417, add default p5.js inclusion to non-minified version, and …
catarak May 24, 2019
b7ead2a
re #1086, initial staging configuration (#1087)
catarak May 29, 2019
f54f41e
re #1086, fix typo in staging deploy script name
catarak May 30, 2019
f8d6cb4
Merge branch 'master' into feature/public-api
andrewn Jun 11, 2019
e210d8c
Adds themed table-row-stripe colour to be used globally
andrewn May 22, 2019
5e74be4
Adds theme-aware CSS for "user" pages
andrewn May 22, 2019
067adb0
Makes form CSS theme-aware
andrewn May 22, 2019
2854aa9
Extracts tabs into reusable CSS
andrewn May 23, 2019
ac1afd5
Increases modal width to match design
andrewn May 23, 2019
a6d7ea4
Unifies button styles for forms and app
andrewn May 24, 2019
7b0d128
Uses colours from design style guide
andrewn May 24, 2019
b16cb26
Makes Account view a modal
andrewn May 24, 2019
1f95718
Page background matches selected theme for user pages
andrewn Jun 4, 2019
eb4846c
Fix layout on user pages
andrewn Jun 4, 2019
4679d6a
Show "Back to the editor" in nav on Account view page
andrewn Jun 4, 2019
6f1b6fd
for #950, update babel to v7 (#1077)
catarak Jun 5, 2019
8caeb0d
Add sorting to sketches #789 (#910)
siddhant1 Jun 6, 2019
528f57a
Removes the createProject IDE action as it's not used (#1097)
andrewn Jun 11, 2019
1ef07ed
Fix hover effect on Log in and Sign up nav items (#1085)
shanrauf Jun 11, 2019
a7b465d
Merge branch 'feature/public-api' of https://github.com/processing/p5…
andrewn Jun 12, 2019
d6438aa
Merge branch 'master' into feature/public-api
andrewn Jun 12, 2019
f859cfb
Include @babel/polyfill for jest tests
andrewn Jun 12, 2019
5534f65
Public API for Sketch management documentation (#1076)
andrewn Jul 10, 2019
e81cce1
fix server crash in which error 'regeneratorRuntime is not defined' w…
catarak Jul 11, 2019
f13e806
Added hover effect on sidebar elements (#887)
plxity Jun 12, 2019
edcd225
fixes #943 (#1101)
catarak Jun 12, 2019
38e5022
fixes #945 (#1102)
catarak Jun 12, 2019
3c19087
re #389, update styling in sidebar and editor for icon consistency (#…
catarak Jun 14, 2019
4381c76
update axios to latest version
catarak Jun 18, 2019
0206148
fixes #924 (#1107)
catarak Jun 18, 2019
c385648
Update sketch list styling (#819)
LakshSingla Jun 19, 2019
f641673
Bug/orphaned assets (#1108)
catarak Jun 19, 2019
b94ca8a
for #989, files cannot be renamed to empty string
raclim Jun 30, 2019
1dd723c
for 989, updated folder cannot be renamed to empty string
raclim Jul 11, 2019
d491498
prevent users from adding extension to folder name
catarak Jul 17, 2019
cd21e9a
Fixes bug where requestsOfType() would fail if no body
andrewn Jul 21, 2019
64caab0
You can now generate keys from the advanced settings interface
Vertmo Oct 15, 2018
e77cbf4
Changes API_KEY_REMOVED action constant to match API_KEY_CREATED
andrewn May 15, 2019
f937e72
Makes form CSS theme-aware
andrewn May 22, 2019
e2676ec
for #950, update babel to v7 (#1077)
catarak Jun 5, 2019
d7837a6
Add sorting to sketches #789 (#910)
siddhant1 Jun 6, 2019
4e0ee89
Fix hover effect on Log in and Sign up nav items (#1085)
shanrauf Jun 11, 2019
ab7ecfc
fix lingering errors from rebase
catarak Jul 22, 2019
bfef3e9
Update sketch list styling (#819)
LakshSingla Jun 19, 2019
a10e0f0
You can now generate keys from the advanced settings interface
Vertmo Oct 15, 2018
a851eda
Add sorting to sketches #789 (#910)
siddhant1 Jun 6, 2019
116675f
Fix hover effect on Log in and Sign up nav items (#1085)
shanrauf Jun 11, 2019
4432323
fix errors from rebase, again
catarak Jul 22, 2019
1b461d3
Do not set prevPath if navigation passes through skipSavingPath flag
andrewn Aug 24, 2019
0193ee8
Standalone sketch list and asset page
andrewn Aug 11, 2019
a0a13ab
Flexible table width
andrewn Aug 19, 2019
b1bfb91
Serve assets from /:username/assets, redirecting old path
andrewn Aug 24, 2019
d44a058
Public API: Create new project (fixes #1095) (#1106)
andrewn Aug 30, 2019
1f4bd58
Public API: Namespace private and public APIs (#1148)
andrewn Aug 30, 2019
162d527
Display Access Token tab depending on UI_ACCESS_TOKEN_ENABLED feature…
andrewn Aug 30, 2019
7ea4ae5
Fix linting errors and warnings
andrewn Sep 8, 2019
37fcf46
Public API: Create new project (fixes #1095) (#1106)
andrewn Aug 30, 2019
210e8b6
Public API: Namespace private and public APIs (#1148)
andrewn Aug 30, 2019
0ae7a9e
Display Access Token tab depending on UI_ACCESS_TOKEN_ENABLED feature…
andrewn Aug 30, 2019
83978ac
Adds Collections model and Editor API to manage collections
andrewn Jul 8, 2019
9c36f2b
Adds collections Nav item behind a feature flag
andrewn Jul 9, 2019
8ac95c0
SketchList and AssetList set page title
andrewn Sep 8, 2019
d02a413
Displays existing collection
andrewn Jul 9, 2019
dcf65c6
Create Collection
andrewn Jul 9, 2019
1c97152
EditableInput component
andrewn Sep 8, 2019
2df3670
WIP Display collection
andrewn Sep 8, 2019
b258d7c
Fix routing bug displaying Sketch list tab
andrewn Sep 8, 2019
3dbaa90
Splits CollectionList into smaller files
andrewn Sep 9, 2019
55e6b31
Logged in user can use "Add to collection" menu item
andrewn Sep 9, 2019
c575559
Show toast message when creating collection or adding/removing sketches
andrewn Sep 9, 2019
ee896b0
Assets routes should be parsed after server routes so /add-to-collect…
andrewn Sep 9, 2019
611730c
Refactor Nav
andrewn Sep 11, 2019
fef4bd8
Shorten date displayed in Collection List items for better layout
andrewn Sep 11, 2019
cf3c132
Padding for table cells to align with header
andrewn Sep 11, 2019
125051c
Use Nav with user menu in "dashboard" layout
andrewn Sep 11, 2019
4163664
Style Dashboard tabs to match visual style of other tabs in app
andrewn Sep 11, 2019
a0384f1
Do not empty table when fetching new data
andrewn Sep 11, 2019
5575c63
Sets Collection List modal in addMode to fixed width
andrewn Sep 11, 2019
3a65afb
change link to editor back to 'back to editor'
catarak Sep 11, 2019
f09e743
Merge pull request #1143 from andrewn/feature/standalone-sketches
catarak Sep 11, 2019
7f2529a
merge master
catarak Sep 11, 2019
5011c1f
Display icon-based add/remove button in Collection List
andrewn Sep 16, 2019
d2ec686
Remove logging
andrewn Sep 16, 2019
8b058d8
Edit sketch name/description
andrewn Sep 16, 2019
709aa8e
Fix sketch list padding in collection view
andrewn Sep 16, 2019
b980ec7
Add sketch to collection from collection view
andrewn Sep 17, 2019
a93ac48
Enable collection and sketch to be created from dashboard page
andrewn Sep 17, 2019
52e9872
Collection metadata area layout improvements
andrewn Sep 18, 2019
5900e62
unify navigation for authentication pages, add authorization to front…
catarak Sep 19, 2019
5c54983
add searchbar to sketches dashboard view, adjust sketch list and asse…
catarak Sep 24, 2019
c9551a3
Adds Collections model and Editor API to manage collections
andrewn Jul 8, 2019
af955b1
Adds collections Nav item behind a feature flag
andrewn Jul 9, 2019
6ca6e78
Displays existing collection
andrewn Jul 9, 2019
c57ead4
Create Collection
andrewn Jul 9, 2019
521e117
EditableInput component
andrewn Sep 8, 2019
8781036
WIP Display collection
andrewn Sep 8, 2019
959ff3e
Splits CollectionList into smaller files
andrewn Sep 9, 2019
f98919e
Logged in user can use "Add to collection" menu item
andrewn Sep 9, 2019
20a5ac5
Show toast message when creating collection or adding/removing sketches
andrewn Sep 9, 2019
95f6105
Assets routes should be parsed after server routes so /add-to-collect…
andrewn Sep 9, 2019
c288481
Shorten date displayed in Collection List items for better layout
andrewn Sep 11, 2019
a385b47
Padding for table cells to align with header
andrewn Sep 11, 2019
679304d
Do not empty table when fetching new data
andrewn Sep 11, 2019
0086601
Sets Collection List modal in addMode to fixed width
andrewn Sep 11, 2019
2a0a560
Display icon-based add/remove button in Collection List
andrewn Sep 16, 2019
60ec678
Remove logging
andrewn Sep 16, 2019
7a1fa66
Edit sketch name/description
andrewn Sep 16, 2019
7f78fda
Fix sketch list padding in collection view
andrewn Sep 16, 2019
27804ac
Add sketch to collection from collection view
andrewn Sep 17, 2019
f535600
Enable collection and sketch to be created from dashboard page
andrewn Sep 17, 2019
0f3ce8e
Collection metadata area layout improvements
andrewn Sep 18, 2019
e2f8fe7
fix merge conflicts
catarak Sep 25, 2019
067e065
update nav on collection view
catarak Sep 25, 2019
c84f590
Fix eslint errors
andrewn Oct 2, 2019
ec32eb1
Collection Create is a modal
andrewn Oct 2, 2019
38f13c2
Remove modals from IDEView now that they are part of DashboardView
andrewn Oct 2, 2019
fc02f49
Fix layout of Searchbar in IDEView
andrewn Oct 2, 2019
bcebc07
Collection Add Sketch and Share buttons
andrewn Oct 3, 2019
cf9a601
Share and Add Sketch button copy
andrewn Oct 3, 2019
c981bc8
Fixes collection metadata spacing when user is not the owner
andrewn Oct 3, 2019
3573253
Add/Remove sketch to collection by clicking on entire row
andrewn Oct 19, 2019
a82e079
Delete collection from list
andrewn Oct 20, 2019
4c5e62b
Remove "Add sketches" link as it have been replaced by primary button
andrewn Oct 20, 2019
45dbb8e
Remove sketch from collection view page
andrewn Oct 20, 2019
36f305e
Fix bug where "empty" view is shown when loading
andrewn Oct 20, 2019
66704e3
Dashboard tabs should match other tabs on the site
andrewn Oct 20, 2019
3554fe9
Show Searchbar clear button only when text is entered
andrewn Oct 20, 2019
edfddcc
Export unconnected Searchbar for use elsewhere (with sketch search)
andrewn Oct 20, 2019
af8d25f
Popover component to add sketches to collection from SketchList
andrewn Oct 20, 2019
48c4183
Add missing check image
andrewn Oct 20, 2019
ad09ce1
Filter collections using Searchbar
andrewn Oct 20, 2019
7e5613b
Show if sketch is in collection and allow removal
andrewn Oct 20, 2019
7137c7b
Increase hit area of dashboard switcher tabs
andrewn Oct 20, 2019
f928665
Show empty state when no collections
andrewn Oct 20, 2019
126bdca
Entire SketchList row adds/removes sketch to collection
andrewn Oct 20, 2019
5611d32
Allow extra elements to be injected into Overlay header
andrewn Oct 21, 2019
935dd12
Add sketch Searchbar when displaying modal in Collection view
andrewn Oct 21, 2019
59469d9
Remove unused code
andrewn Oct 21, 2019
14a8f48
Fix all linting errors/warnings
andrewn Oct 21, 2019
3d2a7be
merge master to feature/public-api branch
catarak Oct 22, 2019
28356a9
remove view column from asset list, add when clicking on asset row, o…
catarak Oct 31, 2019
846d2bb
Merge branch 'feature/public-api' into feature/sketch-collections
catarak Oct 31, 2019
e738221
Style DashboardActions below tabs
andrewn Nov 4, 2019
18af6ae
Show add/remove/in collection icon in SketchList
andrewn Nov 4, 2019
08fd6b8
New simplfied collection list when adding a sketch
andrewn Nov 5, 2019
0d061a9
merge in master
catarak Nov 7, 2019
ad13684
New simplified sketch list when adding from Collection view
andrewn Nov 10, 2019
161725c
Remove popover and "add to collection" code from SketchList
andrewn Nov 10, 2019
ff86e45
Put border around lists
andrewn Nov 10, 2019
e3949a7
Tidy up Asset styles
andrewn Nov 10, 2019
9ac0cc1
Use bar chart for current size of used assets
andrewn Nov 10, 2019
b6e6018
Remove addMode code
andrewn Nov 10, 2019
ed1945a
Rename collection from collection list view
andrewn Nov 10, 2019
ecba54e
Remove padding
andrewn Nov 10, 2019
e00cc30
Fix layout of sketch add
andrewn Nov 10, 2019
212ad64
Implement CollectionSearchbar in addition to SketchSearchbar
andrewn Nov 10, 2019
13c4549
Merge branch 'feature/public-api' into feature/sketch-collections
andrewn Nov 10, 2019
b751353
collections: add styling changes for dashboard pages
catarak Nov 14, 2019
00b788f
update collection view, update nav list so that 'my collections' does…
catarak Nov 24, 2019
1056005
"View" should link to sketch
andrewn Nov 25, 2019
8adb134
Merge branch 'feature/sketch-collections' of https://github.com/andre…
andrewn Nov 25, 2019
8132a02
Improve progress bar layout
andrewn Nov 25, 2019
e114a74
Quick add button theme support
andrewn Nov 25, 2019
001c285
Editable Input theme icon
andrewn Nov 25, 2019
e0b6f88
Use secondary button style for now
andrewn Nov 25, 2019
5860b9b
Quick-add item should show hover state when accessed from keyboard
andrewn Nov 25, 2019
1d4771e
Show placeholder label when Collection has no description
andrewn Nov 25, 2019
df44a62
Remove sketch from collection via icon button
andrewn Nov 25, 2019
5319bbb
merge master into sketch collections, to include updating theming
catarak Nov 25, 2019
ce1c389
Use same remove icon as in QuickAdd panel
andrewn Nov 25, 2019
4f7c9f2
Rename import to match file name
andrewn Nov 25, 2019
387cec1
Merge branch 'feature/sketch-collections' of https://github.com/andre…
andrewn Nov 25, 2019
001a30f
potentional option for collection sharing
catarak Dec 10, 2019
20c2c6c
Merge branch 'feature/sketch-collections' of https://github.com/andre…
andrewn Dec 11, 2019
740401d
Make navigation back to Collection List more obvious
andrewn Dec 11, 2019
0c68327
Fixed-height Overlay for QuickAdd views
andrewn Dec 11, 2019
a2da26d
Better min-width for QuickAdd views
andrewn Dec 11, 2019
4d0aa23
Display Add Sketches Overlay from Collection List
andrewn Dec 11, 2019
a5b6256
Fix linter warnings
andrewn Dec 11, 2019
903550b
Collection owner's username links to their sketches page
andrewn Jan 15, 2020
0660031
Make "Add sketch" copy consistent
andrewn Jan 15, 2020
811c88f
Description should be inactive color if a collection doesn't have one
andrewn Jan 15, 2020
ed481b9
Don't allow Collection name to be empty
andrewn Jan 15, 2020
58b800d
Align pencil icon with label
andrewn Jan 15, 2020
442360c
Increase contrast between in/out of collection icon state in quick ad…
andrewn Jan 15, 2020
8087a3f
Revert "Make navigation back to Collection List more obvious"
andrewn Jan 15, 2020
1a3a1aa
Merge pull request #1164 from andrewn/feature/sketch-collections
catarak Jan 28, 2020
942a27d
update default version of p5.js to 0.10.2
catarak Dec 4, 2019
37b9901
remove p5.dom from default files as it's been integrated into p5 core…
catarak Dec 5, 2019
70036d3
fixes #1219
catarak Dec 5, 2019
4780299
align toolbar
touristt Dec 23, 2019
4714af9
Fixes #914, aligns project name and autorefresh on Mac and Windows
catarak Jan 8, 2020
5b191c7
Update README.md
gabrielsroka Dec 29, 2019
f3e8b81
Update IDEView.jsx
gabrielsroka Dec 29, 2019
b02eef0
Fix p5 console being cleared on pause
Jan 5, 2020
74e3cc8
Updated Contributing Installation Guide
ashu8912 Jan 14, 2020
73eca92
fix #1246, Find modal does not select input text on second Command + F
Jan 24, 2020
40f1bcf
Update node and npm engines in package.json to lts
catarak Jan 28, 2020
bc4a9f5
Merge in master
catarak Jan 28, 2020
954d632
Merge master
catarak Jan 28, 2020
294b297
Fix linting and prop type errors
catarak Jan 29, 2020
01665fd
Merge branch 'master' into feature/public-api
catarak Feb 4, 2020
1ef4b66
Fix PropType Errors
catarak Feb 4, 2020
2ce36be
Update UX of Quick Add List: when clicking on row/hovering on row, ca…
catarak Feb 11, 2020
6931741
Fix overlay styling for Add to Collection Overlay for sketch list
catarak Feb 11, 2020
7ae02be
Update styling of Github and Google Buttons, updating styling of Acco…
catarak Feb 11, 2020
36f7be6
Close Collection Share dropdown when clicking outside of it
catarak Feb 11, 2020
d3da898
Merge branch 'master' into feature/public-api
catarak Feb 13, 2020
5654ed1
Merge branch 'master' into feature/public-api
catarak Mar 3, 2020
36d2028
add script to add total size to all user accounts, add totalSize to u…
catarak Aug 8, 2019
b8fb51d
Fix merge conflict for cherry-picking 0b8e78df3a0c49d5dcf706b1c26346d…
catarak Aug 12, 2019
7c1aa2e
Fix merge conflicts for cherry picking 0bac332a9eb360978e686d6be8bff9…
catarak Sep 10, 2019
0cde29e
re #168, get asset deletion route to work, update options dropdown on…
catarak Sep 25, 2019
09e403f
change file limit to 250 mb 1000 bytes was for testin
catarak Sep 25, 2019
59fe175
Fix merge conflict for cherry picking 11833e9880257fe8164331689f77f8a…
catarak Sep 26, 2019
1107f73
Add changes for asset upload limit, after cherry-picking changes from…
catarak Mar 3, 2020
9de8257
Fix server-side linting erros
catarak Mar 3, 2020
a6f59fd
Merge pull request #1309 from processing/feature/public-api-asset-limit
catarak Mar 4, 2020
c29e4a1
Close new file modal on enter, update upload limit selector to handle…
catarak Mar 24, 2020
0e0140a
Add upload limit to .env.example
catarak Mar 30, 2020
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: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
API_URL=/api
API_URL=/editor
AWS_ACCESS_KEY=<your-aws-access-key>
AWS_REGION=<your-aws-region>
AWS_SECRET_KEY=<your-aws-secret-key>
Expand All @@ -23,3 +23,5 @@ PORT=8000
S3_BUCKET=<your-s3-bucket>
S3_BUCKET_URL_BASE=<alt-for-s3-url>
SESSION_SECRET=whatever_you_want_this_to_be_it_only_matters_for_production
UI_ACCESS_TOKEN_ENABLED=false
UPLOAD_LIMIT=250000000
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"env": {
"API_URL": {
"value": "/api"
"value": "/editor"
},
"AWS_ACCESS_KEY": {
"description": "AWS Access Key",
Expand Down
24 changes: 24 additions & 0 deletions client/components/AddRemoveButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import PropTypes from 'prop-types';
import InlineSVG from 'react-inlinesvg';

const addIcon = require('../images/plus.svg');
const removeIcon = require('../images/minus.svg');

const AddRemoveButton = ({ type, onClick }) => {
const alt = type === 'add' ? 'add to collection' : 'remove from collection';
const icon = type === 'add' ? addIcon : removeIcon;

return (
<button className="overlay__close-button" onClick={onClick}>
<InlineSVG src={icon} alt={alt} />
</button>
);
};

AddRemoveButton.propTypes = {
type: PropTypes.oneOf(['add', 'remove']).isRequired,
onClick: PropTypes.func.isRequired,
};

export default AddRemoveButton;
Loading