Skip to content

Implement user profile page and enhance API handling - #11

Merged
NotReeceHarris merged 4 commits into
mainfrom
feature/profiles
Jul 21, 2026
Merged

NotReeceHarris merged 4 commits into
mainfrom
feature/profiles

Conversation

@NotReeceHarris

Copy link
Copy Markdown
Owner

This pull request introduces user profile pages and improves internal linking to user profiles throughout the app. It also adds new API methods and types to support profile data, and makes several enhancements to how data is fetched and rendered.

User Profile Pages and API Support:

  • Added new API methods and types for fetching and representing user profiles, including discussions and comments authored by the user. This includes the new getUserProfile and listUserDiscussions functions, the UserProfile and ProfileComment types, and logic to filter and validate profile data from the GitHub API. [1] [2] [3]

Internal Linking Improvements:

  • Updated all user profile links in CommentCard.svelte, DiscussionRow.svelte, Header.svelte, and discussion pages to use internal routes (/u/[login]) instead of linking directly to GitHub, improving navigation and consistency. [1] [2] [3] src/routes/d/[number]/+page.svelteL226-R226)

API Enhancements and Robustness:

  • Enhanced the core GraphQL API client (gql) to optionally tolerate NOT_FOUND errors, allowing partial data to be returned when some profile fields are missing (e.g., missing profile README). [1] [2]
  • Improved the renderMarkdown API to support both gfm and markdown modes and accept context options, ensuring correct rendering for both comments and profile READMEs. [1] [2]

Caching and Data Consistency:

  • Bumped the cache version in cache.ts to invalidate outdated cache entries due to changes in the shape of cached GraphQL data.

Type and Data Model Updates:

  • Updated types for DiscussionListItem and related structures to include repository information, supporting more robust filtering and validation of profile-related data.

These changes collectively enable user profile pages with accurate forum activity, improve navigation, and make the data layer more robust and maintainable.

@NotReeceHarris NotReeceHarris self-assigned this Jul 21, 2026
@NotReeceHarris NotReeceHarris added the enhancement New feature or request label Jul 21, 2026
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

🧪 Test coverage

File                           Stmts %  Branch %  Funcs %  Lines %
-----------------------------  -------  --------  -------  -------
oauth-proxy/worker.js              100       100      100      100
src/lib/cache.ts                   100       100      100      100
src/lib/config/index.ts            100       100      100      100
src/lib/config/schema.ts           100       100      100      100
src/lib/github/api.ts              100       100      100      100
src/lib/github/auth.svelte.ts      100       100      100      100
src/lib/ui.svelte.ts               100       100      100      100
src/lib/utils.ts                   100       100      100      100
TOTAL                              100       100      100      100

@NotReeceHarris
NotReeceHarris merged commit ddbf1ec into main Jul 21, 2026
4 checks passed
@NotReeceHarris
NotReeceHarris deleted the feature/profiles branch July 21, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant