-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Fix relative-time error and improve global error handler
#37241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wxiaoguang
merged 20 commits into
go-gitea:main
from
silverwind:relative-time-invalid-lang
Apr 21, 2026
Merged
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
145d6b3
Fix `relative-time` error with invalid `navigator.language`
silverwind 6bba33a
Add margin and green tint to copy-success feedback
silverwind 986524b
Refactor showGlobalError to accept Error + options
silverwind 991e3d9
Revert showGlobalErrorMessage API to string + optional stack
silverwind 7a3668c
Address review feedback
silverwind fed4ff3
Drop redundant stack-for-copy test
silverwind 7d99c9d
Shrink diff against main
silverwind 60a6352
Rework error UI to use <details>/<summary>/<pre><code>
silverwind 708ec77
Merge branch 'main' into relative-time-invalid-lang
silverwind 131b7cd
fix
wxiaoguang c3a286e
Merge branch 'main' into relative-time-invalid-lang
silverwind e90c234
Address review: restore console hint, drop homepage e2e, simplify sta…
silverwind aaca6e7
Address review: drop text-center/whitespace, revert to simple append
silverwind 03ebb69
Merge remote-tracking branch 'origin/main' into relative-time-invalid…
silverwind 7cd7a9e
fix lint
silverwind 8ec30f7
fix lint
wxiaoguang 26bf1e4
Merge branch 'main' into relative-time-invalid-lang
silverwind ca6f7df
Merge branch 'main' into relative-time-invalid-lang
lunny ab30e9f
Merge branch 'main' into relative-time-invalid-lang
GiteaBot 4a25a35
Merge branch 'main' into relative-time-invalid-lang
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import {test} from '@playwright/test'; | ||
| import {assertNoJsError} from './utils.ts'; | ||
|
|
||
| test('homepage renders without errors', async ({page}) => { | ||
| await page.goto('/'); | ||
| await page.waitForLoadState('networkidle'); | ||
| await assertNoJsError(page); | ||
| }); | ||
|
silverwind marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.