Commit graph

2420 commits

Author SHA1 Message Date
Hailey
60eb6e23d1
close open dialogs when deep linking to composer (#3020) 2024-02-28 11:35:59 -08:00
Eric Bailey
d2c6edacb6
Protect against non functions being passed to close callback (#3019) 2024-02-28 11:27:54 -08:00
Eric Bailey
0c3d55db6f
Improve muted word matching (#3018)
* Use name params

* Add language exception matching
2024-02-28 08:38:31 -08:00
dan
d679ae7dbb
Use selected feed for window title on Home (#3016) 2024-02-28 08:08:11 -08:00
dan
0dd3f9432b
Fix wrong feed being shown (#3015) 2024-02-28 08:04:51 -08:00
Paul Frazee
23347a832d Update po files 2024-02-27 17:35:52 -08:00
dan
2d14d0e2db
Remove dangerous derived state from RichText (#3007)
* Remove facet resolution from RichText

* Remove derived state
2024-02-27 17:35:25 -08:00
dan
603f3c0be9
Safeguard posts from clobbered state (#3006) 2024-02-28 00:48:54 +00:00
dan
6bd68e5321
Fix keys within a slice (#3005)
Co-authored-by: Hailey <me@haileyok.com>
2024-02-28 00:19:13 +00:00
Hailey
d451f82f54
Share Extension/Intents (#2587)
* add native ios code outside of ios project

* helper script

* going to be a lot of these commits to squash...backing up

* save

* start of an expo plugin

* create info.plist

* copy the view controller

* maybe working

* working

* wait working now

* working plugin

* use current scheme

* update intent path

* use better params

* support text in uri

* build

* use better encoding

* handle images

* cleanup ios plugin

* android

* move bash script to /scripts

* handle cases where loaded data is uiimage rather than uri

* remove unnecessary logic, allow more than 4 images and just take first 4

* android build plugin

* limit images to four on android

* use js for plugins, no need to build

* revert changes to app config

* use correct scheme on android

* android readme

* move ios extension to /modules

* remove unnecessary event

* revert typo

* plugin readme

* scripts readme

* add configurable scheme to .env, default to `bluesky`

* remove debug

* revert .gitignore change

* add comment about updating .env to app.config.js for those modifying scheme

* modify .env

* update android module to use the proper url

* update ios extension

* remove comment

* parse and validate incoming image uris

* fix types

* rm oops

* fix a few typos
2024-02-27 15:22:03 -08:00
dan
ac726497a4
Show tab bar on desktop web (#2998)
* Show tabbar on desktop

* Make bottom border always 1px

* Don't hide/show navbar when switching tabs

* two rows WIP

* Top bar tweaks

* Make scroll adjustement native-only

* Add new web scroll behavior
2024-02-27 14:55:25 -08:00
Eric Bailey
978bcc1ba9
Tags menu/muted words improvements (#3002)
* Fix translations

* Handle loooong words

* Truncate on desktop web, revert mobile changes

* Break the words

* Small enough for mobile web

* Fix alignment on mobile web

* Clarify
2024-02-27 14:04:49 -08:00
Hailey
2a04546c73
Intent handler (#2992)
* Handle URL params

* Add resources

* Add other params

* refactor for scope

* modify the pr to support intents rather than utm

remove linebreak

remove linebreak

handle web

adjust path check to work on web

add a short delay for opening the composer

setup compose intent, move to `intents` directory

fix intent logic

ignore incoming intents in the navigation router

* refactor

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2024-02-27 10:35:38 -08:00
Hailey
c8d02a791a
Log to Sentry whenever users encounter Bluesky feed errors (#2999) 2024-02-27 10:01:29 -08:00
Eric Bailey
58aaad704a
Add tags and mute words (#2968)
* Add bare minimum hashtags support (#2804)

* Add bare minimum hashtags support

As atproto/api already parses hashtags, this is as simple as hooking it
up like link segments.

This is "bare minimum" because:

- Opening hashtag "#foo" is actually just a search for "foo" right now
  to work around #2491.
- There is no integration in the composer. This hasn't stopped people
  from using hashtags already, and can be added later.
- This change itself only had to hook things up - thank you for having
  already put the hashtag parsing in place.

* Remove workaround for hash search not working now that it's fixed

* Add RichTextTag and TagMenu

* Sketch

* Remove hackfix

* Some cleanup

* Sketch web

* Mobile design

* Mobile handling of tags search

* Web only

* Fix navigation woes

* Use new callback

* Hook it up

* Integrate muted tags

* Fix dropdown styles

* Type error

* Use close callback

* Fix styles

* Cleanup, install latest sdk

* Quick muted words screen

* Targets

* Dir structure

* Icons, list view

* Move to dialog

* Add removal confirmation

* Swap copy

* Improve checkboxees

* Update matching, add tests

* Moderate embeds

* Create global dialogs concept again to prevent flashing

* Add access from moderation screen

* Highlight tags on native

* Add web highlighting

* Add close to web modal

* Adjust close color

* Rename toggles and adjust logic

* Icon update

* Load states

* Improve regex

* Improve regex

* Improve regex

* Revert link test

* Hyphenated words

* Improve matching

* Enhance

* Some tweaks

* Muted words modal changes

* Handle invalid handles, handle long tags

* Remove main regex

* Better test

* Space/punct check drop to includes

* Lowercase post text before comparison

* Add better real world test case

---------

Co-authored-by: Kisaragi Hiu <mail@kisaragi-hiu.com>
2024-02-26 20:33:48 -08:00
Hailey
c8582924e2
Scale back sentry logs for trivial events (#2997)
* scale back sentry logs

* update migrate log tests
2024-02-26 20:19:06 -08:00
dan
1a34921661
Tweak tabbar sizing on web (#2996) 2024-02-27 03:56:25 +00:00
dan
3ec4e034b7
Fix imprecise header height calculation (#2995)
* Remove dead code

* Fix header height calculation
2024-02-27 02:33:23 +00:00
dan
a8925bac86
Remove side borders on mobile web list (#2994) 2024-02-27 01:25:25 +00:00
Eric Bailey
0311288dd7
Fix dark butterfly on android splash (#2993) 2024-02-26 19:24:36 -06:00
Hailey
832582df23
Adjust windowSize on PostThread FlatList (#2989)
* adjust window size, cells batching period

* rm batching period change
2024-02-26 16:54:05 -08:00
Hailey
88846ca36d
fix reversed icons in validator 🤦 (#2991) 2024-02-26 16:48:32 -08:00
Paul Frazee
d38f168de5 Update .po files 2024-02-23 17:01:47 -08:00
Hailey
9c5cd391dd
use showControls to show/hide live text icon on ios (#2982) 2024-02-23 16:05:54 -08:00
Paul Frazee
bdb63fff6d Fix dim mode unread notif color 2024-02-23 15:17:59 -08:00
dan
6ae9c5d45c
Make dim theme dim (#2966)
* Make dim color scheme dim

* Tweaks

* Overall tweaks

* We have to go darker

* Tweak saturation of blues in dim

* Increase contrast on dark-dark mode

* adjust dim

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Co-authored-by: Hailey <me@haileyok.com>
2024-02-23 15:09:50 -08:00
Hailey
de9df50af3
Add handle validation to create account UI (#2959)
* show uiState errors in the box as well

simplify copy

update ui for only letters and numbers

add ui validation to handle selection

* simplify names

* Fix accidental text-node render

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2024-02-23 13:38:47 -08:00
Mary
4771caf204
Normalize relative day (#2874)
* fix: normalize relative date

* chore: add comments

* refactor: skip flooring normalized diff

* refactor: let -> const

* fix: get own copy of date to prevent mutating

* refactor: rounding does the same trick
2024-02-23 12:38:14 -08:00
Hailey
1c5a2232fc
increase timeout to 15s (#2958) 2024-02-23 12:37:49 -08:00
Hailey
35be8ec90e
use useOpenLink hook for links in ALF (#2975)
* use `useOpenLink` hook for links in ALF

* web only for `outline`
2024-02-23 09:20:55 -08:00
dan
894f00d687
Rename Home Feed Prefs to Following Feed Prefs (#2965) 2024-02-22 16:51:11 +00:00
dan
1ccb3be961
Refactor feed header components (#2964)
* Move home-related files to view/com/home

* Add HomeHeader in front of FeedTabBar

* Move isDekstop check outside FeedsTabBar

* Remove PWI logic from tabbar

* Separate platform-specific layout from shared logic
2024-02-22 16:03:20 +00:00
dan
43206d9f57
Navigate back from a deleted post's route (#2948) 2024-02-21 17:51:42 +00:00
Eric Bailey
f88b165254
Add optional close callback to Dialog (#2947)
* Add optional close callback

* No emitter
2024-02-20 18:20:59 -06:00
dan
6413b8ba8c
Fix flash when pressing into just-created post (#2945) 2024-02-20 21:39:42 +00:00
Eric Bailey
9edb82609d
Last usage (#2944) 2024-02-20 15:25:54 -06:00
surfdude29
0c470d1f61
Update blogpost URL in ExportCarDialog.tsx (#2939) 2024-02-20 21:00:45 +00:00
dan
3a75855677
Prefer full posts for post thread placeholder (#2943)
* Revert "Prefer post over quote when finding cached post (#2935)"

This reverts commit da62a77f05.

* Prefer full posts for post thread placeholder

* Clarify with a comment
2024-02-20 19:41:29 +00:00
Hailey
fab6c286f4
Remove async resizing from external embed player (#2936)
* remove debug

adjust youtube shorts height

fix webview style

simplify styles

fix resizing

make it more clear

remove async resizes from external player

* remove comment

* ts

* reverse aspect
2024-02-20 11:38:56 -08:00
Eric Bailey
df5a8f1542
Swap RichText (#2934)
* Switch to new RT

* Allow early exit from links

* Build in tracking to text atoms

* Clean up FeedSourceCard

* Clean up leading after new default

* Add deprecated notice
2024-02-20 11:03:04 -06:00
Eric Bailey
8a169dc6a1
Improve dialogs issue (#2941)
* Fix collapse, update backdrop color

* Remove test prop

* Remove debug code
2024-02-20 08:04:07 -08:00
Eric Bailey
b52a742925
Improve dialogs (#2933)
* Improve dialogs

* Remove comment, revert storybook

* Hacky fix

* Comments
2024-02-19 18:18:13 -06:00
Hailey
da62a77f05
Prefer post over quote when finding cached post (#2935) 2024-02-19 16:15:42 -08:00
Hailey
2e132a7a01
Add embed to post view when converting from embed view (#2929) 2024-02-19 14:44:09 -08:00
Hailey
5573c38c4d
Update IS_PROD check (#2930)
* update is_prod check

* remove unused constants

* rename `IS_PROD` function to `IS_PROD_SERVICE`
2024-02-19 13:30:25 -08:00
Eric Bailey
943acd16aa
Add selectable to new text components (#2899)
* Make new text selectable (broken)

* Fixes

* Fix bad conflict resolution

* Remove console
2024-02-19 08:08:21 -08:00
Eiichi Yoshikawa
7390863a10
Add theme-color meta tag and apply selection of theme (#2918)
* Add theme-color meta tag and apply selection of theme

* update logic for retrieving current theme color

* add ts-ignore

* fix ts error

---------

Co-authored-by: Hailey <me@haileyok.com>
2024-02-18 18:06:00 -08:00
Hailey
a40b43dfc9
update intl (#2911) 2024-02-17 16:19:53 -08:00
Hailey
fbdf4517c2
Implement captcha (#2882)
* web height adjustment

border radius incase of dark/dim mismatch

rm country codes

adjust height

general form refactor

more form refactor

refactor form submission

activity indicator after finished

remove remaining phone stuff

adjust captcha height

adjust state to reflect switch

move handle to the second step

pass color scheme param

ts

ts

update state when captcha is complete

web views and callbacks

remove old state

allow specified hosts

replace phone verification with a webview

* remove log

* height adjustment

* few changes

* use the correct url

* remove some debug

* validate handle before continuing

* explicitly check if there is a did, dont rely on error

* rm throw

* update allowed hosts

* update redirect host for webview

* fix handle

* fix handle check

* adjust height for full challenge
2024-02-17 16:03:47 -08:00
Hailey
a2f462e261
remove sandbox labels (#2883)
* rm sandbox

* remove comment
2024-02-16 13:25:48 -08:00