Commit Graph

131 Commits

Author SHA1 Message Date
Pablo Vazquez 6ea22dfcce Fix missing update of task type on task saving 2016-09-23 19:39:14 +02:00
Pablo Vazquez 052344af26 Create Shot workflow
Still needs update on the list
2016-09-23 19:38:57 +02:00
Pablo Vazquez 892f5a7360 Add icon to Save Changes 2016-09-23 18:07:28 +02:00
Pablo Vazquez 5f3bab95e2 Copy to clipboard for shots 2016-09-23 18:07:28 +02:00
Pablo Vazquez 303d1c48ae Link font-pillar 2016-09-23 18:07:27 +02:00
Sybren A. Stüvel 3548334ae0 Add pretty-printed shot info, for debugging/demo'ing purposes. 2016-09-23 17:44:37 +02:00
Sybren A. Stüvel 13c67e3ab8 Allow limited PATCHing of shots from Blender and Web.
Soon PATCH should become the only way in which shots are edited, so
we should possibly remove PUT permissions.
2016-09-23 17:19:26 +02:00
Sybren A. Stüvel 56567532ff Use Pillar's new node_type_utils to set node type permissions.
This separates the mechanism of setting the policy from the actual
policy itself.
2016-09-23 17:19:26 +02:00
Sybren A. Stüvel 5c94fb5f9c Redefined some properties of node type 'attract_shot'. 2016-09-23 17:19:26 +02:00
Pablo Vazquez 092cc6aa72 Typo in input type 2016-09-23 16:24:30 +02:00
Pablo Vazquez 6c47b9564f Fix shot-status on firefox 2016-09-23 15:48:25 +02:00
Pablo Vazquez 6fa0604b07 Refactor task_open/shot_open into item_open
Also renamed task-details div to item-details div. Much nicer and generic.

Thanks a lot to Dr. Sybren for the code review and unlimited support <3
2016-09-23 14:53:03 +02:00
Sybren A. Stüvel 146d10ffbd Added shot ID (so it can be copied & pasted to Blender) 2016-09-23 14:06:11 +02:00
Sybren A. Stüvel 3925c044d5 Added task deletion. GUI still ugly, though. 2016-09-23 13:58:14 +02:00
Sybren A. Stüvel 971b8e6392 Fix for task creation 2016-09-23 13:47:47 +02:00
Sybren A. Stüvel a42a2fe371 Removed unused file 2016-09-23 11:51:10 +02:00
Sybren A. Stüvel ce25e75f07 Directly set data-context on body with Jinja rather than JS 2016-09-23 11:50:21 +02:00
Sybren A. Stüvel 314156ca1e ReferenceError'ised two more JS throw statements 2016-09-23 11:50:02 +02:00
Sybren A. Stüvel b3f4e8f7eb Nicer js check 2016-09-23 10:45:31 +02:00
Sybren A. Stüvel e6e03125f7 Made shot and task links real links with JS click handlers.
This allows "open in new window", while still using XHR for regular clicks.
2016-09-23 10:44:27 +02:00
Sybren A. Stüvel 78111968ab Added project URL to body dataset.
This can be accessed using ProjectUtils.projectUrl(), requires Pillar
91e3ec659f68.
2016-09-23 10:44:27 +02:00
Sybren A. Stüvel 72a25434ea Stricter parameter checking in JavaScript. 2016-09-23 10:43:18 +02:00
Sybren A. Stüvel 498e1d5ecc Added etag checking when saving tasks & shots. Still a bit rough.
Needs nicer user interface stuff for explaining what's going on.
2016-09-23 09:36:27 +02:00
Pablo Vazquez d13abb5b34 set context for Task 2016-09-22 21:28:06 +02:00
Pablo Vazquez 16d77b4c5c Hide (only visually) field type if we're in shots view 2016-09-22 21:27:59 +02:00
Pablo Vazquez c90f40b645 Style item name 2016-09-22 21:27:31 +02:00
Pablo Vazquez 997a12ee11 Shot status indicator and other minor tweaks 2016-09-22 21:27:15 +02:00
Pablo Vazquez cb24b313d0 Add shot status indicator on the left 2016-09-22 21:26:56 +02:00
Pablo Vazquez b9ce421378 Shots list: Make thumbnail column collapsable 2016-09-22 19:26:10 +02:00
Pablo Vazquez cbc19ac18d Minor style tweaks to tasks list and select2 2016-09-22 19:25:52 +02:00
Pablo Vazquez 22f778c7a9 Move flash-on to _base, since it's generic 2016-09-22 19:14:58 +02:00
Pablo Vazquez c9959a839b Pillar's tutti is now loaded on layout 2016-09-22 19:07:26 +02:00
Pablo Vazquez 8b1af91778 Gulp: Don't livereload by default
When running gulp watch, we were livereloading by default, which meant we can't have multiple 'gulp watch'.
2016-09-22 18:09:29 +02:00
Pablo Vazquez 1b4cd09281 Added 'type' to options when saving form, for status-bar details
Also fixed the title of the header. It was removing the status-bar when setting "Shot details"
2016-09-22 17:46:17 +02:00
Sybren A. Stüvel 0767463ead Added /attract/<project_url>/shots/<shot-id> endpoint 2016-09-22 17:25:55 +02:00
Sybren A. Stüvel f1dc2b2d06 Renamed /attract/<project_url>/shots/with-task/<task-id> endpoint 2016-09-22 17:25:07 +02:00
Sybren A. Stüvel 5c4499658c Allow calling a @attract_project_view()-decorated function efficiently.
@attract_project_view() now checks to see if you're passing an SDK
resource as the first parameter. In that case it assumes you know what
you're doing and simply passes all parameters as-is.
2016-09-22 17:25:07 +02:00
Pablo Vazquez 85c7908ac6 Shots view: set task as active when selecting it 2016-09-22 17:09:43 +02:00
Pablo Vazquez e2db647c20 Tweaks to flash-on/off 2016-09-22 16:43:19 +02:00
Pablo Vazquez 4b9b53a53c Shot list: collapse columns by clicking on the title 2016-09-22 15:50:13 +02:00
Pablo Vazquez 86ddd0ac14 Fix select2 not working on shots 2016-09-22 15:44:47 +02:00
Sybren A. Stüvel a786fc3b3d Some tweaks for shot editing 2016-09-22 15:44:24 +02:00
Sybren A. Stüvel b5d335672e Added shot editing. 2016-09-22 15:29:18 +02:00
Sybren A. Stüvel d8824eeb63 Fixed issue saving tasks.
The Eve hook that added 'parent_info' caused this issue, as the validation
fails when saving a document that contains this. The easiest fix was to
prefix it with an underscore, so that the SDK automatically strips it
before saving.
2016-09-22 15:29:11 +02:00
Sybren A. Stüvel 8a360c0cda Moved shot-related code to a new attract.shots package 2016-09-22 14:21:55 +02:00
Sybren A. Stüvel 066fc91780 Added parent info to retrieved task nodes.
Added an Eve hook that adds {'parent_info: {'node_type': 'type',
'name': '...'}} to returned task nodes.
2016-09-22 14:09:32 +02:00
Pablo Vazquez e3e586583f Use divs instead of table tags
Tables are non-responsive by design and require more overrides to be cross-browser compatible
2016-09-22 12:31:39 +02:00
Sybren A. Stüvel 7dee8f7c44 Moved task stuff into a new attract.tasks package 2016-09-22 11:48:37 +02:00
Sybren A. Stüvel c45613b5fa Added /attract/<project_url>/shots/with-task/<task-id> endpoint 2016-09-22 11:32:04 +02:00
Sybren A. Stüvel 1e72d0425e Missed one $(task) → $task 2016-09-22 11:24:45 +02:00