Skip to content

Commit

Permalink
Rm unused (#4)
Browse files Browse the repository at this point in the history
* Mark more texts for localization

* Update Drawer.tsx

* Update src/view/screens/Settings/index.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update src/view/screens/Settings/index.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update src/view/com/modals/LinkWarning.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update src/view/com/modals/LinkWarning.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update src/view/screens/Moderation.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update index.tsx

* Update index.tsx

* Update ProfileFeed.tsx

* Update LanguageSettings.tsx

* Update Moderation.tsx

* Update index.tsx

* Update Moderation.tsx

* Update ExportCarDialog.tsx

* Add files via upload

* Update messages.po

* Update messages.po

Corrected a small grammatical error

* Update messages.po

Changed translation for the word "Following" in the header section

* Update messages.po

changes some wordings, corrected a typo

* Update messages.po

Changed the tense of a grammatical sentence to present

* Update messages.po

grammatical changes related to the subject

* Update messages.po

Additional grammatical changes

* Update messages.po

Updated Nozioni di Base to Preferenze, which has a more logical contest

* Update messages.po

Additional grammatical correction related to subject gender

* Create messages.po

Finnish tranlation for Bluesky

* Update messages.po

Some fixes.

* Update messages.po

Minor changes. (Handle=käyttäjätunnus)

* Update messages.po

* Update messages.po

* Update languages.ts

Added Finnish - Suomi

* Update languages.ts

Suomi - Finnish

* Update helpers.ts

Added Finnish

* Update i18n.ts

Added Finnish

* Update i18n.web.ts

Added Finnish

* Update languages.ts

Typo

* Update i18n.ts

Fixed typo in line 9

* Update Finnish to lingui.config.js

Added Finnish localization

* Update NotFound.tsx

* Update NotFound.tsx

* accessibilityLabel

* Update NotFound.tsx

* Update messages.po

Translation updated with minor corrections

* Update messages.po

Corrected small typo

* Update ChangePassword.tsx

* Update ChangePassword.tsx

* Update Search.tsx

* Update messages.po

sentence updated

* Update messages.po

Changed a longer sentence for a shorter version in order to fit on the app screen.

* Update Lists.tsx

* Update messages.po

Updated two expression

* Update messages.po

Updated new strings

* Update messages.po

* Update messages.po

Updated latest strings

* Add files via upload

* Update src/view/screens/Settings/index.tsx

Co-authored-by: surfdude29 <[email protected]>

* Update src/view/screens/Settings/index.tsx

Co-authored-by: surfdude29 <[email protected]>

* Convert profile edit avatar/banner dropdown menus to new menu (bluesky-social#3177)

* convert profile edit dropdown menu to new menu

fix banner text

add `showCancel` prop to menu outer

banner dropdown to menu

add Cancel button to menu

replace user avatar dropdown with menu

add StreamingLive icon

add camera icon

* remove export

* use new camera icon

* adjust icon color

* Combine actions, convert to new menu (bluesky-social#3174)

* Combine actions, convert to new menu

* remove about tab and move content to header

* Tweak alignment

* fix missing rkey

* hog the like button

* Add a little more whitespace

* Improve a11y

* Yeah toast

* Update usage

* Pin to Home

---------

Co-authored-by: Samuel Newman <[email protected]>

* Small fixes (bluesky-social#3184)

* Fix alignment of MutedWords close button

* Add cancel button to dropdowns

* Revert "Add cancel button to dropdowns"

This reverts commit b8f5ddc.

* `npx update-browserslist-db@latest` (bluesky-social#3166)

Should silence the annoying warning for a bit.

* Use new menu for Profile (bluesky-social#3168)

* use new menu on profile

* organize imports

* fix testID

* add person icons

* use `style` prop for minWidth

* use new icons

* rm circleban

* Add unfollow option if account is blocked/blocking

* use `StyleProp` 🤯

* ts after merge

---------

Co-authored-by: Samuel Newman <[email protected]>

* ALF confirmation dialogs (Dialogs Pt. 3) (bluesky-social#3143)

* Improve a11y on ios

* Format

* Remove android

* Fix android

* ALF confirmation dialog

* Use ALF for Delete Post confirmation

organize

diff

fix text

minimize

change copy

alternative confirm prompt

revert type changes

add ButtonColor param

* small adjustment to buttons in prompt

* full width below gtmobile

* update hide post dialog

* space out dialogs

* update dialogs for lists

* add example

* add to app passwords

* Revert some changes

* use sharedvalue for `importantForAccessibility`

* add back `isOpen`

* fix some more types

* small adjustment to buttons in prompt

* full width below gtmobile

* update the rest of the prompts

rm old confirm modal

rm update prompt

feed error prompt

feed source card and profile block/unblock

composer discard

* Update src/view/screens/AppPasswords.tsx

Co-authored-by: surfdude29 <[email protected]>

* lint

* How about a default

* Reverse reverse

* Port over confirm dialogs

* Add some comments

* Remove unused file

* complete merge

* add testID where needed

---------

Co-authored-by: Eric Bailey <[email protected]>
Co-authored-by: surfdude29 <[email protected]>

* Fix sensitivity while scrolling (bluesky-social#3190)

* Fix dropdown close via a portaled backdrop (bluesky-social#3191)

* Unfork Statsig for web (bluesky-social#3192)

* Tweak prompt styles on mobile web (bluesky-social#3193)

* Update index.tsx

* Update index.tsx

* Send route name with Statsig events (bluesky-social#3194)

* Add types to Statsig events

* Send route name with events

* filter out files with non-image mime types

* 1.73 Version Bump (bluesky-social#3200)

* [Statsig] Track likes, reposts, follows (bluesky-social#3195)

* [Statsig] Track likes

* Move tracking to intent

* Track repost/unrepost

* Track profile follows/unfollows

* Less copy paste

* Reorder

* [Statsig] Track posting, end reached (bluesky-social#3206)

* Track post create

* Track feed endReached

* use prompt.basic instead of full prompt

* add warning to profile as well

* Remove `FixedTouchableHighlight` , fix Android press issues (bluesky-social#3214)

* rm `FixedTouchableHighlight`

* adjust delay for highlight

* remove unnecessary background colors to support background ripple

* ALF the birthday modal and remove legacy one

* rename BirthdaySettings -> BirthDateSettings + remove legacy modal

* center date input

* make alignment platform specific rather than size specific

* change to scrollable inner

* add padding to the `ScrollableInner`

* Add package diff PR labeler (bluesky-social#3212)

* add PR labeler

* test cache

* rm change

* Adjust PR Labeler (bluesky-social#3224)

* Update Lists.tsx

* Update ReasonOptions.tsx

* Update ReasonOptions.tsx

* Update Modal.tsx

* Update Modal.tsx

* Update Modal.tsx

* Add 'Liberation Sans' font for FireFox on Linux; lightbox buttons adjustments

* remove scrollbar gutter for Chrome when body scroll is locked

* change usage of t to msg

* Fix PR labeler bot comment delete (bluesky-social#3249)

* Add missing macro

Co-authored-by: Gildásio Filho <[email protected]>

* Properly fill container for YT Shorts videos (bluesky-social#3238)

account for jest

account for jest

yt iframe fill container

* Use [bot] in action username (bluesky-social#3250)

* 3p moderation services [WIP] (bluesky-social#2550)

* Add modservice screen and profile-header-card

* Drop the guidelines for now

* Remove ununsed constants

* Add label & label group descriptions

* Not found state

* Reorg, add icon

* Subheader

* Header

* Complete header

* Clean up

* Add all groups

* Fix scroll view

* Dialogs side quest

* Remove log

* Add (WIP) debug mod page

* Dialog solution

* Add note

* Clean up and reorganize localized moderation strings

* Memoize

* Add example

* Add first ReportDialog screen

* Report dialog step 2

* Submit

* Integrate updates

* Move moderation screen

* Migrate buttons

* Migrate everything

* Rough sketch

* Fix types

* Update atoms values

* Abstract ModerationServiceCard

* Hook up data to settings page

* Handle subscription

* Rough enablement

* Rough enablement

* Some validation, fixes

* More work on the mod debug screen

* Hook up data

* Update invalidation

* Hook up data to ReportDialog

* Fix native error

* Refactor/rewrite the entire moderation-application system

* Fix toggles

* Add copyright and other option to report

* Handle reports on profile vs content

* Little cleanup

* Get post hiding back in gear

* Better loading flow on Mod screen

* Clean up Mod screen

* Clean up ProfileMod screen

* Handle muting correctly

* Update enablement on ProfileMod screen

* Improve Moderation screen and dialog

* Styling, handle disabled labelers

* Rework list of labels on own content

* Use moderateNotification()

* ReportDialog updates

* Fix button overflow

* Simplify the ProfileModerationService ui

* Mod screen design

* Move moderation card from the profile header to a tab

* Small tweaks to the moderation screen

* Enable toggle on mod page

* Add notifs to debugmod and dont filter notifs from followed users

* Add moderator-service profile view

* Wire up more of the modservice data to profiles

* A bunch of speculative non-working UI

* Cleanup: delete old code

* Update ModerationDetailsDialog

* Update ReportDialog

* Update LabelsOnMe dialog

* Handle ReportDialog load better

* Rename LabelsOnMeDialog, fix close

* Experiment to put labeling under a tab of a normal profile

* Moderator variation of profile

* Remove dead code and start moving toward latest modsdk

* Remove a bunch of now-dead label strings

* Update ModDebug to be a bit more intuitive and support custom labels

* Minor ui tweaks

* Improve consistency of display name blurring

* Fix profile-card warning rendering

* More debugmod UI tuning

* Update to use new labeler semantics

* Delete some dead code and do some refactoring

* Update profile to pull from labeler definition

* Implement new label config controls (wip)

* Tweak ui

* Implement preference controls on labelers

* Rework label pref ui

* Get moderation screen working

* Add asyncstorage query persistence

* Implement label handling

* Small cleanup

* Implement Likes dialog

* Fix: remove text outside of text element

* Cleanup

* Fix likes dialog on mobile

* Implement the label appeal flow

* Get report flow working again with temporarily fixed report options

* Update onboarding

* Enforce limit of ten labeler subscriptions

* Fix type errors

* Fix lint errors

* Improve types of RQ

* Some work on Likes dialog, needs discussion

* Bit of ReportDialog cleanup

* Replace non-single-path SVG

* Update nudity descriptions

* Update to use new sdk updates

* Add adult-content-enabled behavior to label config

* Use the default setting of custom labels

* Handle global moderation label prefs with the global settings

* Fix missing postAuthor

* Fix empty moderation page

* Add mutewords control back to Mod screen

* Tweak adult setting styles

* Remove deprecated global labels

* Handle underage users on mod screen

* Adjust font sizes

* Swap in RichText

* Like button improvements

* Tweaks to Labeler profile

* Design tweaks for mod pref dialog

* Add tertiary button color

* Switch moderation UIs to tertiary color

* Update mutewords and hiddenposts to use the new sdk

* Add test-environment mod authority

* Switch 'gore' to 'graphic-media'

* Move nudity out of the adult content control

* Remove focus styles from buttons - let the browser behavior handle it

* Fixes to the adult content age-gating in moderaiton

* Ditch tertiary button color, lighten secondary button

* Fix some colors

* Remove focused overrides from toggles

* Liked by screen

* Rework the moderationlabelpref

* Fix optimistic like

* Cleanup

* Change how onboarding handles adult content enabled/disabled

* Add special handling of the mod authorities

* Tweaks

* Update the default labeler avatar to a shield

* Add route to go server

* Avoid dups due to bad config

* Fix attrs

* Fix: dont try to detect link/label mismatches on post meta

* Correctly show the label behavior when adult content is disabled

* Readd the local hiddenPosts handling

* WIP

* Fix bad merge

* Conten hider design tweaks

* Fix text string breakage

* Adjust source text in ContentHider

* Fix link bug

* Design tweaks to ContentHider and ModDetailsDialog

* Adjust spacing of inform badges

* Adjust spacing of embeds in posts

* Style tweaks to post/profile alerts

* Labels on me and dialog

* Remove bad focus styles from post dropdown

* Better spacing solution

* Tune moderation UIs

* Moderation UI tweaks for mobile

* Move labelers query on Mod screen

* Update to use new SDK appLabelers semantics

* Implement report submission

* Replace the report modal entirely with the report dialog

* Add @ to mod details dialog handle

* Bump SDK package

* Remove silly type

* Add to AWS build CI

* Fix ToggleButton overflow

* Clean up ModServiceCard, rename to LabelingServiceCard

* Hackfix to translate gore labels to graphic-media

* Tune content hider sizing on web desktop

* Handle self labels

* Fix spacing below text-only posts

* Fix: send appeals to the right labeler

* Give mod page links interactive states

* Fix references

* Remove focus handling

* Remove remnant

* Remove the like count from the subscribed labeler listing

* Bump @atproto/[email protected]

* Remove extra @

* Fix: persist labels to local storage to reduce coverage gaps

* update dipendencies

* revert dipendencies

* Add some explainers on how blocking affects labelers

* Tweak copy

* Fix underline color in header

* Fix profile menu

* Handle card overflow

* Remove metrics from header

* Mute 'account' not 'user'

* Show metrics if self

* Show the labels tab on logged out view

* Fix bad merge

* Use purple theming on labelers

* Tighten space on LabelerCard

* Set staleTime to 6hrs for labeler details

* Memoize the memoizers

* Drop staleTime to 60s

* Move label defs into a context to reduce recomputes

* Submit view tweaks

* Move labeler fetch below auth

* Mitigation: hardcode the bluesky moderation labeler name

* Bump sdk

* Add missing translated string

Co-authored-by: Takayuki KUSANO <[email protected]>

* Add missing translated string

Co-authored-by: Takayuki KUSANO <[email protected]>

* Hailey's fix for incorrect profile tabs

Co-authored-by: Hailey <[email protected]>

* Feedback

* Fix borders, add bottom space

* Hailey's fix pt 2

Co-authored-by: Hailey <[email protected]>

* Fix post tabs

* Integrate feedback pt 1

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 2

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 3

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 4

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 5

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 6

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 7

Co-authored-by: Takayuki KUSANO <[email protected]>

* Integrate feedback pt 8

Co-authored-by: Takayuki KUSANO <[email protected]>

* Format

* Integrate new bday modal

* Use public agent for getServices

* Update casing

---------

Co-authored-by: Eric Bailey <[email protected]>
Co-authored-by: Takayuki KUSANO <[email protected]>
Co-authored-by: Hailey <[email protected]>

* change outer border radius to 10

* change default avi to use a rect instead of a path

* Use entryway for labeler getServices (bluesky-social#3256)

* Update the reporting flow to first select a recipient if the user has multiple labelers (bluesky-social#3258)

* Bump @atproto/[email protected] (bluesky-social#3260)

* Bump @atproto/[email protected]

* Fix unit tests

* fix borders for labels tab (bluesky-social#3261)

* fix borders for labels tab

* rm entire wrapping view

* Bday modal tweaks (bluesky-social#3252)

* Smol tweaks to bday dialog

* Juse use existing DateInput for now

* Remove unused code

* Remove passed-in prefs

* Adjust load state

* Revert "Adjust load state"

This reverts commit 802459f.

* Fix type error

* add `Partial<GestureResponderEvent>` to `.open()` (bluesky-social#3227)

* Fix space on bottom of mod screen (bluesky-social#3266)

* Fix space on bottom of mod screen

* fix PWI label overflow + center loader (bluesky-social#3268)

---------

Co-authored-by: Samuel Newman <[email protected]>

* Mobile mod label setting component (bluesky-social#3267)

* Mobile mod label setting component

* Bump label title size

* Dont show disabled label config on mobile

---------

Co-authored-by: Paul Frazee <[email protected]>

* Update German translations (bluesky-social#2917)

* Update German translations

* Apply suggestions from code review

Co-authored-by: Felix Siebeneicker <[email protected]>

* Further suggestions from code review

* Apply further suggested change

* Apply suggestions from code review

* Apply suggested changes from PythooonUser

* Update src/locale/locales/de/messages.po

* Apply suggestions from code review

Co-authored-by: cdfzo <[email protected]>

* Apply suggestions from @cdfzo's code review manually

* Apply suggestion from @cdfzo's code review manually

* Update messages.po

* Update src/locale/locales/de/messages.po

Co-authored-by: Felix Siebeneicker <[email protected]>

* Update messages.po

* Apply suggestions from code review

Co-authored-by: Felix Siebeneicker <[email protected]>

* Update src/locale/locales/de/messages.po

* Update messages.po

* Change `Benachrichtigungen` to `Mitteilungen` in line with bluesky-social#2805

* Apply suggestions from code review

Co-authored-by: Felix Siebeneicker <[email protected]>

* Apply suggestions from code review

Co-authored-by: Felix Siebeneicker <[email protected]>

* Change four usages of Benutzerhandle

* Update messages.po

* Update src/locale/locales/de/messages.po

* Add credits

* Update messages.po

* Add new translated strings following merge

* Update messages.po

* Update messages.po

* Update german translations by @cdfzo

* Update german translations

* Apply suggestions from code review

Co-authored-by: surfdude29 <[email protected]>

* Correct translations from pr review

---------

Co-authored-by: surfdude29 <[email protected]>

* Update revision date of messages.po

* Update messages.po

* Update messages.po

* Delete superseded strings

* Add new translations

* Update messages.po

* Apply suggestions from code review

Co-authored-by: cdfzo <[email protected]>

* Apply suggested change from code review by @cdfzo

* Update revision date of messages.po

---------

Co-authored-by: Felix Siebeneicker <[email protected]>
Co-authored-by: cdfzo <[email protected]>

* Update French translation (bluesky-social#3117)

* Update French translation

* Apply suggestions from code review

Co-authored-by: Stanislas Signoud <[email protected]>

* Update src/locale/locales/fr/messages.po

Co-authored-by: Stanislas Signoud <[email protected]>

* Change `étiquette` to `mot-clé`

* Change other usages of `actualité` to `actu`

* Update messages.po

* Change certain space characters to non-breaking spaces

* Update src/locale/locales/fr/messages.po

* Update src/locale/locales/fr/messages.po

Co-authored-by: Stanislas Signoud <[email protected]>

* Update messages.po

* Remove superseded strings and match some

* Add new translations

* Update revision date

---------

Co-authored-by: Stanislas Signoud <[email protected]>

* add expo-updates github action (bluesky-social#3270)

* add expo-updates github action

* add two scripts

* Rework the labeler selection step of the report flow (bluesky-social#3269)

* Rework the labeler selection step of the report flow

* Fix: use gtMobile

* Use primitives, fix avatar

* Spacing tweaks

* Show handle instead of description

---------

Co-authored-by: Eric Bailey <[email protected]>

* Use default label prefs for pwi (bluesky-social#3271)

* Update trusted hosts, allow `#`, and add more tests (bluesky-social#3232)

* Update trusted hosts, allow `#`, and add more tests

* update comments

* prevent duplicate pickers from opening on android (bluesky-social#3240)

* prevent duplicate pickers from opening on android

* revert unnecessary changes

* test

* one more test

* patch-fix `RCTRefreshControl` (bluesky-social#3259)

* `PostThread` cleanup (bluesky-social#3183)

* cleanup PostThread

rm some more unnecessary code

cleanup some more pieces

fix `isLoading` logic

few fixes

organize

refactor `PostThread`

allow chaining of `postThreadQuery`

Update `Hashtag` screen with the component changes

Make some changes to the List components

adjust height and padding of bottom loader to account for bottom bar

* rm unnecessary chaining logic

* maxReplies logic

* adjust error logic

* use `<` instead of `<=`

* add back warning comment

* remove unused prop

* adjust order

* update prop name

* don't show error if `isLoading`

* ProfileFollows and ProfileFollowers cleanup (bluesky-social#3219)

* cleanup PostThread

rm some more unnecessary code

cleanup some more pieces

fix `isLoading` logic

few fixes

organize

refactor `PostThread`

allow chaining of `postThreadQuery`

Update `Hashtag` screen with the component changes

Make some changes to the List components

adjust height and padding of bottom loader to account for bottom bar

* rm unnecessary chaining logic

* maxReplies logic

* adjust error logic

* use `<` instead of `<=`

* add back warning comment

* remove unused prop

* adjust order

* implement list improvements for followers/follows

* update prop name

* small adjustments

fix flex

add window size

adjust isLoading

* remove log

* don't show retry for no results

* don't show error if `isLoading`

* Use consistent avatar shape/defaults for labelers (bluesky-social#3257)

* Add type: labeler to easy spots

* Search and ProfileCard

* Filter out of suggested follows

* ComposeReplyTo

* PReviewable avatar in posts

* Lists

* PostMeta

* Notifications

* Autocomplete

* Straggler

* Bump sdk

* Update Korean localization (bluesky-social#2769)

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update src/locale/locales/ko/messages.po

Co-authored-by: Lens0021 / Leslie <[email protected]>

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

---------

Co-authored-by: Lens0021 / Leslie <[email protected]>
Co-authored-by: Daniel S. Park <[email protected]>

* Update pt-BR localization to latest version (bluesky-social#2876)

* Update messages.po

* Update messages.po

* Update messages.po

* Update messages.po

* Update src/locale/locales/pt-BR/messages.po

Co-authored-by: Gleydson Rodrigues <[email protected]>

* Update messages.po

---------

Co-authored-by: Gleydson Rodrigues <[email protected]>

* Update zh-CN translation to latest version (bluesky-social#2901)

* Update Chinese translation for "followed you" message

* Update translations for zh-CN locale

* Update messages.po

* Delete empty line

* Add translations in messages.po

* fix some issue

* Apply suggestions from code review

* Update src/locale/locales/zh-CN/messages.po

* Update src/locale/locales/zh-CN/messages.po

* Update src/locale/locales/zh-CN/messages.po

* accept suggestions

* unify translations

* Update Chinese translations for Navigation and PreferencesHomeFeed

* Update translations

* merge latest translations

---------

Co-authored-by: Frudrax Cheng <[email protected]>

* Update catalan localization messages.po (bluesky-social#2904)

* Update catalan localization messages.po

Localization of new lines

* Update messages.po

* Update messages.po

Corrections applied

* Fix merge error

* Fix formatting

* [Statsig] Include OS and track app state changes (bluesky-social#3273)

* Include platform in identify

* Track back/foregrounding

* Fix typos and clarify two `accessibilityHint`s (bluesky-social#2923)

* Clarify accessibilityHint in Settings

* Fix typo in ModerationMutedAccounts.tsx

* Fix typo in ModerationBlockedAccounts.tsx

* fix lint error in ModerationMutedAccounts.tsx

* try again

* fix lint error in index.tsx

* try again

* Update index.tsx

* Update index.tsx

---------

Co-authored-by: Paul Frazee <[email protected]>

* Update Ukrainian translation (bluesky-social#2951)

Co-authored-by: Ukrainians <[email protected]>

* Track notification open (bluesky-social#3274)

* Prevent linking to post from an embed in composer (bluesky-social#3275)

* Remove dead style

* Bump sdk for mute words updates (bluesky-social#3277)

* Fix typo in tagMenuSearchByUser (bluesky-social#3181)

* Fix detection of !no-unauthenticated (bluesky-social#3279)

---------

Co-authored-by: Minseo Lee <[email protected]>
Co-authored-by: Gabriella N <[email protected]>
Co-authored-by: jaoler <[email protected]>
Co-authored-by: Hailey <[email protected]>
Co-authored-by: Eric Bailey <[email protected]>
Co-authored-by: Samuel Newman <[email protected]>
Co-authored-by: Alice <[email protected]>
Co-authored-by: dan <[email protected]>
Co-authored-by: Alexander K <[email protected]>
Co-authored-by: Gildásio Filho <[email protected]>
Co-authored-by: Paul Frazee <[email protected]>
Co-authored-by: Takayuki KUSANO <[email protected]>
Co-authored-by: Felix Siebeneicker <[email protected]>
Co-authored-by: cdfzo <[email protected]>
Co-authored-by: Stanislas Signoud <[email protected]>
Co-authored-by: Lens0021 / Leslie <[email protected]>
Co-authored-by: Daniel S. Park <[email protected]>
Co-authored-by: Gleydson Rodrigues <[email protected]>
Co-authored-by: Leonid <[email protected]>
Co-authored-by: Frudrax Cheng <[email protected]>
Co-authored-by: Ivan Beà <[email protected]>
Co-authored-by: Dovgonosyk <[email protected]>
Co-authored-by: Ukrainians <[email protected]>
  • Loading branch information
1 parent 83a3159 commit 9a3b50e
Show file tree
Hide file tree
Showing 284 changed files with 18,703 additions and 11,749 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-bskyweb-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
branches:
- main
- traffic-reduction
- respect-optout-for-embeds
- 3p-moderators

env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/bundle-deploy-eas-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: Bundle and Deploy EAS Update

on:
workflow_dispatch:
inputs:
runtimeVersion:
type: string
description: Runtime version (in x.x.x format) that this update is for
required: true

jobs:
bundleDeploy:
name: Bundle and Deploy EAS Update
runs-on: ubuntu-latest
steps:
- name: 🧐 Validate version
run: |
[[ "${{ github.event.inputs.runtimeVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "Version is valid" || exit 1
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🔧 Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: ⚙️ Install Dependencies
run: yarn install

- name: 🪛 Install jq
uses: dcarbone/install-jq-action@v2

- name: ⛏️ Setup Expo
run: yarn global add eas-cli-local-build-plugin

- name: 🔤 Compile Translations
run: yarn intl:build

- name: ✏️ Write environment variables
run: |
export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}'
echo "${{ secrets.ENV_TOKEN }}" > .env
echo "$json" > google-services.json
- name: 🏗️ Create Bundle
run: yarn export

- name: 📦 Package Bundle and 🚀 Deploy
run: yarn make-deploy-bundle
env:
DENIS_API_KEY: ${{ secrets.DENIS_API_KEY }}
RUNTIME_VERSION: ${{ github.event.inputs.runtimeVersion }}
185 changes: 185 additions & 0 deletions .github/workflows/pull-request-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
# Credit https://github.com/expo/expo
# https://github.com/expo/expo/blob/main/.github/workflows/pr-labeler.yml
---
name: PR labeler

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]

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

jobs:
test-suite-fingerprint:
runs-on: ubuntu-22.04
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}
# REQUIRED: limit concurrency when pushing main(default) branch to prevent conflict for this action to update its fingerprint database
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write
# REQUIRED: Allow updating fingerprint in acton caches
actions: write
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100

- name: ⬇️ Fetch commits from base branch
run: git fetch origin main:main --depth 100
if: github.event_name == 'pull_request'

- name: 🔧 Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: ⚙️ Install Dependencies
run: yarn install

- name: Get the base commit
id: base-commit
run: |
# Since we limit this pr-labeler workflow only triggered from limited paths, we should use custom base commit
echo base-commit=$(git log -n 1 main --pretty=format:'%H') >> "$GITHUB_OUTPUT"
- name: 📷 Check fingerprint
id: fingerprint
uses: expo/expo-github-action/fingerprint@main
with:
previous-git-commit: ${{ steps.base-commit.outputs.base-commit }}

- name: 👀 Debug fingerprint
run: |
echo "previousGitCommit=${{ steps.fingerprint.outputs.previous-git-commit }} currentGitCommit=${{ steps.fingerprint.outputs.current-git-commit }}"
echo "isPreviousFingerprintEmpty=${{ steps.fingerprint.outputs.previous-fingerprint == '' }}"
- name: 🏷️ Labeling PR
uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff == '[]' }}
with:
script: |
try {
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ['bot: fingerprint changed']
})
} catch (e) {
if (e.status != 404) {
throw e;
}
}
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['bot: fingerprint compatible']
})
- name: 🏷️ Labeling PR
uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff != '[]' }}
with:
script: |
try {
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ['bot: fingerprint compatible']
})
} catch (e) {
if (e.status != 404) {
throw e;
}
}
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['bot: fingerprint changed']
})
- name: 🔍 Find old comment if it exists
uses: peter-evans/find-comment@v2
if: ${{ github.event_name == 'pull_request' }}
id: old_comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: <!-- pr-labeler comment -->

- name: 💬 Add comment with fingerprint
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff != '[]' && steps.old_comment.outputs.comment-id == '' }}
uses: actions/github-script@v6
with:
script: |
const diff = JSON.stringify(${{ steps.fingerprint.outputs.fingerprint-diff}}, null, 2);
const body = `<!-- pr-labeler comment -->
The Pull Request introduced fingerprint changes against the base commit: ${{ steps.fingerprint.outputs.previous-git-commit }}
<details><summary>Fingerprint diff</summary>
\`\`\`json
${diff}
\`\`\`
</details>
---
*Generated by [PR labeler](https://github.com/expo/expo/actions/workflows/pr-labeler.yml) 🤖*
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
- name: 💬 Update comment with fingerprint
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff != '[]' && steps.old_comment.outputs.comment-id != '' }}
uses: actions/github-script@v6
with:
script: |
const diff = JSON.stringify(${{ steps.fingerprint.outputs.fingerprint-diff}}, null, 2);
const body = `<!-- pr-labeler comment -->
The Pull Request introduced fingerprint changes against the base commit: ${{ steps.fingerprint.outputs.previous-git-commit }}
<details><summary>Fingerprint diff</summary>
\`\`\`json
${diff}
\`\`\`
</details>
---
*Generated by [PR labeler](https://github.com/expo/expo/actions/workflows/pr-labeler.yml) 🤖*
`;
github.rest.issues.updateComment({
issue_number: context.issue.number,
comment_id: '${{ steps.old_comment.outputs.comment-id }}',
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
- name: 💬 Delete comment with fingerprint
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff == '[]' && steps.old_comment.outputs.comment-id != '' }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.deleteComment({
issue_number: context.issue.number,
comment_id: '${{ steps.old_comment.outputs.comment-id }}',
owner: context.repo.owner,
repo: context.repo.repo,
});
38 changes: 38 additions & 0 deletions __tests__/lib/strings/url-helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
linkRequiresWarning,
isPossiblyAUrl,
splitApexDomain,
isTrustedUrl,
} from '../../../src/lib/strings/url-helpers'

describe('linkRequiresWarning', () => {
Expand Down Expand Up @@ -74,6 +75,10 @@ describe('linkRequiresWarning', () => {
// bad uri inputs, default to true
['', '', true],
['example.com', 'example.com', true],
['/profile', 'Username', false],
['#', 'Show More', false],
['https://docs.bsky.app', 'https://docs.bsky.app', false],
['https://bsky.app/compose/intent?text=test', 'Compose a post', false],
]

it.each(cases)(
Expand Down Expand Up @@ -139,3 +144,36 @@ describe('splitApexDomain', () => {
},
)
})

describe('isTrustedUrl', () => {
const cases = [
['#', true],
['#profile', true],
['/', true],
['/profile', true],
['/profile/', true],
['/profile/bob.test', true],
['https://bsky.app', true],
['https://bsky.app/', true],
['https://bsky.app/profile/bob.test', true],
['https://www.bsky.app', true],
['https://www.bsky.app/', true],
['https://docs.bsky.app', true],
['https://bsky.social', true],
['https://bsky.social/blog', true],
['https://blueskyweb.xyz', true],
['https://blueskyweb.zendesk.com', true],
['http://bsky.app', true],
['http://bsky.social', true],
['http://blueskyweb.xyz', true],
['http://blueskyweb.zendesk.com', true],
['https://google.com', false],
['https://docs.google.com', false],
['https://google.com/#', false],
]

it.each(cases)('given input uri %p, returns %p', (str, expected) => {
const output = isTrustedUrl(str)
expect(output).toEqual(expected)
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/bars3_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/camera_filled_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/camera_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/chevronBottom_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/chevronTop_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/circleBanSign_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/flag_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/group3_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/heart2_filled_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/heart2_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/peopleRemove2_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/personCheck_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/personX_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/person_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/settingsGear2_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/shield_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9a3b50e

Please sign in to comment.