about summary refs log tree commit diff
path: root/src/lib/strings
Commit message (Collapse)AuthorAgeFilesLines
* update bad token error message (#8954)Samuel Newman2025-09-021-1/+1
|
* fix searching for phrases by replacing smart quotes (#8865)Samuel Newman2025-08-251-0/+4
|
* remove unicode ltr chars and replace with css (#8826)Samuel Newman2025-08-121-2/+9
|
* Check handle as you type (#8601)Samuel Newman2025-08-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * check handle as you type * metrics * add metric types * fix overflow * only check reserved handles for bsky.social, fix test * change validation check name * tweak input * move ghosttext component to textfield * tweak styles to try and match latest * add suggestions * improvements, metrics * share logic between typeahead and next button * Apply suggestions from code review Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * update checks, disable button if unavailable * convert to lowercase * fix bug with checkHandleAvailability * add gate * move files around to make clearer * fix bad import * Fix flashing next button * Enable for TF --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* fix some auto complete issuesChenyu Huang2025-07-241-1/+1
|
* Upgrade prettier to 3.6 (#8558)Samuel Newman2025-06-231-2/+2
| | | | | | | * upgrade prettier * run prettier * more files
* Fix linking to specific search results (#8520)Samuel Newman2025-06-181-0/+5
| | | | | | | * fix linking to bsky.app/search?q=xyz * add name to comment * skip if notfound
* Live (#8354)Samuel Newman2025-05-101-0/+30
|
* bump it bop it upgrade it (rn 79/expo 53) (#8281)hailey2025-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * basic bumps * more tweaking * fix rn patch * fix crop picker patch * fix media library patch * rm unnecessary patch * fix notifications patch * update bottomsheet * Update withAppDelegateReferrer.js * Delete withNoBundleCompression.js * rm withNoBundleCompression plugin * rm findLast shim * metro package exports is enabled by default * update react/react-dom/react-compiler * fix reanimated issue * vendor expo-ized emoji popup * fix types * hackfix view full thread * Update EmojiPickerModule.podspec * more upgrades * fix multiformats package version * add baseurl * bump mmkv * bumps * update react-keyed-flatten-children * bump locale packages * fix emoji picker dark mode * rn upgrades * Revert "bump locale packages" This reverts commit fc82f0f173032127dd7c18ed0316ae26f53db51d. * upgrade testing-library * rm test renderer * update patch name minors * rm findNodeHandle from tabbar * only do scrollview tag thing on ios * disable package exports * update expo notifications handler * memoize emoji picker styles * fix tests, mock multiformats * bump some dev deps with RC versions * completely rearchitect toasts * rm logs * layout animation config for composer footer * disable autolinking for patched libs * undo lingui changes * version bump from release candidate to 0.1 * update atproto deps * rm @did-plc/server * fix key issue (maybe) * move URL polyfill to the polyfill file * fix yarn lock * upgrade to 53.0.3 * reanimated layout anim bug patch * workletize a function that wasn't getting autoworkletized anymore (#8309) * bump to expo 53.0.4 * bump RN to 0.79.2 * fix yarn lock ci * Revert "completely rearchitect toasts" This reverts commit 2e2fcaeeed527580a6c485718544b85e8b4f52b9. * final upgrades * chore: cleanup yarn lock * prettier --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* make handles lowercase (#8233)Samuel Newman2025-04-231-1/+1
|
* remove .parse usage (#8016)Hailey2025-03-171-1/+1
| | | | | * remove .parse usage * add one more usage
* encode url (#7968)Hailey2025-03-111-1/+1
|
* tweak link handling (#7857)Hailey2025-02-271-0/+15
|
* set minimum birthday to 13 years ago (#7808)Samuel Newman2025-02-211-0/+11
|
* fix handle length error message (#7802)Samuel Newman2025-02-211-5/+3
|
* `@atproto/api@next` integration (#7344)Eric Bailey2025-02-182-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump SDK * Use consistent type in profile query * Omit from constraint for profile shadow * Replace isRecord with isValidRecord in QuoteEmbed * Omit type from constraint for old ProfileCard * Omit type from constraint in profile queries where appropriate * Use correct type for update profile mutation * Conslidate and fix check for isValidRecord in Post.tsx * Replace isRecord with isValidRecord in PostThreadItem * Remove redundant cast in PostThreadFollowBtn * Ignore errors in DebugMod screen * Use matching type in ProfileFollows screen * Use matching type in ProfileFollowers screen * Migrate to isValidRecord in PostFeedItem * Use matching type if PostRepostedBy * Omit type from constraint in avatar props * Use matching types in NotificationFeedItem * Todo * Use isValidRecord in NotfyFeedItem * Improve MediaPreview types * Migrate another isValidRecord in NotificationFeedItem * Migrate to isValidView in queries/util * Migrate to isValidRecord in threadgate/util * Fix types in threadgates * Fix up types in starter-packs queries * Todo * Specify exact types in search-posts * Use internal type util to align types * Ditto last * Migrate postgate/index * Specify exact types in post-thread * Use correct type in post-quotes * FIX potential bug in post-thread * Use correct type in post-feed * Add correct type guards to notifications/feed * Migrate a guard in notifications/util * Migrate guard in Wizard/State * [@next] Profile handling, migrate `ProfileCard` (#7347) * Introduce new utils for profiles, migrate old ProfileCard * Rename, reorg * Add parseEmbed utils * Expand AnyProfileView to include chat profile view, update post shadow to reflect this * Cast for perf reasons * Tighten up types now that we have AnyProfileView * Add fastIsType util * Use `assertDid` Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use util types * Comment * Use fastIsType where no validation was happening before * suggestions (#7382) * suggestions * Revert unneeded changes --------- Co-authored-by: Eric Bailey <git@esb.lol> * Use new util * Rename to dangerousIsType * Convert object shape * Use dangerous util * Use dangerous util * Use dangerous util, we can trust post records * Use dangerous util * Use AnyProfileVIew * Convert object shape * Clean up handling * Patch moderateProfile to accept known profile views, to discuss * Add AnyStarterPackView and related, implement in first usage * Remove validation, fix type, fix ref * Migrate over list-conversations * Clarify intent behind precacheProfile and its unstable query cache * Clean up unstable profile cache * Fix types during label creation in PwiOptOut (#7346) * Tighten types in queries/list * Chat: use correct profile views * Chat: fix log type check * Chat: construct lexically correct shape, even though it's only internal usage * Chat: use correct profile types * Chat: fix type check in logs * Starter: use correct profile types * Starter: use correct profile types * Starter: tighten types to match lex * Any profile type will work in blocked-and-muted * Use dangerous util * Use dangerousIsType * Update new ProfileCard to use AnyProfileView * Use dangerousIsType * Remove outdated todo * Use correct profile type * Use correct profile types * Tighten up types * Use dangerousIsType * Chat: more type fixes * Remove unused file * Add a few utils * Remove unused file * Ignore feedPost.__source * Clean up types, leave validation in critical path * Use dangerousIstype * Use ANyProfileView * Use isValidRecord * Use dangerousIsType * Fix types in ListCard * Fix FeedInterstitials types * Fix types in FeedCard * Fix types in dms ReportDialog * Fix types in SearchablePeopleList * Fix bad type in composer opts * Starter: ok these need to be loose too * Clarify docs Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Less code Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports * Bump sdk, update $Typed imports * Format * Format * Fix weird TS error * Remove patch * Beter name * It's memo, can validate * Tighten up parseEmbed, dogfood * Bump sdk * Use asPredicate * Loosen types a bit * use asPredicate * Fix types * Use asPredicate * Use asPredicate * Use asPredicate * Clean up upsertProfile types * Use asPredicate * Use Un util * Fix types * Use new AnyProfileView * Use dangerousIsType * Use asPredicate * Use asPredicate * Add fallback content-type to pass typecheck * Clean up upsertProfile types * Align types * Use dangerousIsType * Use dangerousIsType * Use asPredicate * Align types * Convert findLast * Align types * Just ignore type errors and use findLast * Rename atproto -> bsky * Add validate util * Fix type error * Loosen types * Export post * rename atp bsky * Remove unused code * minor changes * Bump deps * Fix types * Tighten back up loose check * Tighten back up loose check * Fix small bug * Update comment * Revert change --------- Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com>
* Improved service handle validation logic (#7657)Samuel Newman2025-02-061-4/+3
| | | | | | | * fix validation logic for 3p pdses * fix bad import * add service handle validation test
* [ELI5] Validate too long handles in signup (#7422)Samuel Newman2025-01-101-2/+10
| | | | | * validate too long handles in signup * make change handle screen generic
* Better error message (+ translations!) (#6349)Samuel Newman2024-11-151-4/+10
| | | | | * clean network errors for new common eerors * translate errors
* Fix start value in youtube embed by removing "s" from url param (#6113)Lars Kappert2024-11-051-2/+5
|
* Sort imports (#6009)dan2024-10-293-4/+5
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Edit profile dialog ALF refresh (#5633)Samuel Newman2024-10-151-0/+14
|
* Protect against zero-width chars in display name sanitation (see ↵Paul Frazee2024-10-111-1/+1
| | | | https://github.com/bluesky-social/social-app/pull/5703#issuecomment-2407459187) (#5729)
* Sanitize multiple spaces in display names to protect against some security ↵Paul Frazee2024-10-101-1/+6
| | | | concerns (#5703)
* Move email test to root tests dir (#5527)Hailey2024-09-301-82/+0
|
* add podcasts to spotify embeds (#5514)Hailey2024-09-271-2/+16
|
* Filter errors that get sent to Sentry (#5247)Hailey2024-09-251-5/+13
|
* Validate TLD in signup (#5426)Hailey2024-09-202-0/+91
| | | | | | | | | | | | | | | | | | | | | | | * add lib * add validation * log * add some common typos * add tests * reset hasWarned state on edit * shorten path * Move test file, adjust regex, add test * Get real nit picky --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Video] Captions and alt text (#5009)Samuel Newman2024-08-301-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | * video settings modal in composer * show done button on web * rm download options * fix logic for showing settings button * add language picker (wip) * subtitle list with language select * send captions & alt text with video when posting * style "ensure you have selected a language" text * include aspect ratio with video * filter out captions where the lang is not set * rm log * fix label and add hint * minor scrubber fix
* [Videos] Fix uploads (#5042)Samuel Newman2024-08-301-2/+2
| | | | | | | * fix pds url * fix service auth exp * whoopsie wrong branch
* Localize dates, counts (#5027)Eric Bailey2024-08-291-9/+8
| | | | | | | | | | | | | | | | | | | | | | | * refactor: consistent localized formatting * refactor: localized date time * refactor: localize relative time with strings * chore: fix typo from copy-paste * Clean up useTimeAgo * Remove old ago * Const * Reuse * Prettier --------- Co-authored-by: Mary <git@mary.my.id>
* [Video] Properly get the service auth aud from the session (#5025)Hailey2024-08-291-0/+18
|
* Add `/live/` to supported YouTube embed URLs (#4932)Hailey2024-08-131-5/+10
|
* Fix RTL text rendering for display names (#4747)Hailey2024-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * header display name rtl support * highlighted post rtl * move `NON_BREAKING_SPACE` to an external constant * rtl support in search dropdown * profile card rtl * old profile card rtl * hover card * wizard list card * new chat * account card * chat header * clean up notifications * just force LTR on meta display name
* Fix misplaced '@' in RTL post meta. (#4531)Joel2024-07-072-1/+15
| | | | | Co-authored-by: Joel <joel.garplind+github@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Ensure `/start` navigates to `/starter-pack` when clicking a link internally ↵Hailey2024-07-071-0/+6
| | | | | | | (#4745) * remove temporary metadata removal * ensure proper navigation
* Add starter pack embeds to posts (#4699)Hailey2024-07-042-1/+25
| | | | | | | | | | | | | | | | | | | | | | | * starter pack embeds * revert test code * Types * add `BaseLink` * precache on click * rm log * add a comment * loading state * top margin --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Handle pressing all go.bsky.app links in-app w/ resolution (#4680)Hailey2024-06-271-2/+15
|
* Better starterpack embed (#4659)Hailey2024-06-262-0/+15
|
* Starter Packs (#4332)Hailey2024-06-211-0/+101
| | | | | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* GIF previews in notifications (#4447)Samuel Newman2024-06-191-35/+65
| | | | | | | | | | | * gifs in notifications * remove try/catch * Limit try/catch scope --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Verify email reminders (#4510)Eric Bailey2024-06-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * Clarify intent * Increase email reminder period to once per day * Fallback * Snooze immediately after account creation, prevent showing right after signup * Fix e2e test exports * Remove redundant check * Better simple date generation * Replace in DateField * Use non-string comparison * Revert change to unrelated code * Also parse * Remove side effect
* Add `useGetTimeAgo` and utils (#4556)Eric Bailey2024-06-181-42/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a testable version of ago() and re-enable the disabled test (#4364) * Enable the test of ago() * Use test cases This puts the input and the expected values next to each other. * Create dateDiff function This is a copy of ago(), but with the ability to specify the second date instead of using Date.now(). * Let ago() use dateDiff() * Move constants close to usage * Test dateDiff instead of ago This makes it possible to test the dates without being forced to rely on what the current date is. The commented out tests do not yet pass. This is fixed in later commits. * Update dateDiff and enable the remaining tests * Split up tests, use date-fns as helpers * Remove old test * Add long format * Add hook * Migrate to hooks * Delete old code * Or equal to * Update comment --------- Co-authored-by: Jan Aagaard <jan@aagaard.net>
* [🐴] Post embeds polish (#4339)Eric Bailey2024-06-041-0/+21
| | | | | | | * Handle message cleanup * Handle last message in chat list * Memoize lastMessage
* Support for Flickr album and group pool embeds (#3936)Thomas Dickerson2024-06-031-0/+76
| | | | | | | | | | | | | | | * Support for Flickr album and group pool embeds * Oops, forgot to add flickr to the persisted externalEmbeds schema * Need a bigint since our id can have more than 52 bits... * Remove unexpected trailing / from test data to match the expected behavior * nits --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] send record via link in text (Record DMs - base PR) (#4227)Samuel Newman2024-05-311-4/+20
| | | | | * send record via link in text * re-trim text after removing link
* [🐴] better error message for "Bad token scope" error (#4194)Samuel Newman2024-05-231-0/+3
| | | | | * better error message for "Bad token scope" error * log -> sign
* implement a safari hack for ime (#4186)Hailey2024-05-231-4/+1
| | | | | | | | | remove debug logs use a better hack implement a safari hack extract `isSafari` and `isFirefox` to a global variable
* get a little more accurate with month length (#3981)Hailey2024-05-131-6/+15
| | | | | | | * get a little more accurate with month length * create some wiggle room, create some specific tests * update more tests
* [🐴] Rich text in messages (#3926)Samuel Newman2024-05-091-0/+1
| | | | | | | | | | | | | | | | | * add facets to message * richtext messages * undo richtexttag changes * whoops, don't redetect facets * dont set color directly * shorten links and filter invalid facets * fix link shortening * pass in underline style