feat(PageReference): Preview "Page not found" if page is not accessible#2343
feat(PageReference): Preview "Page not found" if page is not accessible#2343
Conversation
1b8a148 to
b9e1846
Compare
b9e1846 to
70409ac
Compare
|
Psalm error looks unrelated to me, I did not touch the dependencies.. |
|
I just noticed that there is a vue component that might be good to use: https://nextcloud-vue-components.netlify.app/#/Components/NcEmptyContent What do you think? |
70409ac to
e400b96
Compare
e400b96 to
afd85ef
Compare
|
Thanks @pymnh! Without looking at the code yet, from the screenshots it looks like the not found preview is much larger than the normal preview. I'd expect them to have the same height. |
|
I am not sure if one can squeeze the NcEmptyContent to the same size as the regular preview. Should I then rather just revert NcEmptyContent and manually set title, description and icon with fallbacks with same alignment and font size like the regular preview? |
I would say so, yes. NcEmptyContent has a rather strict structure with everything (icon, title, description) below each other. So I think we're better with not using it here 😉 |
afd85ef to
97a63c1
Compare
…ssible Signed-off-by: Peymaneh <peymaneh@posteo.net>
06d84b6 to
afec771
Compare


📝 Summary
Change
accessible = falseif current user cannot resolveaccessible = false, show an informative "Page not found" preview and explain that the page does not seem to exist or that the permissions are missing to view it.On click: open a popover to confirm if user really wants to follow the linkReasoning:
🖼️ Screenshots
🏚️ Before
🏡 After
🚧 TODO
accessibleproperty is the right place to indicate that a "resource not found" message should be displayed🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)