-
Notifications
You must be signed in to change notification settings - Fork 10
feat: update claim entity custom UI (GEO-2976) #2470
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
jwalkingjew
merged 32 commits into
master
from
preston/geo-2976-update-claim-entity-custom-ui
Sep 22, 2026
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
af5e19d
feat: show claim media in custom view
jwalkingjew 855f102
feat: add claim record tabs and activity
jwalkingjew b4fcc83
fix: refine claim record interactions
jwalkingjew b10316c
fix: rename related claims tab
jwalkingjew c93ba36
fix: address claim UI review findings
jwalkingjew 1669072
fix: move claim topics below activity
jwalkingjew 8710e7d
feat: include debate-extracted related claims
jwalkingjew ab65f1e
fix: address claim UI review findings
jwalkingjew 4aae287
fix: address follow-up claim review findings
jwalkingjew e3d2519
fix: bound claim records and restore direct editing
jwalkingjew c4ee19b
fix: preserve related claims and tab indicators
jwalkingjew 9cba406
fix: harden claim record queries and deduplication
jwalkingjew bf88cde
fix: isolate claim record loading
jwalkingjew e0a1f73
fix: make claim record failures retryable
jwalkingjew f30356c
perf: speed up claim activity overview
jwalkingjew 4964670
perf: load claim activity in one request
jwalkingjew e2334db
fix: restore working claim activity loading
jwalkingjew 61729d6
perf: hydrate claim activity while ranking
jwalkingjew 6ed7616
Merge remote-tracking branch 'origin/master' into preston/geo-2976-up…
jwalkingjew 71e0201
fix: harden claim record loading
jwalkingjew 8035f17
fix: preserve cached claim activity
jwalkingjew 97658f6
fix: parse authored tab links exactly
jwalkingjew d09426c
fix: distinguish bounded record retries
jwalkingjew 39605b1
fix: isolate claim record retries
jwalkingjew 3694824
perf: page claim activity from graph
jwalkingjew 355eca6
feat: add claim record filters and sorts
jwalkingjew 5a8b843
fix: add exact claim record facets
jwalkingjew 5e224bd
fix: preserve claim record correctness
jwalkingjew 1c93502
fix: keep claim record filters recoverable
jwalkingjew e12726e
fix: preserve claim tab authorization and ordering
jwalkingjew f804907
Merge remote-tracking branch 'origin/master' into preston/geo-2976-up…
jwalkingjew ae62386
Merge remote-tracking branch 'origin/master' into preston/geo-2976-up…
jwalkingjew 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
30 changes: 30 additions & 0 deletions
30
apps/web/app/space/(entity)/[id]/[entityId]/claim-record-page.tsx
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,30 @@ | ||
| import { IdUtils } from '@geoprotocol/geo-sdk/lite'; | ||
|
|
||
| import { notFound } from 'next/navigation'; | ||
|
|
||
| import { CLAIM_TYPE_ID } from '~/core/claims/ontology'; | ||
| import { ID } from '~/core/id'; | ||
| import { isHiddenEntity } from '~/core/moderation/hidden'; | ||
|
|
||
| import { cachedFetchEntityPage } from './cached-fetch-entity'; | ||
| import DefaultEntityPage from './default-entity-page'; | ||
|
|
||
| export type ClaimRecordPageProps = { | ||
| params: Promise<{ id: string; entityId: string }>; | ||
| searchParams: Promise<{ [key: string]: string | string[] | undefined }>; | ||
| }; | ||
|
|
||
| /** The shared server guard and page shell behind the claim's three record routes. */ | ||
| export async function ClaimRecordPage(props: ClaimRecordPageProps) { | ||
| const params = await props.params; | ||
| const searchParams = await props.searchParams; | ||
|
|
||
| if (!IdUtils.isValid(params.id) || !IdUtils.isValid(params.entityId)) notFound(); | ||
|
|
||
| const result = await cachedFetchEntityPage(params.entityId, params.id); | ||
| if (isHiddenEntity(result?.entity) || !result?.entity?.types.some(type => ID.equals(type.id, CLAIM_TYPE_ID))) { | ||
| notFound(); | ||
| } | ||
|
|
||
| return <DefaultEntityPage params={params} searchParams={searchParams} />; | ||
| } | ||
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,5 @@ | ||
| import { ClaimRecordPage, type ClaimRecordPageProps } from '../claim-record-page'; | ||
|
|
||
| export default function ClaimClaimsPage(props: ClaimRecordPageProps) { | ||
| return <ClaimRecordPage {...props} />; | ||
| } |
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,5 @@ | ||
| import { ClaimRecordPage, type ClaimRecordPageProps } from '../claim-record-page'; | ||
|
|
||
| export default function ClaimDebatesPage(props: ClaimRecordPageProps) { | ||
| return <ClaimRecordPage {...props} />; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { ClaimRecordPage, type ClaimRecordPageProps } from '../claim-record-page'; | ||
|
|
||
| export default function ClaimSourcesPage(props: ClaimRecordPageProps) { | ||
| return <ClaimRecordPage {...props} />; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.