rickatech / backstage

MS Office, custom WebDAV storage preset
0 stars 0 forks source link

Open Panel Redesign #40

Open rickatech opened 4 years ago

rickatech commented 4 years ago

Here's is how the WebApp looks for locating documents. This task is about resigning the MS Windows Office Plug-in 'open tab' to show a more similar design for finding / opening documents. image

Here's a rough mockup ... with two behaviors (for now)

For now make a NEW Open2 tab while we evaluate the new design (leave the current Open tab as is), once the new open tab passes alpha testing will consider having the origin Open tab removed.

gh_bs_040b

Related

rickatech commented 4 years ago

So I think there is still a DMR file listing issue ... it shows in the original Open, but likely it could influences Open 2 as well.

There should be only one Document1.docx file listed under Organizations/Julie's Blanket/Julie_Todd_test/Julie_Todd_test_M1/*

This unit test shows that the API is returning the file list with .../Document1.docx .../Test/Document1.docx https://wb04.proloop.com/api/test/files_list.php?token=qqovpozf7p3guqe6gghlzp1goyoqhg6jgt8mobcrvs5orwevk2hywxfu50gimxr7&path=Organizations%2FJulie%27s%2520Blanket%2FJulie_Todd_test%2FJulie_Todd_test_M1%2F*

Key is to only show file listed in their matching directory ... when user selects a directory / folder, the file list should only show files actually in it ... this is causing some confusionin the backend as opening a file thinking it in the wrong directory may be corrupting the backend file store.

image

rickatech commented 4 years ago

Latest wb04 looks better, still seeing an anomaly

I noticed the file list API shows under .../Julie_Todd_test_M1 23 files, 1 dir = 24

Yet for https://wb04.proloop.com/ DMR view of .../Julie_Todd_test_M1 it shows 17 files + 1 dir (only on left) = 18, skipping these files listed in the API output (which should be shown)

6x4fyg
test
g
df
test1
1234

Also interesting, http://wb04.proloop.com/dav under .../Julie_Todd_test_M1 I see 18 files, and 1 directory (Test) listed = 19 Which skips the following files even though the API lists it under .../Julie_Todd_test_M1

220px-The_Fabs.jpg
._6x4f.png
~$180305_test.docx
FF07406E.tmp
C6F984D9.tmp

( I think I know what is causing this and likely can fix on backend, but it is unrelated to the DMR view concern above)

rickatech commented 4 years ago

I see the list all files is working :-)

I am seeing mixed results when adding additional parameters, sayt API allows supplying a partial file path ... it may be that your plug-in code is only supplying the search content or filename substring parameter to get the first 10 matches, when it should also supply the partial pathname parameter as well to constrain the search results

I've tested the unit test API, which seems to abide by said constraints ...

https://stage.zlflow.com/api/sayt/f/Organizations/Julie's%20Blanket?keywords=&editor=&s=doc&fid=&body=

[
{"id":1,"path":"Organizations\/Julie's Blanket\/testing\/foo.doc",
  "keywords":"rick","contents":"","name":"foo.doc","dir":false},
{"id":2,"path":"Organizations\/Julie's Blanket\/testing\/bar.doc",
  "keywords":"","contents":"","name":"bar.doc","dir":false},
{"id":142,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/Test\/Document1.docx",
  "keywords":"","contents":"","name":"Document1.docx","versionId":"0003-0028-0014-0142-0008",
  "lockingUserId":4,"lockDate":"2019-06-25 22:08:13.105207","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":142,"userId":3,"creationDate":"2018-03-15 10:02:25"},
{"id":151,"path":"Organizations\/Julie's Blanket\/JB_RIck_C1\/JB_Rick_C1_M1\/20180305_test_2A.docx",
  "keywords":"","contents":"","name":"20180305_test_2A.docx","versionId":"0003-0031-0020-0151-0003","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":151,"userId":3,"creationDate":"2018-03-30 00:51:16"},
{"id":138,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/Test\/rick_test_20180227a.docx",
  "keywords":"","contents":"","name":"rick_test_20180227a.docx","versionId":"0003-0028-0014-0138-0003","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":138,"userId":3,"creationDate":"2019-06-25 22:01:51"},
{"id":138,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/Test\/rick_test_20180227a.docx",
  "keywords":"","contents":"","name":"rick_test_20180227a.docx","versionId":"0003-0028-0014-0138-0003","dir":false,
  "username":"julie","firstName":"Julie","lastName":"Brown","fileId":138,"userId":4,"creationDate":"2018-02-28 04:41:21"},
{"id":146,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/20180318_test.docx",
  "keywords":"test","contents":"","name":"20180318_test.docx","versionId":"0003-0028-0014-0146-0017",
  "lockingUserId":4,"lockDate":"2019-03-04 23:36:39.48043","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":146,"userId":3,"creationDate":"2019-02-26 08:50:26"},
{"id":146,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/20180318_test.docx",
  "keywords":"test","contents":"","name":"20180318_test.docx","versionId":"0003-0028-0014-0146-0017",
  "lockingUserId":4,"lockDate":"2019-03-04 23:36:39.48043","dir":false,
  "username":"julie","firstName":"Julie","lastName":"Brown","fileId":146,"userId":4,"creationDate":"2018-03-19 00:34:28"},
{"id":183,"path":"Organizations\/Julie's Blanket\/Julie_Todd_test\/Julie_Todd_test_M1\/20180728.docx",
  "keywords":"","contents":"","name":"20180728.docx","versionId":"0003-0028-0014-0183-0017",
  "lockingUserId":3,"lockDate":"2019-06-30 07:19:23.916274","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":183,"userId":3,"creationDate":"2018-07-29 03:22:11"},
{"id":139,"path":"Organizations\/Julie's Blanket\/JB_RIck_C1\/JB_Rick_C1_M1\/20180305_test.docx",
  "keywords":"","contents":"","name":"20180305_test.docx","versionId":"0003-0031-0020-0139-0003","dir":false,
  "username":"rickatech","firstName":"Rick","lastName":"Armstrong","fileId":139,"userId":3,"creationDate":"2018-03-06 08:00:39"}
]
rickatech commented 4 years ago

Open2, add a button or make double clicking open document.

I noticed when I typed 'test' into the file contents field in the original open tab, it would show 10 rows. If I type 'tes' in Open2 it shows 10 rows, but not if I type 'test'.

rickatech commented 4 years ago

image

For some reason I still can't open files from file list in Open 2 panel

shahshyam commented 4 years ago

Please check our latest version 5.2.0