1
0
forked from boos/BoosAPI

feat: add delete confirmation modal and enhance token handling

- Implemented a DeleteConfirmModal component for confirming deletions across various pages (Accounts, Sites, Tokens).
- Updated Accounts and Sites pages to utilize the new modal for single and batch deletions.
- Enhanced TokensPanel to support group selection and improved token deletion handling with confirmation.
- Added functionality to skip confirmation for batch actions and handle token group fetching with error management.
- Improved error handling for expired sessions in NewApiAdapter and OneApiAdapter.
- Added tests for new delete confirmation behavior and token editing interactions.
This commit is contained in:
ciat-777
2026-03-14 13:31:15 +08:00
parent ad791d87bb
commit 1a1f0452b3
18 changed files with 595 additions and 58 deletions
+15 -1
View File
@@ -201,7 +201,7 @@ jobs:
if [ -n "${APPLE_APP_SPECIFIC_PASSWORD_INPUT:-}" ]; then export APPLE_APP_SPECIFIC_PASSWORD="$APPLE_APP_SPECIFIC_PASSWORD_INPUT"; fi
if [ -n "${APPLE_TEAM_ID_INPUT:-}" ]; then export APPLE_TEAM_ID="$APPLE_TEAM_ID_INPUT"; fi
for attempt in 1 2; do
echo "Desktop build attempt ${attempt}/2"
echo "Desktop build (host arch) attempt ${attempt}/2"
if npm run package:desktop; then
break
fi
@@ -210,6 +210,20 @@ jobs:
fi
sleep 90
done
if [ "${RUNNER_ARCH:-}" != "X64" ]; then
for attempt in 1 2; do
echo "Desktop build (mac intel x64) attempt ${attempt}/2"
if npm run package:desktop:mac:intel; then
break
fi
if [ "$attempt" -eq 2 ]; then
exit 1
fi
sleep 90
done
else
echo "Runner is already X64, skip extra Intel build"
fi
- name: Upload desktop package
uses: actions/upload-artifact@v4