Skip to content
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

Design rework #1407

Merged
merged 30 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5a45c61
temp: Design updates
kiosion Aug 3, 2024
53a308c
temp: Integrate Toru widget into sidebar
kiosion Aug 3, 2024
060f5f1
fix: Tidy elixir api err handling, summary gen
kiosion Aug 5, 2024
f0cd623
feat: Add sidebar fields to sanity schema
kiosion Aug 5, 2024
f258379
chore: Remove old header/footer components
kiosion Aug 5, 2024
ad9feab
chore: Add new translations
kiosion Aug 5, 2024
215135f
feat: Tidy new styles, now-playing widget
kiosion Aug 5, 2024
71a57b8
chore: Remove leftover comments
kiosion Aug 5, 2024
cb14553
temp: Add temp avi
kiosion Aug 5, 2024
c3000ed
fix: Slightly debounce header IntersectionObserver, tweak i18n wording
kiosion Aug 5, 2024
aae94a3
chore: Tidy sidebar styling, remove leftover comments
kiosion Aug 5, 2024
df876c4
fix: More icon work, make note of possible Svelte comp lifecycle bug
kiosion Aug 7, 2024
2870fad
fix: Timeline item icons, top bar flex wrapping on `/thoughts`
kiosion Aug 14, 2024
36f9f1e
fix: Sidebar post data appearing during nav to post route
kiosion Aug 21, 2024
ee84b27
feat: Update list-item styles, misc. style fixes
kiosion Aug 21, 2024
ae895be
feat: Style changes to sidebar, headings, empty-content, list-items
kiosion Aug 22, 2024
6da3d9d
feat: Reduce usage of `hoverable`, update toggle btn styles
kiosion Sep 10, 2024
cebc43b
chore: Add lint rule for $t() usage
kiosion Sep 18, 2024
bdf4d3a
feat: Update design of timeline items
kiosion Sep 18, 2024
b23e4e0
chore(i18n): Add missing strings
kiosion Sep 18, 2024
7f1454a
feat: Tweak colours, improve visual order of tones
kiosion Sep 18, 2024
97d0314
chore: Add new pfp, tweak colours
kiosion Sep 23, 2024
5599140
fix: Tweak avi, fix toggle buttons
kiosion Oct 3, 2024
042a309
refac: Tooltips, sidebar toggles
kiosion Oct 14, 2024
09f7357
fix: Update tests
kiosion Oct 14, 2024
2a423ed
fix: Use Sanity for pfp, update schema
kiosion Oct 14, 2024
f86d8d1
fix: Translations, proj route design details
kiosion Oct 14, 2024
1977347
fix: Sidebar link styles, timeline item styles
kiosion Oct 14, 2024
f57236b
chore: Bump PNPM vers for workflows
kiosion Oct 14, 2024
a083c52
fix: Guard against falsy config on load
kiosion Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/netlify-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 9.1.0
version: 9.8.0
run_install: false
- name: Use node_modules cache
uses: actions/cache@v4
id: nm-cache
with:
path: 'svelte-app/node_modules'
path: "svelte-app/node_modules"
key: ${{ runner.os }}-npm-${{ hashFiles('svelte-app/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-nm-16-
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: CI - Sanity

on:
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/.husky'
- 'svelte-app/**'
- 'express-api/**'
- 'elixir-api/**'
- "**/*.md"
- "LICENSE"
- "**/.husky"
- "svelte-app/**"
- "express-api/**"
- "elixir-api/**"

concurrency:
concurrency:
group: sanity
cancel-in-progress: true

Expand All @@ -30,13 +30,13 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 9.1.0
version: 9.8.0
run_install: false
- name: Use node_modules cache
uses: actions/cache@v4
id: nm-cache
with:
path: 'sanity-cms/node_modules'
path: "sanity-cms/node_modules"
key: ${{ runner.os }}-npm-${{ hashFiles('sanity-cms/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-npm-
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/svelte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: CI

on:
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '**/.husky'
- 'sanity-cms/**'
- 'express-api/**'
- 'rust-api/**'
- 'elixir-api/**'
- "**/*.md"
- "LICENSE"
- "**/.husky"
- "sanity-cms/**"
- "express-api/**"
- "rust-api/**"
- "elixir-api/**"

concurrency:
concurrency:
group: ci
cancel-in-progress: true

Expand All @@ -31,13 +31,13 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 9.1.0
version: 9.8.0
run_install: false
- name: Use node_modules cache
uses: actions/cache@v4
id: nm-cache
with:
path: 'svelte-app/node_modules'
path: "svelte-app/node_modules"
key: ${{ runner.os }}-npm-${{ hashFiles('svelte-app/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-npm-
Expand All @@ -52,6 +52,6 @@ jobs:
secrets: inherit
deploy:
name: Deploy
needs: [ lint, tests ]
needs: [lint, tests]
uses: ./.github/workflows/netlify-deploy.yml
secrets: inherit
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Tests

on:
pull_request:
branches: [ "main" ]
branches: ["main"]
workflow_call:

concurrency:
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true

Expand All @@ -23,13 +23,13 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.1.0
version: 9.8.0
run_install: false
- name: Use node_modules cache
uses: actions/cache@v4
id: nm-cache
with:
path: 'svelte-app/node_modules'
path: "svelte-app/node_modules"
key: ${{ runner.os }}-npm-${{ hashFiles('svelte-app/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-npm-
Expand All @@ -52,13 +52,13 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.0
version: 9.8.0
run_install: false
- name: Use node_modules cache
uses: actions/cache@v4
id: nm-cache
with:
path: 'svelte-app/node_modules'
path: "svelte-app/node_modules"
key: ${{ runner.os }}-npm-${{ hashFiles('svelte-app/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-npm-
Expand Down
2 changes: 1 addition & 1 deletion elixir-api/lib/app/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defmodule Hexerei.Application do
Hexerei.Cache.TranslateCache,
[
options: [
max_size: 512
max_size: 1024
]
]
},
Expand Down
2 changes: 1 addition & 1 deletion elixir-api/lib/routes/api/v1/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Router.Api.V1.Config do
with {:ok, params} <- validate_query_params(conn, %{"lang" => "en"}) do
query =
Query.new()
|> Query.filter([%{"_type" => "'siteSettings'"}])
|> Query.filter([%{"_id" => "'siteSettings'"}])
|> Query.qualify("[0]")
|> Query.build!()

Expand Down
10 changes: 0 additions & 10 deletions elixir-api/lib/routes/api/v1/tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ defmodule Router.Api.V1.Tag do
}
)

# parsed_counts = Task.await(counts)

# {transformed_result, meta, code} =
# transform_result_document(query, result, :tag, params, %{
# "total" => parsed_counts["result"]["total"],
# "count" => parsed_counts["result"]["count"],
# "id" => id,
# "type" => params["type"]
# })

update_meta_and_send_response(conn, code, transformed_result, meta, duration)
end)
else
Expand Down
13 changes: 11 additions & 2 deletions elixir-api/lib/routes/cdn.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,20 @@ defmodule Router.Cdn do

with true <- is_binary(url_parts.filetype),
{:ok, url} <- Hexerei.SanityClient.urlFor(url_parts.asset, conn.query_string) do
with {:ok, %HTTPoison.Response{status_code: 200, body: body}} <-
with {:ok, %HTTPoison.Response{status_code: 200, body: body, headers: headers}} <-
Hexerei.Env.get(:http_client, Hexerei.HTTP.DefaultClient).get(url) do
content_type =
headers
|> Enum.find(fn {k, _} -> String.downcase(k) == "content-type" end)
|> case do
{k, v} -> String.downcase(v)
# fall back to filetype from ext, if present
_ -> "image/#{url_parts.filetype}"
end

conn
|> put_resp_header("Access-Control-Allow-Origin", "*")
|> put_resp_content_type("image/#{url_parts.filetype}")
|> put_resp_content_type(content_type)
|> send_resp(200, body)
else
{:ok, %HTTPoison.Response{status_code: 404}} ->
Expand Down
Loading
Loading