Repository navigation
M2 worlds frontend integration kareem - #16
KareemN1936 wants to merge 10 commits into
Conversation
|
Vercel preview is ready: https://hivelore-e8ivjofcb-kareemn1936s-projects.vercel.app Commit: ac026e2 |
|
@KareemN1936 quick coordination note — you have two open PRs changing the same three worlds pages in incompatible ways, and they conflict with each other. This one (#16) is the right approach. You correctly branched off Perla's #14 branch rather than duplicating her backend (I verified the 7 shared files are identical blobs — good practice), and you wired the pages to the real API via #17 replaces those same three pages with Plan: please consolidate into ONE PR — take #17's styling/responsive layout and put it on top of #16's API wiring — then close the other. Keep this one as the base. Sequencing: #15 (auth hardening) is merged, and Perla is rebasing #14 with review fixes. Once #14 lands, rebase this onto develop and it should shrink to just your 7 frontend files. Two things to fix regardless of which PR survives:
The home/login page in #17 does use the real auth API properly, so I know you can wire this — just needs to be consistent. |
0ce14f6 to
d44a50a
Compare
|
@mcfarhat Got it. I closed #17 and will keep #16 as the base. I’ll only port any useful responsive styling manually without reintroducing mock-worlds or replacing the real API wiring. I’ll wait for #14 to land before rebasing onto develop. I’ll also leave the localStorage access-token issue for discussion before changing auth storage. |
|
@KareemN1936 thanks for closing #17 and keeping this as the base — you did exactly what you said you would, and I checked rather than assumed: zero And the auth fix is excellent. You changed 🔴 One blocker, and it's the same failure mode we discussed: Your styling commit Net effect: Suggested fix that also closes an earlier note: Also to fix before merge:
Nits: One for Perla, not you — I'll raise it on #14: Genuinely nice work in here too: Sequencing: this now rebases cleanly and carries Perla's backend, but merging it would land #14's unreviewed items by the back door — so it waits for #14, then rebase. |
|
@mcfarhat Addressed the remaining review notes in fe6e038. Changes:
Validation:
|
|
@KareemN1936 every item from the 08-07 review is fixed — and you fixed the big one the better way rather than the quick way. Credit where it's due:
Regression checks all clean: no mocks, Four things before merge — two are new: 1. 🔴 The world bible is now permanently invisible on every world. Your tests codify this as correct ( Good initiative picking this up — it was assigned to Perla on #14 — it just needs the publish path to go with it. 2. 🔴 Unconditional refresh-on-mount can log users out everywhere. 3. 🟠 Response shape is inconsistent. 4. 🟠 Internal roadmap copy shipped as product copy — Nits: no refresh-on-401, so a user spending >15 min on the 10-field form gets a 401 on submit with no retry; the hand-written 40-line relation type at Sequencing unchanged: this is based on |
|
@mcfarhat Pushed fixes in Addressed latest PR #16 review items:
Validation passed:
|
|
@KareemN1936 re-reviewed at Confirmed fixed: response shape is now consistent — all four read/write paths use Your validation claims check out. Blocker — this branch's API test suite is red, and it's from your own commit
You hit exactly this in It's been red since 08-07 and nobody noticed, because CI runs no test step. One of the dead tests is "valid draft submission creates exactly one proposal and locks immutable proposed content" — which happens to guard the exact property under review in your #20. I've carded the CI gap separately: https://trello.com/c/TM6P5w2s Partially fixed1. Bible visibility — the fix is forward-only. 2. Refresh-on-mount — closes one case, not the other. The module-level in-flight promise at Should-fixThe Sort control is misleading again, for a new reason. The Sequencing — this is the one to sort out before merge
Merging this "frontend integration" PR would land a chunk of the backend through the back door, ahead of its own review. Please rebase onto Nits
|
|
@mcfarhat Pushed Addressed the latest review follow-ups:
Verification:
I’ll still rebase/drop inherited API files once #14 lands so this PR becomes frontend-only. |
|
@KareemN1936 re-reviewed at 1. The API test suite is green. I ran it rather than trusting the claim: And I checked it's a real fix rather than a test neutered into passing: restoring only Small gap, not a defect: the stub can't express a revoked or expired session, so route-level revocation isn't covered — 2. Seed and backfill. UPDATE "WorldBibleVersion" SET "publishedAt" = COALESCE("publishedAt","createdAt")
WHERE "versionNumber" = 1 AND "publishedAt" IS NULL;Idempotent thanks to the 3. The sort control is gone entirely, not re-pointed at a param that doesn't exist — Worth one line in the PR description: the effective default order changes from No regressions in the fix commit — typecheck, lint and the full API suite are clean. Still outstandingThe One correction to how you're reading CI: "GitHub Quality ✅" does not mean the tests ran. Two dead-code leftovers, cosmetic: the exported Good work — this is the cleanest turnaround of the three. |
|
No code changes needed from the latest review. I’ll keep this blocked on the sequencing note: wait for #14 to land, then drop the backend/API pieces before merging this frontend PR. |
|
Closing this as superseded by #20 — no work is lost, and this isn't a rejection of anything here. The check: I've retargeted #20's base from this branch to This also means the hold I asked you to keep was costing you more than it was worth, and that's on me. You said on 08-10 you'd keep this "blocked on the sequencing note: wait for #14 to land" — and you honoured it for four days. But you had already rebased onto What's actually next, on #20: when Perla's backend lands on Two things from your side that must survive that drop, because they are uniquely yours:
I measured the end state: Continue on #20 — I'll review it there. |
No description provided.