Repository navigation
feat(platform): filter a website's pages to the failed or skipped ones - #4065
Merged
Merged
Conversation
"47 indexed · 5 pages failed" was a number beside a list that hid the five, twenty rows at a time. The page list gets a segmented filter (All · Failed · Skipped) with counts, the count in the header opens the failed pages, and the pages read (app door and REST) takes `?state=failed|skipped`, counts that state, answers both counts and binds its cursor to the state. One SQL definition of failed and skipped feeds the row's failedPageCount, the filter and the counts.
Contributor
Author
|
Local run of the |
This was referenced Oct 2, 2026
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.
"47 indexed · 5 pages failed" was a number beside a list that hid the five, twenty rows at a time, ordered by last crawl. Finding a failed or a skipped page meant paging through everything and looking for a red label.
What changed
websites/actions:fetchPages, app doorGET …/pages, RESTGET /api/v1/websites/:id/pages):?state=failed|skippednarrows the window;total/hasMorecount that state; every answer carriescounts(both numbers) and echoesstate. A junkstateis 400 (INVALID_QUERYover REST). The REST cursor is minted under the filtered list, so a cursor from the failed pages is refused without the filter.FAILED_PAGE_SQL/SKIPPED_PAGE_SQLincore/websites/types.tsfeed the row sync'sfailedPageCount, the filter and the counts, so the number a reader sees and the list it opens agree. A page whose failure cost it no strike (charged to the render lane) now shows its reason in the list too; it was already counted as failed.pagesDialog.filter.*,noFailedPages,noSkippedPages); docs: crawling guide and REST reference in three languages; manualKNOW-F36+ automation row.Proof
backend/domains/websites/routes.test.ts,backend/rest/v1-websites.test.ts(state passthrough, state-bound cursor, 400 on junk),app/features/websites/components/website-view-dialog.test.tsx(count → Failed, segments, per-state empty, uncharged failure reason): websites feature 87 UI tests and 604 server tests pass.backend/integration-check.ts, lanecheckWebsitesCrawl:?state=failedreturns the failed home page alone withcounts {failed:1, skipped:0},?state=skippedis empty,?state=brokenis 400 — run locally on a throwawaytale-dbbuilt from this tree (see the last comment for the tally).tsc --noEmit,oxlint --type-aware,format:check,lint:links,lint:manual,check-guideon the knowledge suite, locale parity: green.