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

refactor: move code parts from files app to web-pkg or web-client #9731

Merged
merged 17 commits into from
Sep 27, 2023

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 26, 2023

Description

Successor of #9602 (I couldn't push the rebased branch to the fork for some reasons, hence creating a new PR. Big thanks to @jacob-nv for doing most of the heavy lifting - I'm just fixing some small leftover issues).

Moved code parts:

  • space- & file-action composables (to web-pkg)
  • some components (to web-pkg)
    • AppBar
    • SidebarToggle
    • ContextActions
    • ResourceTable
  • some resource composables (to web-pkg)
    • useResourceRouteResolver
    • useScrollTo
    • useSelectedResources
  • router composable useActiveLocation (to web-pkg)
  • many resource helpers (to web-pkg)
  • folder loaders (to web-pkg)
  • route builders & helpers (to web-pkg)
  • helper for buildShare... methods (to web-client)

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@update-docs
Copy link

update-docs bot commented Sep 26, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@JammingBen JammingBen changed the title refactor: move code parts from files app to web pkg refactor: move code parts from files app to web-pkg or web-client Sep 26, 2023
@JammingBen JammingBen force-pushed the refactor-from-files-app-to-web-pkg branch from 23e4e33 to 44c1c71 Compare September 26, 2023 12:29
Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

Looking good, thanks so much for taking care of this annoying task 👏🏻 🎉

@JammingBen JammingBen force-pushed the refactor-from-files-app-to-web-pkg branch from 9de1bb6 to 4487ea2 Compare September 27, 2023 12:38
@JammingBen JammingBen marked this pull request as ready for review September 27, 2023 12:47
@JammingBen JammingBen force-pushed the refactor-from-files-app-to-web-pkg branch from 55f0060 to 52b15d7 Compare September 27, 2023 12:51
@JammingBen JammingBen enabled auto-merge (squash) September 27, 2023 12:55
@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 4 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 2 Security Hotspots
Code Smell A 83 Code Smells

58.1% 58.1% Coverage
2.2% 2.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@JammingBen JammingBen mentioned this pull request Sep 27, 2023
9 tasks
@JammingBen JammingBen merged commit 4446453 into master Sep 27, 2023
1 of 2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the refactor-from-files-app-to-web-pkg branch September 27, 2023 13:23
@dschmidt
Copy link
Member

🎉

AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
)

* Backup app, dependencies migration to web-pkg

* remove FilesViewWrapper.vue, repurposed useScrollTo, replaced SharesNavigation.vue with slot

* removed import of FileViewWrapper

* replacing useScrollTo from web-app-files for web-pkg

* removed useResourceViewDefault dependency with useSelectedResources, backup app

* removing unnecessary files from web-pkg, migrating tests to web-pkg

* removing copied dependencies from web-app-files, fixing imports

* fix stuff after rebase

* remove backup app as it was only needed temporarily

* clean up lock file

* fix scrollTo composable events

* create web-client helper for shares

* fix unit tests

* add missing scrollToResourceFromRoute param

* test: remove test helper createMockActionComposables

Importing and using this helper with jest.mock() can cause problems when the mocked method is exported via a index.ts file, hence removing it.

* fix remaining issues after rebasing

* pass fullShareOwnerPaths property to aggregateResourceShares

---------

Co-authored-by: Jacob Noah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants