Skip to content

feat(sidebar): provide a proxy for the files sidebar#1306

Merged
susnux merged 1 commit intomainfrom
feat/sidebar-api-v2
Dec 16, 2025
Merged

feat(sidebar): provide a proxy for the files sidebar#1306
susnux merged 1 commit intomainfrom
feat/sidebar-api-v2

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Aug 13, 2025

- based upon #1305

Additionally to registering sidebar tabs this also provides a public interface to access the sidebar itself.
Which can be used to retrieve or set the currently active tab, allows to open or close it and getting the open state.

We can then use this proxy to later add fallbacks for different Nextcloud versions once we modernized the files sidebar, so apps can stick with this interface regardless of the Nextcloud version and implementation used underneath.

@susnux susnux requested review from ShGKme and skjnldsv August 13, 2025 17:43
@susnux susnux added the 2. developing 2️⃣ Work in progress label Aug 13, 2025
@susnux susnux force-pushed the feat/sidebar-api-v2 branch from 2884d99 to c10176b Compare December 16, 2025 13:48
@susnux susnux changed the base branch from feat/sidebar-api to main December 16, 2025 13:49
@susnux susnux added type: enhancement 🚀 New feature or request 3. to review 3️⃣ Waiting for reviews and removed 2. developing 2️⃣ Work in progress labels Dec 16, 2025
@susnux susnux marked this pull request as ready for review December 16, 2025 13:50
@susnux susnux requested review from CarlSchwan and artonge December 16, 2025 13:50
@susnux susnux force-pushed the feat/sidebar-api-v2 branch from c10176b to 0602156 Compare December 16, 2025 14:22
Additionally to registering sidebar tabs this also provides
a public interface to access the sidebar itself.
Which can be used to retrieve or set the currently active tab,
allows to open or close it and getting the open state.

We can then use this proxy to later add fallbacks for different
Nextcloud versions once we modernized the files sidebar,
so apps can stick with this interface regardless of the Nextcloud
version and implementation used underneath.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the feat/sidebar-api-v2 branch from 0602156 to 570a190 Compare December 16, 2025 14:39
@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

❌ Patch coverage is 72.09302% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.66%. Comparing base (af703f9) to head (570a190).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lib/sidebar/Sidebar.ts 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1306      +/-   ##
==========================================
- Coverage   91.21%   89.66%   -1.56%     
==========================================
  Files          24       25       +1     
  Lines         694      706      +12     
  Branches      189      191       +2     
==========================================
  Hits          633      633              
- Misses         50       62      +12     
  Partials       11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@susnux susnux merged commit 0895ae9 into main Dec 16, 2025
9 of 11 checks passed
@susnux susnux deleted the feat/sidebar-api-v2 branch December 16, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: enhancement 🚀 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants