Steven H
f98146f5b6
Show a single page when user clicks Export as PDF ( #279 )
2024-03-15 15:08:41 +00:00
Steven H
88a7ab21a2
Revert a change in the way we await for local caches to update. ( #277 )
2024-03-15 14:03:00 +00:00
Steven H
a4099dff9e
Remove awaiting for local caches to set their values whilst we investigate hanging pages. ( #275 )
2024-03-15 13:47:31 +00:00
Steven H
98f91d9e82
Reduce local caches to 30s ( #274 )
2024-03-15 13:34:52 +00:00
Greg Bergé
4c2625c277
Fix memory cache usage, use the same value of 1 min for non immutable in local cache ( #272 )
2024-03-15 12:37:27 +01:00
Greg Bergé
77b6228677
Fix an issue where we were caching mutable cache entries indefinitely. ( #270 )
2024-03-15 11:22:15 +00:00
Johan Preynat
ff93689d4e
Rollbacking lowercasing paths since it breaks share links... ( #271 )
2024-03-15 12:01:58 +01:00
Steven H
d8ffa5d69c
Fix an issue where parsing an OpenAPI schema without securitySchemas would crash the page. ( #263 )
2024-03-15 10:27:23 +00:00
Samy Pessé
f77b2b6cd7
Fix resolution of content-refs to pages in another space ( #267 )
...
* Fix resolution of content-refs to pages in another space
* Fix title of the content ref
2024-03-15 11:25:23 +01:00
Sebastian Graz
5dec1a1f0e
Top links visibility container queries ( #257 )
...
* improve top link vis queries & footer style fixes
* add ellipsis to menu items
* Add spacing to menu items
* Remove weird shadow
* Format
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-15 11:24:47 +01:00
Johan Preynat
e462ac837e
Redirect URLs containing uppercase characters to lowercase ( #266 )
...
* Add tests for normalizeURL
* Redirect requests containing uppercase in pathname to lowercase via normalizeURL
* Fix typo
2024-03-15 11:24:41 +01:00
Taran Vohra
a21673e4c1
use sameSite: none for va cookie ( #265 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-15 15:52:10 +05:30
Johan Preynat
c6537422a4
Use bun 1.0.30 for now in CI ( #269 )
2024-03-15 11:03:37 +01:00
Johan Preynat
654a9e6227
Increase getDocument timeout to 20s to prevent failing while the API is normalizing documents ( #264 )
2024-03-14 20:35:00 +01:00
Steven H
80d45c3ff7
Force light mode when exporting PDF. ( #242 )
2024-03-14 16:40:49 +00:00
Steven H
8c75bd364b
Revert "Add w-full to consider Cards block ( #261 )" ( #262 )
...
This reverts commit 06b94d4525 .
2024-03-14 15:42:06 +00:00
Viktor Renkema
06b94d4525
Add w-full to consider Cards block ( #261 )
2024-03-14 15:55:25 +01:00
Steven H
e5a9d16d7e
Mitigate long loading times on spaces with many files. ( #260 )
2024-03-14 11:41:11 +00:00
Samy Pessé
d0eebceacf
Batch request for getRevisionFile to avoid too many sub-requests ( #259 )
...
* Try approach with batching
* Improve it to support getRevision
* Fix
* Real fix
* Implement skip
* Lint
2024-03-13 18:10:07 +01:00
Steven H
ee3221885c
Remove Sentry trace/transaction ( #258 )
2024-03-13 16:35:18 +00:00
Greg Bergé
76dbf0f0d3
Tag synced block in API ( #256 )
2024-03-13 15:32:52 +01:00
Scott Cazan
fc11ffdc8b
Don't try to render responses if none are defined by the user ( #255 )
...
* don't try to parse responses if none are defined
* don't try to render responses if none exists
* move logic back into component
2024-03-13 14:37:21 +01:00
Steven H
9f83b0e783
Fix an issue where an incorrect cache key was used for revisions and pages, causing 404s and 500s. ( #254 )
2024-03-13 13:20:57 +00:00
Samy Pessé
b0a9361cbd
Disable redis cache ( #253 )
2024-03-13 13:36:38 +01:00
Samy Pessé
e34b923e4a
Correctly handle errors in blockFallback when inputs are running ( #249 )
...
* Correctly handle errors in blockFallback when inputs are running
* Format
* Fix case of steven
2024-03-13 12:54:49 +01:00
Samy Pessé
cf4b1249a9
Optimize performances for reading revisions ( #251 )
...
* Optimize read of revisions with metadata=false when possible
* Format
* Fix
* Update src/components/AdminToolbar/AdminToolbar.tsx
Co-authored-by: Steven H <shne24@gmail.com >
---------
Co-authored-by: Steven H <shne24@gmail.com >
2024-03-13 12:54:32 +01:00
Samy Pessé
221d85cc4d
Optimize caching of revisions/documents (immutable entries) in memory and cloudflare cache ( #252 )
...
* Better handle immutable cache entries in memory/cf-cache
* Format
* Update src/lib/cache/utils.ts
Co-authored-by: Steven H <shne24@gmail.com >
---------
Co-authored-by: Steven H <shne24@gmail.com >
2024-03-13 12:54:22 +01:00
Scott Cazan
658eb4d13f
extra check for undefined in schema.items ( #250 )
2024-03-13 12:24:10 +01:00
Samy Pessé
3725239e92
Skip data: images for image resizing ( #248 )
2024-03-13 11:36:06 +01:00
Samy Pessé
bdbd14c560
Fix next edge runtime not liking error in logs ( #247 )
...
* Fix next edge runtime not liking error in logs
* Fix other errors
2024-03-13 11:04:43 +01:00
Taran Vohra
0da4e9a926
Fix visitor auth logic by testing multiple basePaths ( #239 )
...
* WIP
* add search params to target in multi-path
* Simplify
* Format
* Ensure trailing slash
* Add unit test
* fix lint
* use search from target in redirect
* remove unused import
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-13 13:54:47 +05:30
Taran Vohra
1eb4bff09b
Strip url search params when comparing in lookupSpaceByAPI ( #246 )
...
* strip url search while comparison in lookupSpaceByAPI
* strip URL search for the lookupURL
2024-03-13 13:44:44 +05:30
Samy Pessé
147719c19b
Fix testing of VA in local development ( #245 )
2024-03-13 09:02:35 +01:00
Samy Pessé
c13f676ea8
Fix content references to other spaces ( #243 )
2024-03-12 20:43:07 +01:00
Samy Pessé
d326822b9d
Pass token to getPublishedContentByUrl to ensure rate-limit settings are propagated ( #244 )
2024-03-12 20:33:28 +01:00
Samy Pessé
111ec45357
Fix env variable used for API token ( #241 )
2024-03-12 18:12:49 +01:00
Steven H
e39e1db484
Fix an issue where track_view was failing. ( #240 )
2024-03-12 15:53:58 +00:00
Samy Pessé
6849df49ec
Fix error with primary revision being fetched instead of specific one ( #236 )
2024-03-12 12:03:13 +01:00
Steven H
a697dc4fcd
Fix an error where a Theme nonce value could cause inconsistencies between server- and client-side rendering. ( #237 )
2024-03-12 10:09:14 +00:00
Samy Pessé
a8d15555c8
Remove custom text selection color ( #234 )
2024-03-11 18:58:36 +01:00
Samy Pessé
7d53a2c849
Remove colors from HTML root and define them in the tailwind config ( #233 )
...
* Remove colors from HTML root and define them in the tailwind config
* Add visual test
2024-03-11 18:50:45 +01:00
Sebastian Graz
270f8b55a5
Hints ( #232 )
...
* V1 hint refactor
* checkbox fix
* Update src/components/DocumentView/Hint.tsx
remove comment
Co-authored-by: Samy Pessé <samypesse@gmail.com >
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-11 18:28:20 +01:00
Samy Pessé
56a9d5601b
Fix cache revalidation in KV and output stats on revalidation ( #231 )
...
* Store setAt on cache meta and output stats on revalidation
* Delete from KV cache
* test more
* Improve
* Format
* Store the key in metadata
* Avoid storing too much in KV
* Don't put tag on resolve of url
2024-03-11 13:30:26 +01:00
Samy Pessé
ea7ff33f3a
Expose publicly cache tags with x-gitbook-cache-tag ( #230 )
2024-03-11 10:17:44 +01:00
Samy Pessé
642e33444a
More immutable cache and pre-revalidation ( #229 )
...
* Try different approach
* Revalidate before cache expires
* TS
* Only replicate to local backends
* Ensure revalidate is done only once for the same key
* Improve perf of getCacheKey
* Simplify type
* Use better method and comment
* Use it 7 days only
2024-03-11 09:35:20 +01:00
Samy Pessé
0e858b1a43
Improve span name in sentry for cache ( #228 )
...
* Improve span name in sentry for cache
* Better use `trace`
* One more span
* Lint
* Log memory usage
* Reuse span between fetchValue and get
2024-03-09 14:31:23 +01:00
Samy Pessé
510a6f39d7
Fix revalidation and redis get ( #226 )
...
* Log
* Try to fix
* Use automaticDeserialization
* Log errors
* Ignore AbortError
2024-03-08 16:38:43 +01:00
Samy Pessé
f9e3835c2f
Simplify redis cache and remove hits count ( #225 )
...
* Simplify redis cache and remove hits count
* Fix naming
* Update src/lib/tracing.ts
Co-authored-by: Steven H <shne24@gmail.com >
---------
Co-authored-by: Steven H <shne24@gmail.com >
2024-03-08 13:05:32 +01:00
Greg Bergé
5a5b4bb93c
Replace Puppeteer by Playwright ( #224 )
...
* Replace Puppeteer by Playwright
* Remove the limit of workers on ci
* Various fixes after review
* Document things
2024-03-08 10:41:30 +01:00
Samy Pessé
55d1e538d9
More resilient caching and use of KV ( #222 )
...
* Add unit tests for "race"
* Reduce to 80s
* Implement a Cloudflare KV cache
* Format
* Lint
* Fix tagging of entries in KV
* No longer use HTTP cache tags
* Simplify tags to only keep 2
* Implement a blockFallback logic
* Improve the block fallback logic
* More tests
* Start introducing a always optional signal on all cache ops
* Correctly pass signal end to end
* Fix one more case and add tests
* Fix it
* Add test for error
* Fix error handling
* Simplify even more
* Improve logs
* Improve logs / measurements
* Fix timing
* Fix read cache duration and add minor tests
* Log redis time
* Change replication logic
* Fix redis errors
* Log more
* More logs and test memory first
* Improve tracing for cache backends
* Ignore all dependencies
* Log the key in the cache low level traces
2024-03-08 09:43:30 +01:00