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 space front page & bump SDK to v2.0.0 #6287

Merged
merged 88 commits into from
Feb 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
6bbfa59
Add space front page
Jan 20, 2022
ebf8407
Add images to space overview
Jan 20, 2022
9a0f043
Add breadbrumb, align images
JammingBen Jan 21, 2022
a24b3d7
Ajdust to owncloud sdk v2
Jan 26, 2022
61aa6cc
Add files table to space
JammingBen Jan 27, 2022
46f836d
make spaceId route param optional
fschade Jan 27, 2022
2f851cf
Add webDavUrl prop to the resource object, adjust paths
JammingBen Jan 28, 2022
0d6bab7
OCResource folderLink from web
Jan 28, 2022
488f7e1
Undo wrong committed files
Jan 28, 2022
2f08753
Enable New Action Button in spaces
Jan 28, 2022
8e046b9
Fix upload in space sub folder
Jan 31, 2022
8f60ec9
Fix upload folder action
Jan 31, 2022
eb30dfb
Fix breadcrumb
Jan 31, 2022
8b96613
Fix breadcrumb
Jan 31, 2022
220cc98
Fix breadcrumb
Jan 31, 2022
a91a993
Add bulk actions
Jan 31, 2022
457b47e
Don't test tooo much
Jan 31, 2022
2de221b
Lint
Jan 31, 2022
fbfc4b1
Adjust some of the unit tests
JammingBen Jan 31, 2022
694779f
Fix public links
Feb 1, 2022
1feb948
Lint
Feb 1, 2022
7d3409e
Enable unit tests in pipeline again
JammingBen Feb 1, 2022
92608b9
Fix delete on the current folder
JammingBen Feb 1, 2022
c006fc2
Fix integration tests
JammingBen Feb 1, 2022
b217ad0
Fix integration tests
JammingBen Feb 1, 2022
b5c2186
Remove unwanted console.log
Feb 2, 2022
1f4b636
Fix spaces table sort
Feb 2, 2022
fcfbf9f
Fix previews
Feb 2, 2022
022d797
Fix previews for spaces
Feb 2, 2022
e551d7c
Fix unit tests
Feb 2, 2022
e52d40a
Implement change space description, EVEN IF THE BACKEND STILL DOES NO…
Feb 2, 2022
c8abc5a
Add disable/delete actions
Feb 2, 2022
bed5a41
Add disable/delete actions
Feb 2, 2022
0c7656a
Add mixing for the spaces details sidebar, fix issue with opening fol…
JammingBen Feb 2, 2022
00d3f55
Fix issue with unobserving the ResizeOverserver when no README.md is …
JammingBen Feb 2, 2022
980a463
Update packages/web-app-files/src/components/FilesList/NotFoundMessag…
Feb 2, 2022
023a92d
Fix pdf downloads
Feb 2, 2022
66993ba
Add restore mixin
Feb 3, 2022
3bc57d9
Truncate space name if too long
Feb 3, 2022
7c21056
Add and fix unit tests
JammingBen Feb 3, 2022
b61ab42
Update test screenshots
JammingBen Feb 3, 2022
6904937
Update test screenshot (again)
JammingBen Feb 3, 2022
c5eaa54
Use jest fake time
JammingBen Feb 3, 2022
02d2122
Update
Feb 4, 2022
462b3f3
Toggle space image expand
Feb 4, 2022
c23e0cf
Lint
Feb 4, 2022
421471b
Fix alignments, add image fit for space frontpage, adjust snapshots
JammingBen Feb 4, 2022
74440c2
Remove spaces filelist snapshot
JammingBen Feb 4, 2022
95b4d0e
Fake commit.
Feb 4, 2022
271e254
Fake commit.
Feb 4, 2022
94ccdf3
Fix can't edit md file
Feb 4, 2022
8646125
Fix new file
Feb 4, 2022
7da7728
Fix path issues with shares
JammingBen Feb 4, 2022
732a5bf
Remove unnecessary comment line
JammingBen Feb 4, 2022
7cebdd5
Adjust checking if a space is disabled because of the new backend res…
JammingBen Feb 4, 2022
70d8409
Grayscale disabled spaces
Feb 4, 2022
f889b75
Fix renaming in other views, fix share webDavPath
JammingBen Feb 4, 2022
49ab7bb
Add disabled tag
Feb 4, 2022
365dd15
Add disabled tag
Feb 4, 2022
bb0e2ae
Update snapshot
JammingBen Feb 4, 2022
1a623cd
Fix integration tests, update snapshot
JammingBen Feb 4, 2022
35539ba
Add space description to spaces overview
Feb 7, 2022
89b0d6f
Adjust changelog item for SDK
JammingBen Feb 7, 2022
b592e98
Fix file favorite action
JammingBen Feb 7, 2022
bd1f3f6
Bump SDK version to 2.0.0-alpha.2
JammingBen Feb 7, 2022
1c73604
Update snapshot
JammingBen Feb 7, 2022
f830217
Run yarn
JammingBen Feb 7, 2022
a930676
Fix md editor path in app bar
Feb 7, 2022
2cf4cea
Run yarn, rebase
JammingBen Feb 7, 2022
1baf47e
Use right spaces route method
JammingBen Feb 7, 2022
8509a59
Lint
Feb 7, 2022
687367f
update yarn.lock
Feb 7, 2022
9086b65
Update snapshot
JammingBen Feb 7, 2022
7e3fb97
Fix media viewer, run linter
JammingBen Feb 7, 2022
dafce73
Update snapshot
JammingBen Feb 7, 2022
c8351a6
Adjustments
Feb 8, 2022
349265d
Adjustments
Feb 8, 2022
90cea3f
Update snapshots
JammingBen Feb 8, 2022
69aecfb
Add changelog item
JammingBen Feb 8, 2022
1fb0d8e
Fix drag and drop move file in all files list
Feb 8, 2022
1e3ccf6
Remove unwanted console.log
Feb 8, 2022
7ba0181
Remove unwanted console.log
Feb 8, 2022
91bf5fe
Minor fixes according to code review
JammingBen Feb 8, 2022
120bb76
Fix integration tests
JammingBen Feb 9, 2022
9ea2695
Fix resize observer on breadcrumb navigation
JammingBen Feb 9, 2022
8e41ca7
Adjust early returns in mixins
JammingBen Feb 9, 2022
6b7ee19
Remove uneccerssary headline
Feb 9, 2022
1ee31b8
Update snapshot
JammingBen Feb 9, 2022
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
Prev Previous commit
Next Next commit
Remove spaces filelist snapshot
JammingBen committed Feb 9, 2022
commit 74440c2096ab78752c0bad7adff808a591a61f31
Original file line number Diff line number Diff line change
@@ -27,14 +27,8 @@ jest.mock(composables, () => ({

beforeEach(mockAxios.reset)

beforeEach(() => {
jest.useFakeTimers('modern')
jest.setSystemTime(new Date(2020, 3, 1))
})

afterEach(() => {
jest.unmock(composables)
jest.useRealTimers()
})

window.ResizeObserver =
@@ -187,7 +181,6 @@ describe('Spaces project component', () => {

expect(wrapper.find(selectors.emptySpace).exists()).toBeFalsy()
expect(wrapper.vm.paginatedResources.length).toEqual(1)
expect(wrapper).toMatchSnapshot()
})
})
})
Original file line number Diff line number Diff line change
@@ -1,77 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Spaces project component resources should show resources if given 1`] = `
<div class="space-overview">
<div class="oc-grid oc-grid-match oc-px-m oc-mt-m oc-child-width-1-3@s">
<div><img alt="" src="data:image/jpeg;base64,ZmlsZUNvbnRlbnQ=" class="space-overview-image oc-cursor-pointer"></div>
<div>
<h3 class="space-overview-name oc-mb-s">space</h3>
<!---->
<div>
<div class="markdown-container">
<p>fileContent</p>
</div>
<!---->
</div>
</div>
</div>
<table class="files-table oc-mt-xl oc-table oc-table-sticky" id="files-spaces-table">
<thead class="oc-thead">
<tr tabindex="-1" class="oc-table-header-row">
<th class="oc-th oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-shrink oc-text-nowrap oc-table-header-cell oc-table-header-cell-select oc-pl-m " style="top: 0px;"><span class="oc-table-thead-content"><div class="resource-table-select-all"><span><input id="resource-table-select-all" type="checkbox" name="checkbox" class="oc-checkbox oc-checkbox-l" value=""> <label for="resource-table-select-all" class="oc-invisible-sr oc-cursor-pointer">Select all resources</label></span>
</div></span>
<!---->
</th>
<th class="oc-th oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-expand oc-text-nowrap oc-table-header-cell oc-table-header-cell-name" aria-sort="ascending" style="top: 0px;"><span class="oc-table-thead-content">Name</span> <button aria-label="Sort by name" class="oc-button-sort oc-button oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw" variant="passive"></button></th>
<th class="oc-th oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-header-cell oc-table-header-cell-size" aria-sort="none" style="top: 0px;"><span class="oc-table-thead-content">Size</span> <button aria-label="Sort by size" class="oc-button-sort oc-button oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw" variant="passive"></button></th>
<th class="oc-th oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-header-cell oc-table-header-cell-mdate" aria-sort="none" style="top: 0px;"><span class="oc-table-thead-content">Modified</span> <button aria-label="Sort by mdate" class="oc-button-sort oc-button oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw" variant="passive"></button></th>
<th class="oc-th oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-header-cell oc-table-header-cell-actions oc-pr-m" style="top: 0px;"><span class="oc-table-thead-content">Actions</span>
<!---->
</th>
</tr>
</thead>
<tbody>
<tr tabindex="-1" data-item-id="3861" draggable="false" class="oc-tbody-tr oc-tbody-tr-3861">
<td class="oc-td oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-shrink oc-table-data-cell oc-table-data-cell-select oc-pl-m "><span><input id="resource-table-select-3861" type="checkbox" name="checkbox" class="oc-checkbox oc-checkbox-l" value="[object Object]"> <label for="resource-table-select-3861" class="oc-invisible-sr oc-cursor-pointer">Select folder</label></span></td>
<td class="oc-td oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-expand oc-text-truncate oc-table-data-cell oc-table-data-cell-name">
<div class="oc-resource oc-text-overflow"><span class="oc-icon oc-icon-l oc-icon-passive oc-resource-icon oc-resource-icon-folder"><!----></span>
<div class="oc-resource-details oc-text-overflow"><a class="oc-text-overflow">
<!----> <span data-test-resource-path="/" data-test-resource-name="" data-test-resource-type="folder" class="oc-resource-name"><span class="oc-text-truncate"><span class="oc-resource-basename"></span></span>
<!---->
</span>
</a>
<div class="oc-resource-indicators">
<!---->
<!---->
</div>
</div>
</div>
</td>
<td class="oc-td oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-data-cell oc-table-data-cell-size"><span class="oc-resource-size">7.5 MB</span></td>
<td class="oc-td oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-data-cell oc-table-data-cell-mdate" aria-label="in 1 year (June 14, 2021, 11:41 AM GMT+2)"><span tabindex="0">in 1 year</span></td>
<td class="oc-td oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-table-data-cell oc-table-data-cell-actions oc-pr-m">
<div class="resource-table-actions"> <button aria-label="Show context menu" class="resource-table-btn-action-dropdown oc-button oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw" id="context-menu-trigger-3861"><span class="oc-icon oc-icon-m oc-icon-passive"><!----></span></button>
<div id="context-menu-drop-3861" class="oc-drop oc-box-shadow-medium oc-drop-rounded" style="box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.12);"></div>
</div>
</td>
</tr>
</tbody>
<tfoot class="oc-table-footer">
<tr class="oc-table-footer-row">
<td colspan="5" class="oc-table-footer-cell">
<!---->
<div class="oc-text-nowrap oc-text-center oc-width-1-1 oc-my-s">
<p data-testid="files-list-footer-info" data-test-items="1" data-test-files="1" data-test-folders="0" data-test-size="10" class="oc-text-muted">
text
</p>
</div>
</td>
</tr>
</tfoot>
</table>
</div>
`;

exports[`Spaces project component space image should show if given 1`] = `
<div class="space-overview">
<div class="oc-grid oc-grid-match oc-px-m oc-mt-m oc-child-width-1-3@s">