Skip to content

Conversation

@seyfeb
Copy link
Collaborator

@seyfeb seyfeb commented Nov 18, 2023

Topic and Scope

Soon an update to vue 3 is required. (#752)

This PR does some things in preparation:

  • Bump dependencies
  • Migrate all components to composition API
  • Switch to mitt event bus library
  • Restructure .vue files
  • Change JS style to single quotes and required semicolons
  • Add delayed display and loading indicators to RecipeEdit, RecipeList, and RecipeView
  • Add less strict recipe filtering
  • Add option to edit existing recipe as new (cloning)

Closes #1079, closes #1870, closes #1867
The first approach to tackle at least partially #1891

Known Issues

None so far

Impressions

Filtering

Screenshot 2023-11-24 at 16 25 57

Cloning

Screenshot 2023-11-24 at 16 20 28

Loading indicator (delayed)

Screenshot 2023-11-24 at 16 24 27

Formal requirements

There are some formal requirements that should be satisfied. Please mark those by checking the corresponding box.

  • I did check that the app can still be opened and does not throw any browser logs
  • I created tests for newly added PHP code (check this if no PHP changes were made)
  • I updated the OpenAPI specs and added an entry to the API changelog (check if API was not modified)
  • I notified the matrix channel if I introduced an API change

@seyfeb seyfeb added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code Frontend Issue or PR related to the frontend code labels Nov 18, 2023
@seyfeb seyfeb added this to the 0.11.0 milestone Nov 18, 2023
@seyfeb seyfeb force-pushed the chore/prepare-vue-upgrade branch from bd4eba9 to 3c35018 Compare November 18, 2023 19:34
Signed-off-by: Sebastian Fey <[email protected]>
…api by splitting into vue file and composable to replace mixin

Signed-off-by: Sebastian Fey <[email protected]>
Signed-off-by: Sebastian Fey <[email protected]>
…ponents cannot be used as a message bus in Vue.js 3 anymore

Signed-off-by: Sebastian Fey <[email protected]>
…rols` to the store instead of emitting event

Signed-off-by: Sebastian Fey <[email protected]>
@seyfeb seyfeb force-pushed the chore/prepare-vue-upgrade branch from 3c35018 to 2c6ed47 Compare November 19, 2023 21:53
@github-actions
Copy link

github-actions bot commented Nov 19, 2023

Test Results

     27 files  1 242 suites   5m 34s ⏱️
   510 tests    510 ✔️ 0 💤 0
4 590 runs  4 589 ✔️ 1 💤 0

Results for commit 9a4a027.

♻️ This comment has been updated with latest results.

…nputField`, `EditInputGroup` and `useSuggestionsPopup`.

Signed-off-by: Sebastian Fey <[email protected]>
@seyfeb seyfeb force-pushed the chore/prepare-vue-upgrade branch from 457ed93 to e74ff0c Compare November 20, 2023 13:55
…events flickering on fast connections when data is loaded.

Signed-off-by: Sebastian Fey <[email protected]>
Signed-off-by: Sebastian Fey <[email protected]>
… available from store in `RecipeEdit`.

Signed-off-by: Sebastian Fey <[email protected]>
…n filtering `RecipeList`, ignoring accents and some letters. Closes nextcloud#1870.

Signed-off-by: Sebastian Fey <[email protected]>
Signed-off-by: Sebastian Fey <[email protected]>
…and save clone of existing recipe. Also fixes issue with `AppControls` when editing recipe. Closes nextcloud#1867.

Signed-off-by: Sebastian Fey <[email protected]>
@seyfeb seyfeb changed the title WIP: Prepare Vue.js 2 -> 3 upgrade WIP: Prepare Vue.js 2 -> 3 upgrade, several bugfixes and features Nov 24, 2023
…pgrade

# Conflicts:
#	CHANGELOG.md
#	src/components/RecipeList.vue
#	src/components/RecipeView.vue
#	src/components/SettingsDialog.vue
@christianlupus
Copy link
Collaborator

This PR is not yet working smoothly. I managed to get it on par with the current master branch at least such that it could be merged technically. Quite some of the changes made since the branch creation have been manually checked/incorporated by me. However, not everything is running smoothly.

I have seen two still present issues, maybe more are yet hidden as I just quickly tested the merged version:

  1. The settings dialog should reaload the config.

  2. The changed settings are for some reason not propagated to the store. This is only problematic for configs affecting the frontend but nevertheless...

  3. While surfing, I had multiple errors in the browser console about wrong data types of various props. I have not looked into the details and I think, this are just small bugs but nonetheless...
    grafik

  4. Nasty flashing when finishing XHR requests #1891 is not fully addressed, just drop it from the list of solved issues, then we can fix it later.

For now, I am done (still feeling ill) and will have to rest a bit. Sorry, no better results.

Copy link
Collaborator

@christianlupus christianlupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having clicked back and forth in the version, with the fixes applied, I see no breaks anymore in my dev environment.

@christianlupus christianlupus merged commit 8a21d46 into nextcloud:master Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Frontend Issue or PR related to the frontend code javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore accents for filter and search Allow cloning recipes Extract event bus in separate module

2 participants