fix: restore admin add-tag button for users without tags
Profiles for users without tags currently show “标签暂不可用” and a retry button, leaving admins unable to add a tag. Treat the backend’s missing-tag response as an empty state, restoring the “添加标签” button for admins and hiding the error for other visitors. Account settings hides tag editing when no tag exists, preventing invalid EditBadge requests.
Both pages share detection of the missing-tag phrase, tolerating changes to the surrounding message. Actual load failures retain their error and retry behavior.
Regression coverage includes missing tags on both pages, admin creation and deletion, retry recovery, message variants, and preserving account submission.
Validation: all 99 tests pass with npm test; JavaScript syntax and git diff --check pass.
Summary by Sourcery
Restore correct empty-state handling for users without tags across profile and account pages.
Bug Fixes:
- Treat missing backend tags as an empty state so administrators can add tags while other visitors see no error or retry prompt.
- Hide account tag editing when no tag exists and prevent invalid tag update requests.
- Preserve error and retry behavior for genuine tag-loading failures.
Enhancements:
- Share tolerant detection of backend missing-tag responses across profile and account pages.
Tests:
- Add regression coverage for missing tags, message variants, administrator tag creation and deletion, retry recovery, and preserving account submission.
Chores:
- Bump the project and userscript versions to 3.8.5.