Public guides
Search guides by title and task. This searches guide cards on this page only. It does not search full guide text, workspace records, or saved answers.
Use one search spec on the public site and in the signed-in workspace app. Each search states what it searches, keeps one college in one workspace, and shows only results the signed-in role can view. The corrected filter logic section below governs every filter combination on this page where another page states a different fallback or count.
Read this table before you change a search field. The gap is scope and shared rules, not the search box itself.
| Surface | What it searches today | Query rules today | Count and empty state today | Workspace and permission today |
|---|---|---|---|---|
| Terminology page, in public/site.js | List entries on the terminology page only. The generic filter runs on that page only, because the guides index has its own filter. | Exact word, word start at any length, word inside a word, and a spelling one letter off for words of four letters or more. No synonym list. Every typed word must match an entry. | Showing count of entries shown. Empty title is No entries match that wording, with a Clear search action. | Public entries only. No workspace record and no signed-in permission is involved. |
| Guides index, in public/guides/index.html | The guide cards on that page only, by title, description, and link text. It does not search full guide text. | Exact word, word start for words of two letters or more, word inside a word for words of three letters or more, a spelling one letter off for words of four letters or more, and a synonym list such as enroll for admissions and registration. Role, stage, and topic filters also apply. | Showing count of guides shown. Empty title is No guides match those filters, with Clear filters, up to three suggested guides, and a did you mean correction. | Public guide cards only. The role filter helps a reader find a guide for a role. It does not grant or check permission in the app. |
| My Answers, in public/my-answers.html | Answers saved on the same device and browser only, by title, question, answer, and source title. It does not search guides, terminology, or workspace records. | Plain substring in lower case. No fuzzy match and no synonym list. | A status line states the saved count. The empty text is No saved answers match, with a suggestion to save an answer, clear the search, or choose another collection. | Device only. No college workspace, no other person, and no server record is searched. |
| Signed-in app shell, in public/app/index.html | No search field is present in this slice. Screen files for workspace lists are not in this pack. | No query rule is defined in this pack for a workspace search. | No count and no empty state for a workspace search result list is defined in this pack. | Undefined in this slice. The app kit requires every record to stay in one college workspace and a screen to show an action only when the assigned role covers it, with the server checking again. |
Set the label beside each search box, word for word. A reader should know the corpus before typing the first word.
Search guides by title and task. This searches guide cards on this page only. It does not search full guide text, workspace records, or saved answers.
Search entries on this page. This searches entries on this page only. It does not search guides, workspace records, or saved answers.
Search saved answers on this device. This searches titles, questions, answers, and source titles you saved in this browser only. It does not search guides or workspace records.
Search in this college workspace. Results show only records in this college that your role can view. Test and staff preview sessions are labeled as test and are excluded from counts.
Keep the page heading and any filter controls visible when the result list is empty, so the reader can change the filter. Show one empty state per list. Do not show an empty state and a populated list at the same time.
Apply these rules to the terminology filter and the guides filter in one change, so the same typed words mean the same thing on both pages.
Match a typed word when it is exact, when it starts a word of two letters or more, when it appears inside a word of three letters or more, or when it is one letter off a word of four letters or more. Every typed word must match for a result to show. A single letter matches by exact word only and never by word start.
Either publish one synonym list and use it on both public filters, or remove synonyms from both. Do not keep synonyms on one public filter only. Publish the list where the search hint states it. Until one shared list is published, the hint on each filter must state whether synonyms apply on that filter.
Filter after a short pause of 120 milliseconds while typing. Keep the search words in the page address as q on both pages. Do not add a new browser history entry for each keystroke. Clear search or Clear filters removes q and restores the full list.
Show the count shown and the total in a status region, such as Showing 0 of 26 guides. Use the search icon, one title that names the empty list, one brief explanation that names the filter, and one primary Clear action. Keep suggested entries as plain links outside the empty state.
Keep focus on the search field when the empty state appears. Keep every control at least 44 pixels high, keep focus visible by keyboard, and stack the icon above the text on a phone.
This section governs category, date, workspace, status, sort order, and pagination wherever they combine, on public search lists, on the weekly quality table, and on signed-in lists for Reports, Improve, Sources, Assistants, and Team. Where another page states a different fallback, count, or date basis, this section governs and that page is read as corrected to this section.
| Filter | Unknown or invalid value | Corrected result |
|---|---|---|
| Category: role, stage, topic, collection, assistant, channel, or signal | A value not in the allowed list for that list | Fall back to all for that filter only, echo the applied value, and never return records from another category list. Other active filters still apply. |
| Date: week, date range, or day | A week or date that has no matching bucket, or a malformed date | Show no rows and total 0 for that date filter. Do not reset the date filter to all weeks and do not show the unfiltered list as if it matched. |
| Workspace: college workspace | A workspace the signed-in role cannot open, or a workspace from another college | Show no rows. Never fall back to another college, never show totals from another college as if they were this college, and never open the record from a saved link. |
| Status: answer outcome, source status, or record state | A status not in the allowed list for that list | Fall back to all statuses for that filter only, echo the applied value, and keep test, unavailable, superseded, and handed off records in their own stated buckets and never merged into another bucket. |
| Sort: sort field and order | A sort field not sortable on that list, or an order other than asc or desc | Fall back to the default sort field and default order for that list, echo the applied values, and keep the tie break in the rule below. Do not silently sort by a different field. |
| Page and page size | Page below 1, page past the last page, page size below 1, page size above 100, or a non-number | Page below 1 becomes page 1. Page past the last page clamps to the last page. Page size below 1 or a non-number becomes 5. Page size above 100 becomes 100. On screen the choices remain 5, 10, and 20. |
| Search words | Empty search, a single letter, or words with no match in the corpus | Empty search shows the full list. A single letter matches by exact word only. Words with no match show one empty state with 0 shown and the total, and keep focus on the search field. Suggested entries stay outside the empty state as plain links. |
| Combination | Combined result | Count shown |
|---|---|---|
| Category plus search words | Only cards or records in that category whose title, description, or stated fields also match every search word under the unified match rule. A category match never overrides a search word miss. | Total after both filters, then rows on the page. |
| Category plus date | Only records in that category whose submission or week bucket falls inside the date range. A record in the right category but outside the range does not appear, and a record in the range but outside the category does not appear. | Total after both filters. The date basis in the next rule is stated beside the count. |
| Date plus sort plus page | Filter by date first, sort the filtered rows by the applied sort and order with the tie break below, then take the page. Sorting never changes which records pass the date filter. | Total is the filtered count before pagination. Shown is rows on the current page only. Page count is total divided by page size rounded up, with minimum 1. |
| Workspace plus status | Only records in the one selected college workspace with that status. Test and staff preview sessions are excluded from every status count and labelled as excluded. Unavailable stays separate from not answered. Superseded records are excluded from headline counts and labelled as superseded. Handed off stays in the handoff count only. | Counts by college workspace only. System view shows counts grouped by workspace only and never returns question text, found in the workspace isolation section below. |
| Workspace plus category plus date plus status plus sort | Apply workspace on the server first, then category, date, and status, then sort with the tie break, then page. A person in another college cannot open any row that passes the other filters. | Total after all filters, rows on the page, outcomes in the filter, and total recorded, as four separate numbers where the list records outcomes. |
| Search words plus workspace | Public search never searches workspace records. Signed-in workspace search filters on the server to one college before matching words. A matching word in another college never appears and never raises the count in this college. | One count for one college and one list. Do not merge a public count with a workspace count. |
A workspace search result must never cross a college boundary, even when the words match.
Permission handling is a result rule, not a display hint. The role filter on the public guides index is discovery only and does not grant access.
Return only records the signed-in role can view for the task in that college. Reading full question text and exporting detail need a separate permission, and each view and each export is audit logged, as stated on the reports page.
Show a button or action only when the assigned role covers that step. When the role does not cover the step, state the role that can do it and link to the relevant guide. Do not show a button that does nothing.
Check permission on the server for every search request and every record opened from a result. A changed role takes effect on the next request, and a result from before the change is not opened again from a saved link.
Show title, college, assistant, channel, date range, and college local time where the list uses them. Show an approved source title, source link, and last checked date for an answer result. Show no source for a not-known result, and show unavailable wording with no source when a check does not complete.
Public search results are cached under the public guide row in Caching policy, because the guides index and terminology search public cards and entries only. Workspace search results are never cached by a shared cache, because a result depends on the college workspace and the role. A workspace search response uses private, no-store, no ETag, and Vary: Cookie, Authorization, as stated in Caching policy. Do not cache a search result page that was built for one workspace and serve it to another search.
Run each check with the same query on each surface. If a check fails, fix it before you publish.
Follow Empty states for the shared layout, Read reports for counts by college and assistant, Set retention and access for who may view full questions and who may export, and Caching policy for Cache-Control, ETag, and CDN rules by surface.
Keep empty states consistent wherever a list can be empty.