Commit graph

8 commits

Author SHA1 Message Date
ccbikai
651dcabdb1 feat: add error handling for link loading
Improves reliability of link loading functionality:
- Adds error state and handling for failed API requests
- Implements retry mechanism with user-facing error message
- Prevents infinite loading when errors occur
- Defers search API call to mounted hook

These changes enhance user experience by providing clear feedback and recovery options when link loading fails.
2024-12-24 12:43:19 +08:00
ccbikai
45745f1d8f fix: Replaces search component with lazy-loading variant
Substitutes the existing search component with a lazy-loading version to improve performance and loading times.

Enhances user experience by ensuring that search functionality loads only when needed.
2024-12-23 21:08:31 +08:00
ccbikai
842a8ab561 feat: Add link search function 2024-12-23 20:57:16 +08:00
ccbikai
19e18546de fix: adjust cursor handling for KV pagination
Moves undefined fallback from client to server side for cursor parameter
Ensures consistent pagination behavior when fetching links from KV storage

This prevents potential edge cases where undefined cursor values could be handled differently between client and server.
2024-12-08 11:37:04 +08:00
ccbikai
83db9cd2bc fix: Fixes cursor handling for API link requests
Replaces the cursor value in the API request with `undefined` if it is falsy. This prevents potential issues with null values being sent in the query, ensuring a more reliable API interaction.

Improves overall stability when fetching link data from the server.
2024-12-06 13:49:58 +08:00
ccbikai
f2a4a5963d fix: Filter out null values 2024-06-04 19:52:22 +08:00
QuentinHsu
dda19697d6
fix: the links data loading on the mobile page did not trigger 2024-06-04 13:18:18 +08:00
ccbikai
bd47e755d5 feat: init 2024-05-25 08:09:30 +08:00