feat: Add office switcher with feature comparison#57555
Conversation
|
I'm not sure it is a good idea to add a flag specifically for AIO. |
No strong opinions about this, if we see other use cases to disable I think yes, otherwise I'd keep it simple that way and it is also what is used in other places like app_api |
25297c6 to
7596cc3
Compare
7596cc3 to
5423ce3
Compare
|
Let's keep this check for now, we can add an option if we see other use cases. |
|
I also adjusted the design with feedback from @marcoambrosini to match the one in the all-in-one UI. |
elzody
left a comment
There was a problem hiding this comment.
Looks fine to me. Gave it a quick test and it looks quite nice.
emberfiend
left a comment
There was a problem hiding this comment.
One thing that I only discovered by looking at the code was that you could click an already-selected suite to deactivate it. Maybe a text clue, explicit "deactivate" button on an active suite, or 3rd column (or button below?) called "None" or "No suite" could alleviate this. Just a nitpick though, not serious :)
Worth mentioning: I can't test the install -> activate process because the installs hit version compatibility errors, but from what I understand it should be okay.
| transition: all 0.2s ease; | ||
| display: flex; | ||
| flex-direction: column; | ||
|
|
There was a problem hiding this comment.
I would add a
& * {
cursor: pointer;
}
here, otherwise the divs and lis lose the cursor when hovered
marcoambrosini
left a comment
There was a problem hiding this comment.
I agree with @emberfiend that it would be nice to have a disable button just like in the AIO. The click to disable behavior is a bit counterintuitive.
A few other points:
- I would use the same Icon we have in AIO for the installed item
-
Since here we have more horizontal space I would probably also append
(installed)to the title of the installed suite. -
I'm curious about how the loading state looks like, is there a spinner in place of the check icon for the selected one?
5423ce3 to
cf80cca
Compare
|
/compile |
Signed-off-by: Julius Knorr <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
4db4a94 to
9561ce2
Compare
|
/backport to stable33 |
|
@juliusknorr why was this merged with red CI? PHPUnit is related. This errors are caused by this PR:
|
| $this->initialState->provideInitialState('appstoreEnabled', $this->config->getSystemValueBool('appstoreenabled', true)); | ||
| $this->initialState->provideInitialState('appstoreBundles', $this->getBundles()); | ||
| $this->initialState->provideInitialState('appstoreUpdateCount', count($this->getAppsWithUpdates())); | ||
| $this->initialState->provideInitialState('isAllInOne', filter_var(getenv('THIS_IS_AIO'), FILTER_VALIDATE_BOOL)); |
There was a problem hiding this comment.
Tests need to be adjusted as they count the number of initial state.
Change was also performed by #57533 and so it got dropped after the rebase I guess |
Implements an office switcher in the apps management to promote alternatives. For all in one this is hidden as we then have the switcher in nextcloud/all-in-one#7421