Repository navigation
Conversation
b19b1b0 to
9220d5e
Compare
bd861ae to
23715fa
Compare
|
@artonge i had a closer look here and merged the widget components together. should now have less duplications. |
23715fa to
579f4a9
Compare
579f4a9 to
e8f95de
Compare
Let's remove that for now, as the concept hasn't been finalised yet. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
e8f95de to
579f4a9
Compare
Done👍 |
579f4a9 to
20c1355
Compare
37ac01e to
17058da
Compare
Add ITeamManager::isMemberOfTeam, reusing the member-only Circles probe, and authorize team membership before resolving team-capable widgets while preserving the personal dashboard paths. Isolate applicability, metadata and item failures per provider: log a warning and omit only the broken widget from the response. Move the team dashboard UI into the dashboard app as an embeddable `dashboard-team` widget. It shares widget loading, headings, picker tiles and item rendering with the personal dashboard. Assisted-by: Copilot:gpt-6.1-sol Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Stefan Dietrich <stefan.dietrich@dataport.de>
Only team-scoped widget listings need to check team membership. Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Stefan D. <st.dietrich93@gmail.com> Assisted-by: Copilot:gpt-6.2-sol Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17058da to
b8ee8cf
Compare
|
Can you share a example implementation of the new |
b8ee8cf to
260ba2b
Compare
I used collectives for local development and have my current iteration in the linked draft |
There was a problem hiding this comment.
Thanks a lot for pushing this, the membership check and the tests look good already. A few comments inside, mostly about the new OCP interface and the frontend embed 👍
Not a blocker: each team page load and each tab refocus checks team membership on both requests (/widgets and /widget-items) and calls isEnabledForTeam() on every team widget twice. That's fine for now, but it should stay cheap, so the docblock asking implementations not to fetch items is important
| * Implementations must enforce the user's access to the team's resources. | ||
| * | ||
| * @since 36.0.0 | ||
| */ |
There was a problem hiding this comment.
Could you specify in the docblock what "enforce access" means here? The controller already checks team membership, so is membership enough, or must the implementation check each resource (e.g. a collective shared with the team but with tighter permissions)? Implementers will copy whatever this says.
There was a problem hiding this comment.
The docblock does now specify what enforce means - is it clear enough?
| * `richObject` is a {@link TeamDashboardOptions} object; the host owns the | ||
| * layout persistence and is notified when the dashboard becomes unavailable. | ||
| */ | ||
| registerWidget(type, (el, { accessible, richObject }) => { |
There was a problem hiding this comment.
Any reason to go through the reference widget registry here? richObject is meant to be serialisable reference data, and here it carries loadLayout/saveLayout/onUnavailable callbacks, so we're using the registry as a cross-app mount API. Should we rather export a small mount function (e.g. mountTeamDashboard(el, options)) that hosts call directly? That would also let the options be typed properly instead of checked by hand at runtime.
There was a problem hiding this comment.
👍 the simpler mount function seems like a good approach - feels clenaer. mountTeamDashboard(el, options) returns an unmount function and is typed now
Keep team layout and widget requests under the same reload lifecycle so an unavailable dashboard does not leave stale widgets or an open picker. Co-authored-by: Louis <louis@chmn.me> Assisted-by: Copilot:gpt-6.2-sol Signed-off-by: Stefan D. <st.dietrich93@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Stefan Dietrich <stefan.dietrich@dataport.de>
260ba2b to
86e3831
Compare
Summary
Add widget funcionality to teams. This extends the existing widget API to allow context aware widgets (user scope or team specific scope).
Assisted-by: Copilot:gpt-6.1-sol
Related
Checklist
3. to review, feature component)stable32)AI (if applicable)