Repository navigation
Conversation
Contributor
|
@BigBen-7 is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@NteinPrecious Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
1 task
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1653
Closes #1654
Closes #1655
Closes #1656
Changes
main:middleware.tsusesapiUrl("/auth/me"), which normalises the threeNEXT_PUBLIC_API_URLforms, andtest-utils/api-config.test.tscovers them. Addedfrontend/docs/auth-middleware.mdas the traceability note.middleware.ts: 30-second per-token cache of successful/auth/mechecks (capped at 500 entries, exportedresetAuthCachefor tests), and an unavailable/slow API no longer returns 503 for non-admin pages (admin pages still do).test-utils/middleware.test.tsupdated (503 test now on/admin/users) and two tests added (non-admin pass-through, one/auth/mecall for three navigations).test-utils/component-a11y.test.tsxruns jest-axe on the realLoginForm,RegisterForm,DialogandFileDisputeModal;test:a11yno longer has--passWithNoTestsandci.ymlstops passing it, so the step fails when nothing matches.contracts/api-contracts.json(and the two synced copies) now set disputedescriptiontominLength: 20,maxLength: 5000;CreateDisputeDtoadds@MaxLength, the zodcreateDisputeSchemaenforces both,FileDisputeModalhas a character counter andmaxLength. Dispute responses stay lenient (min(1)) so older, shorter disputes still parse. Newlib/__tests__/dispute-schema.test.ts.Not done / caveats
jose(new dependency plus a verification key for the edge runtime); the cache only removes repeat round-trips within an isolate and 30 seconds. Letting non-admin pages through when the API is down is a deliberate trade-off that you should review.ShareModal,NotificationBelland the upload page are not covered, and no@axe-core/playwrightchecks were added. The new axe tests have never been run and may report real violations that need fixing in the components.errors.dispute.descriptionTooLonghas no entry in the locale files (neither did the existingdescriptionRequired), and the modal's own messages are still English. Thefrontend/contractsandbackend/src/contractsJSON copies were edited by hand rather than bycontracts/sync.mjs.Not verified
cargo build/test/fmt/clippy, nonpm install/test/lint, no workflow run. The only check performed was a syntax-level read of the files I touched. Please let CI be the first real run.