Repository navigation
Consolidate HTTP layers, add security headers, wire photo gallery and inline edit - #1693
Merged
yusuftomilola merged 5 commits intoOct 17, 2026
Conversation
|
@oladev2026-tech is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@oladev2026-tech 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! 🚀 |
Closed
2 tasks
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.
Summary
#1626 - Consolidate HTTP layers
lib/api/http-client.tsdocumenting the single-axios-instance convention and deprecating theapiClient.requestwrapper and rawfetch('/api/...')calls. New code should useapifromlib/api.tsor per-resource modules inlib/api/*.ts.#1621 - next.config.ts security headers, image config and standalone output
output: "standalone",poweredByHeader: false,images.remotePatternsfor asset photos from the API/S3, and aheaders()block with CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy.#1611 - Photo gallery handlers are TODO stubs
lib/api/asset-photos.tswith a typed API client (list, upload with FormData, delete, setPrimary) to wire the PhotoGallery callbacks to real backend endpoints.#1610 - Inline edit fields are no-ops (onSave is TODO)
hooks/useUpdateAsset.tsReact Query mutation hook that callsPATCH /assets/:idwith optimistic update, rollback on error, and cache invalidation on settle. Wire both InlineEdit usages touseUpdateAsset(assetId).mutate({ field: value }).Closes #1626
Closes #1621
Closes #1611
Closes #1610