-
-
Notifications
You must be signed in to change notification settings - Fork 8
CHI 2026 papers #47
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
Open
see-mike-out
wants to merge
18
commits into
uwdata:main
Choose a base branch
from
see-mike-out:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
CHI 2026 papers #47
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7bb5e2f
blog
2d792b6
style
99498be
url fix
a7e5299
bg url fix
7f6f141
dec
93ab608
lint
bbd4aa0
lint 2
ed4ddfa
fix
7753828
markdown fix
d5d26c1
blog share url fix
7a9f851
patoka paper
see-mike-out 8311d6f
add authors to people
see-mike-out 6e2f1d2
Merge branch 'uwdata:main' into main
see-mike-out ad59e81
adding chi 2026 papers
see-mike-out 4c09e2b
behavior change paper caption update
see-mike-out f701241
fixing file name typo
see-mike-out aa5b86f
file name fix in integrity enforcement script
see-mike-out c97c00b
removing package-lock.json
see-mike-out 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
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
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,42 @@ | ||
| import type { BlogPost, BlogPostMeta } from "./app-types"; | ||
| import { parse as parseYAML } from 'yaml'; | ||
| import markdownit from 'markdown-it' | ||
|
|
||
| export function parsePostData(text: string, web_name: string): BlogPost { | ||
| const parts = text.split("---\n"); | ||
| const metaRaw = parseYAML(parts.length == 3 ? parts[1] : "") as { [key: string]: any }; | ||
| if (!metaRaw.title) { | ||
| console.error("Untitled blog post.") | ||
| } | ||
| const meta: BlogPostMeta = { | ||
| date: metaRaw.date, | ||
| display_date: metaRaw.date ? (new Date(metaRaw.date.replace(/-/g, "/") + " PST")).toLocaleDateString("us-EN", { | ||
| year: "numeric", | ||
| month: "short", | ||
| day: "numeric", | ||
| }) : "Undated", | ||
| title: metaRaw.title as string, | ||
| web_name: web_name, | ||
| } | ||
| if (metaRaw.banner) meta.banner = metaRaw.banner; | ||
| if (metaRaw.headliner) meta.headliner = metaRaw.headliner; | ||
| if (metaRaw.external) meta.external = metaRaw.external; | ||
| if (meta.external && !meta.headliner) { | ||
| console.error("An external post must have a headliner."); | ||
| } | ||
| if (metaRaw.paper) meta.paper = metaRaw.paper; | ||
|
|
||
| const post = parts.length == 3 ? parts[2] : parts[0]; | ||
|
|
||
| const md = markdownit({ html: true, linkify: true }); | ||
| const rendered_post = md.render(post) | ||
| let first_image = meta.banner ?? rendered_post.match(/<img[^<>]*src="([^<>"]+)"[^<>]*>/i)?.[1] ?? null; | ||
| if (first_image && first_image.startsWith("../")) first_image = first_image.replace("../", ""); | ||
|
|
||
| return { meta, post: rendered_post, first_image }; | ||
| } | ||
|
|
||
| export function stripHTML(html: string) { | ||
| // getting summary text for the blog | ||
| return html.replace(/<[^<>]+>/g, "") | ||
| } | ||
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,44 @@ | ||
| <script lang="ts"> | ||
| import { base } from '$app/paths'; | ||
| import type { BlogPost } from './app-types'; | ||
| export let post: BlogPost; | ||
| </script> | ||
|
|
||
| <a | ||
| href={post.meta.external ?? `${base}/blog/${post.meta.web_name}`} | ||
| class="flex paper text-[15px] mb-6 thumb-wrap" | ||
| target={post.meta.external ? '_blank' : '_self'} | ||
| > | ||
| {#if post.first_image} | ||
| <div class="thumbnail mb-2 md:mt-1 grow-0 shrink-0 mr-5"> | ||
| <div | ||
| class="rounded-lg w-[120px] h-[80px] post-thumb-image" | ||
| style={`background-image: url(${base}/${post.first_image})`} | ||
| ></div> | ||
| </div> | ||
| {:else} | ||
| <div class="thumbnail mb-2 md:mt-1 grow-0 shrink-0 mr-5"> | ||
| <div class="rounded-lg w-[120px] h-[80px]" style={`background-color: white;`}></div> | ||
| </div> | ||
| {/if} | ||
| <div class="leading-tight"> | ||
| <div class="md:block"> | ||
| <a class="font-semibold" href={post.meta.external ?? `${base}/blog/${post.meta.web_name}`} | ||
| >{post.meta.title}</a | ||
| > | ||
| <div class="my-2 text-slate-500">{post.meta.headliner ?? post.post}...</div> | ||
| <div class="text-[12px] text-slate-400">{post.meta.display_date}</div> | ||
| </div> | ||
| </div> | ||
| </a> | ||
|
|
||
| <style> | ||
| .post-thumb-image { | ||
| display: block; | ||
| background-position: center center; | ||
| background-size: cover; | ||
| } | ||
| .thumb-wrap:hover .post-thumb-image { | ||
| box-shadow: 2px 2px 18px #8a5ed3; | ||
| } | ||
| </style> |
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,17 @@ | ||
| <script lang="ts"> | ||
| import type { BlogPost } from '../../lib/app-types'; | ||
| import PostThumb from '../../lib/post-thumb.svelte'; | ||
|
|
||
| export let data: { posts: BlogPost[] }; | ||
| $: posts = data.posts; | ||
| </script> | ||
|
|
||
| <svelte:head> | ||
| <title>UW Interactive Data Lab | Blog</title> | ||
| </svelte:head> | ||
|
|
||
| <div class="md:pr-10"> | ||
| {#each posts as post} | ||
| <PostThumb {post} /> | ||
| {/each} | ||
| </div> |
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,10 @@ | ||
| import { base } from '$app/paths'; | ||
| import type { BlogPost } from '$lib/app-types'; | ||
| import type { PageLoad } from './$types'; | ||
|
|
||
| export const load: PageLoad = async ({ fetch }) => { | ||
| const posts = await fetch(`${base}/blog-index.json`) | ||
| .then((x) => x.json() as Promise<BlogPost[]>); | ||
|
|
||
| return { posts }; | ||
| }; |
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,8 @@ | ||
| <script lang="ts"> | ||
| import { page } from '$app/stores'; | ||
| console.log('error'); | ||
| </script> | ||
|
|
||
| {#if $page.error && $page.error.message} | ||
| <h1>{$page.status}: {$page.error.message}</h1> | ||
| {/if} |
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.