Skip to content

Conversation

@anttimaki
Copy link
Contributor

No description provided.

Currently these are used to check if the authenticated user can leave
the team (team needs to retain at least one owner) and if the team can
be disanded (team with packages can't be disbanded).
@coderabbitai
Copy link

coderabbitai bot commented Nov 21, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch team-settings-pt5-disband

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

❌ Patch coverage is 28.30189% with 76 lines in your changes missing coverage. Please review.
✅ Project coverage is 9.95%. Comparing base (ff260e4) to head (53b482d).
⚠️ Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
...app/settings/teams/team/tabs/Settings/Settings.tsx 0.00% 44 Missing ⚠️
packages/thunderstore-api/src/get/currentUser.ts 23.52% 13 Missing ⚠️
packages/dapper-ts/src/methods/currentUser.ts 33.33% 10 Missing ⚠️
packages/dapper-fake/src/fakers/user.ts 0.00% 7 Missing ⚠️
packages/dapper-fake/src/index.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master   #1637      +/-   ##
=========================================
+ Coverage    9.86%   9.95%   +0.09%     
=========================================
  Files         313     314       +1     
  Lines       22537   22606      +69     
  Branches      409     411       +2     
=========================================
+ Hits         2223    2251      +28     
- Misses      20314   20355      +41     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

There's no longer need to check if currentUser is set in the session
context as the API call will return 401 that gets handled automatically
(currently by showing 500 error but better once the global error
handling PR is merged) if the user isn't authenticated.

There's no need to wait for the teamName to resolve as it's resolved
synchronously (based on the team name in the route URL), i.e. no
Promise is returned.
While a simple thing to check, this gets repeated constantly so having
a dedicated helper with basic unit tests in place makes sense.
Use actual permission checks to show content instead of hardcoding it.

Try to remove repetitive text on the page. If user can perform the
action, only show the button to do so, and show clarification texts in
the modal. Show why user can't perform an operation only if they
actually can't do so.

Change alert boxes from "danger" to "info", since it looked like there
was some sort of error preventing user from performing the operations,
while the system is working just as intended.

Update the "how to disband team if team has packages" text to match
(roughly) what's on the legacy website. Contacting Mythic does nothing.
@anttimaki anttimaki force-pushed the team-settings-pt5-disband branch from c06253e to 53b482d Compare November 21, 2025 12:44
@anttimaki anttimaki requested a review from Oksamies November 21, 2025 12:46
Base automatically changed from team-settings-pt4-suspense to master November 24, 2025 09:54
@anttimaki anttimaki merged commit 9100990 into master Nov 24, 2025
28 of 30 checks passed
@anttimaki anttimaki deleted the team-settings-pt5-disband branch November 24, 2025 14:54
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