Commit Graph

402 Commits

Author SHA1 Message Date
Brad Fitzpatrick 01f2173e64 ui: fix link from old detail page to new UI detail page
Change-Id: Iaa36f532169d3f6697060d9baa2178caaa19423d
2014-02-27 21:06:03 -08:00
Aaron Boodman ff16bcf1e9 Merge "Starting to fool around with property sheet UI" 2014-02-27 09:59:35 +00:00
Aaron Boodman 7ecc4858b9 Starting to fool around with property sheet UI
Looks like: http://i.imgur.com/HxE1oFi.png

Change-Id: Id3188148fd1ef97dac16a53e96ebe41f64cf1ee7
2014-02-27 01:57:49 -08:00
Brad Fitzpatrick a61c921750 Merge "ui: Add QR code for configuring mobile clients." 2014-02-24 01:43:28 +00:00
Brad Fitzpatrick 6d30b8d274 camlistored: make test use CAMLI_VAR_DIR instead of tweaking HOME/HOMEPATH/APPDATA
For upcoming change to enable strictness in osutil's use of host paths
during tests.

Change-Id: Ied1602d6dc4f5c92e97f760e04b97cc965610b20
2014-02-23 10:19:01 -08:00
Bill Thiede 58b6497b14 ui: Add QR code for configuring mobile clients.
Creates new page @ /ui/mobile.html for generating a QR code that
embeds configuration data for setting up mobile clients.

Imports code.google.com/p/rsc/{gf256,qr} version:

parent: 149:a3cbaf2339c4 tip

This addresses the server and web components of
https://camlistore.org/issue/372

Change-Id: If9239dd138707080afd7dedb5770d04893cbf0ba
2014-02-21 19:58:54 -08:00
Aaron Boodman a41cc2bab1 Merge "Fix choppy scrolling when flinging on OS X." 2014-02-18 07:12:08 +00:00
Aaron Boodman 930e3bee64 Fix choppy scrolling when flinging on OS X.
This was caused by a bug in Chrome: wheel events stop firing when source
element is removed from DOM. Workaround: leave element in DOM for awhile.

On the upside, React makes this clean to implement. No need to keep state
to remember to remove the dangling element. It automatically gets removed
when it is no longer the last element to receive the wheel event!

Change-Id: I1b9372bfd1edcfb532f6825d99044a314048c3b4
2014-02-17 23:08:22 -08:00
Aaron Boodman 5b811fa1b1 Actually turn Closure's DEBUG flag off. This was backwards in 17e3799cda.
Change-Id: I6228ef77bdbe82ad77fa5d60c853df02820d23c1
2014-02-17 10:58:44 -08:00
Aaron Boodman 17e3799cda Turn Closure's DEBUG flag off.
This improves the performance of Promise construction, which
improves the performance of dropping large numbers of files onto
the UI at once.

There is still more we could do to improve dropping large numbers
of files (probably we should implement a work queue and not try
to start uploading them all in parallel), but this is a quick
solution and probably helps other parts of the code as well.

Change-Id: I398ba8d6776b38b1a61a22598099c52dc2130469
2014-02-14 19:18:54 -08:00
Aaron Boodman cd7aedf8c4 Merge "Fix regression in navigation to non-image file." 2014-02-11 14:41:50 +00:00
Aaron Boodman 64f1d810b8 Fix regression in navigation to non-image file.
Before the initial click would yield an empty page, and you'd have
to refresh to see anything.

Change-Id: Ic26915aa26e4d9285e72ae7fa856283ee6790922
2014-02-11 06:39:30 -08:00
Brad Fitzpatrick 79cb116dbb Merge "pkg/types/serverconfig: json-tagged struct" 2014-02-11 00:56:11 +00:00
mpl 6707837806 pkg/types/serverconfig: json-tagged struct
Also changed the TLS/HTTPS config keys for consistency.

http://camlistore.org/issue/339

Change-Id: I704ec129f91b93ebb20bc1191816166a2f10692d
2014-02-10 21:49:11 +01:00
Aaron Boodman 4229b286dc Merge "Improve layout on mobile." 2014-02-08 23:48:17 +00:00
Aaron Boodman f36bbe54aa Improve layout on mobile.
There is still a lot of work to do on mobile, but this makes it
slightly better. Increases the default scale to something sane.
Fix the bug where we don't layout using entire width.

window.outerWidth is somehow completely busted on mobile.

Change-Id: Id574d6ee14ba59f6e835725d378f228796ff7ccf
2014-02-08 15:47:19 -08:00
Aaron Boodman 02e787202a Fix regression where checkmarks don't turn blue on click.
Was caused by incorrectly building child component props in
willReceiveProps() before new props are actually set.

Simplified code to always rebuild child component props in render().

Removed overly-clever code that was trying to filter out some
prop updates. We don't send spurious prop updates in any case that
I can think of.

Change-Id: Ie067b2d667517c24524863eac62baef0178608cb
2014-02-06 21:13:27 -08:00
Aaron Boodman b0775e03e9 Combine the 'Create permanode' feature with the existing 'Create set with x items'.
The web UI was implying 'folderness' by looking for certain claims against
permanodes. This won't allow us to represent empty dynamic folders, which seems
wrong.

Thus I've changed it to just represent all pemanodes as folders. In the future,
if there are more specific types of permanodes, we can handle that.

Change-Id: I73523634114c61f33705a88a4147e13ad60c59d6
2014-02-05 10:05:38 -08:00
mpl d4b4194ed0 ui: check for non nil results before using them
http://camlistore.org/issue/352

Change-Id: I321d2bf2a48eed9aa0b9b4f5bf5d630d3741af97
2014-01-28 00:14:20 +01:00
mpl 448f266d72 rename pkg/serverconfig to pkg/serverinit
To avoid awkwardness with future pkg/types/serverconfig

http://camlistore.org/issue/339

Change-Id: If8a00941cdc269d6bcfe0f76c596154d5969bf0d
2014-01-23 17:18:46 +01:00
Aaron Boodman 69cb19ccdb Throttle updates to history so the URL bar doesn't flicker so much.
Change-Id: Ie2b1cc8a6abe2d41083dcd1116940508b22661f5
2014-01-20 12:00:04 -08:00
Aaron Boodman 976c78cb30 Turn React-based UI on by default.
Change-Id: I7370954eb1fda679be25e3ab652fb3776c55c938
2014-01-20 11:32:04 -08:00
Aaron Boodman 499fdbf47d Virtual scroll!
Change-Id: I3c564758f110975ecc1a5e6cf9a7db1777ade54b
2014-01-20 11:11:52 -08:00
Aaron Boodman ce5d5f99fb Fix two small bugs from previous commit:
1) We don't need the isMounted() check anymore because we're not poking at the DOM.
2) Detail() now needs a history param.

Change-Id: I420e3211fde40673e3123a2b18460d0d12f32a70
2014-01-19 14:19:27 -08:00
Aaron Boodman 6333126e79 Yak shave to fix a layout glitch moments after page load.
Was basically caused by layout<->scrollbar interaction loop. Fix was to
calculate size of scrollbar and take it into account during layout.

At the same time, I decided to clean up the code and put the search results
scrollbar actually within BlobItemContainer, rather than having
BlobItemContainer reach up and change scroll styles of document.

This necessitated getting rid of some of the clever transform origin
stuff I was doing before, but it is less needed now.

Change-Id: I8641d87d8e593336aed48acef8b31680a52d7e6c
2014-01-19 14:03:42 -08:00
Aaron Boodman 1bd3e811ab Merge "Save scroll position and restore on back or escape from detail." 2014-01-19 20:29:15 +00:00
Aaron Boodman 251cbbd906 Merge "Wire drag and drop file uploads back up." 2014-01-19 20:29:02 +00:00
Aaron Boodman 74e9b4dc4e Merge "Stop showing pyramid throbber if an image fails to load." 2014-01-19 19:39:41 +00:00
Aaron Boodman 30477cf50a Stop showing pyramid throbber if an image fails to load.
Change-Id: I30193f7ffe178d728d0b6e4fced2fc77d93e239a
2014-01-19 11:38:58 -08:00
Aaron Boodman c848f09199 Fix bug where nav is not open when returning from detail page if was open when left.
Change-Id: I527ad917345dd6fcc67fe12c18ac06539f6e457e
2014-01-19 01:21:44 -08:00
Aaron Boodman 671a1b0085 Save scroll position and restore on back or escape from detail.
Change-Id: I844bb00509e744396821ce7bff7d1951b9639cac
2014-01-19 01:11:52 -08:00
Aaron Boodman a9dde0d354 Wire drag and drop file uploads back up.
Change-Id: I19939d152cfb66e10cf87105bef71849a508c82d
2014-01-19 01:06:05 -08:00
Aaron Boodman ce43c79437 Merge "Add SearchSession#refreshIfNecessary() - use to do manual refreshes when websocket not avaialble." 2014-01-18 22:45:37 +00:00
Aaron Boodman 8387acb5ce Merge "Trial fix for infinite piggie bug." 2014-01-18 22:45:11 +00:00
Aaron Boodman 5e1a6fe242 Add SearchSession#refreshIfNecessary() - use to do manual refreshes when websocket not avaialble.
Change-Id: Icb451ddff8fc6917f837f289f1b0f83fa7cc5d81
2014-01-18 02:11:56 -08:00
Aaron Boodman d53107050f Whoops. Fix stupid bugs introduced right before I committed 2dd87d.
Change-Id: I6a6032c1d8e49b08ccd919d8b7bd69c00c8858e7
2014-01-18 00:11:35 -08:00
Aaron Boodman 675c9d8cd8 Merge "Wire up the remaing nav items." 2014-01-18 08:07:23 +00:00
Aaron Boodman 2dd87d7281 Wire up the remaing nav items.
Change-Id: I730b192a2f1945659e953cdf0d45c0a77b6e161b
2014-01-18 00:06:17 -08:00
Aaron Boodman 5b16c9202b Trial fix for infinite piggie bug.
Change-Id: I589c1c6dd8d68552376f274c9bcb091fc6a289f3
2014-01-17 22:05:57 -08:00
Aaron Boodman d3c6824495 Prevents the little horizontal jostle that happens in the detail page
when you press 'right' the first time.

Change-Id: Ic39607258c056bcee898463ef4ed80cc64799baf
2014-01-17 00:15:36 -08:00
Aaron Boodman 69b1b76c88 Wire search back together in the React UI
Change-Id: Ica7afd21dda28a8a90ebd3c4dc3807821e018678
2014-01-16 16:55:59 -08:00
Aaron Boodman 37173dc7d4 Merge "Hardware accelerate the piggy." 2014-01-17 00:36:17 +00:00
Aaron Boodman c5a31bafbb Wire up the detail view to the React-based UI.
The scroll position doesn't restore when navigating back to the
search page from the detail page. That will be interesting.

Change-Id: I5a008cdd6d1c83a4b8031d14ee26cfd9e383d73d
2014-01-16 00:41:02 -08:00
Aaron Boodman c3ca04d82b Wire up some of the nav items.
Change-Id: I9c120badad448d6eae736133475dbc0acfe8993a
2014-01-15 23:05:30 -08:00
Aaron Boodman 95f95a2623 Hardware accelerate the piggy.
This improves the performance of the piggy animation by doing it in hardware
and eliminating a layout pass on every frame.

Change-Id: I02cf8b521af60af0e61f70c7f732f97074bdcdc1
2014-01-15 20:54:21 -08:00
Aaron Boodman 1803104293 Implement most of BlobItemContainer using React.
Still left to do: update the nav in response to selection changes,
implement nav items, drag and drop.

Change-Id: I3f7cd0b8bdccd11a5816dce2bc214e60f844a130
2014-01-15 20:17:21 -08:00
Aaron Boodman 2d8c5992bf Merge "Convert nav to React." 2014-01-16 04:16:48 +00:00
Aaron Boodman ade30f9637 Convert nav to React.
Change-Id: Id05e1c87f97e0c20b935ae5360ce089993aae5ac
2014-01-15 20:14:45 -08:00
Brad Fitzpatrick d1f2ae227f Start of Foursquare importer.
Change-Id: I56b0e71a3aad697b82710ebea6fc941436a3c119
2014-01-14 20:45:23 -08:00
Aaron Boodman 646cda0c24 Reset ServerSession#isComplete in response to websocket updates.
BUG=https://code.google.com/p/camlistore/issues/detail?id=333

Change-Id: Ia6ac92254bdaadfe9b8df2d7242d9bfb61539d63
2014-01-10 21:20:47 -08:00