Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3p moderation services [WIP] #2550

Merged
merged 245 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
8182047
Add modservice screen and profile-header-card
pfrazee Jan 12, 2024
c0771de
Drop the guidelines for now
pfrazee Jan 17, 2024
981fc67
Remove ununsed constants
pfrazee Jan 18, 2024
dd56bee
Add label & label group descriptions
pfrazee Feb 7, 2024
5998b34
Not found state
estrattonbailey Feb 7, 2024
af5b545
Reorg, add icon
estrattonbailey Feb 7, 2024
8e1575f
Subheader
estrattonbailey Feb 7, 2024
9a57155
Header
estrattonbailey Feb 8, 2024
97bfa40
Complete header
estrattonbailey Feb 8, 2024
e006105
Clean up
estrattonbailey Feb 8, 2024
fabf680
Add all groups
estrattonbailey Feb 8, 2024
f4ce9e2
Fix scroll view
estrattonbailey Feb 8, 2024
5bd64fb
Dialogs side quest
estrattonbailey Feb 8, 2024
270476a
Remove log
estrattonbailey Feb 8, 2024
15d0f2e
Add (WIP) debug mod page
pfrazee Feb 8, 2024
4edbcd2
Dialog solution
estrattonbailey Feb 8, 2024
fe20b4d
Add note
estrattonbailey Feb 8, 2024
667729f
Clean up and reorganize localized moderation strings
pfrazee Feb 9, 2024
97572fd
Memoize
estrattonbailey Feb 8, 2024
b6552e9
Add example
estrattonbailey Feb 8, 2024
f71cccd
Add first ReportDialog screen
estrattonbailey Feb 8, 2024
e45cc6f
Report dialog step 2
estrattonbailey Feb 9, 2024
9b5f80b
Submit
estrattonbailey Feb 9, 2024
937b66e
Integrate updates
estrattonbailey Feb 9, 2024
9075c50
Merge remote-tracking branch 'origin/main' into 3p-moderators
estrattonbailey Feb 12, 2024
a289b61
Move moderation screen
estrattonbailey Feb 12, 2024
6558245
Migrate buttons
estrattonbailey Feb 12, 2024
53da8d7
Migrate everything
estrattonbailey Feb 12, 2024
95707a1
Rough sketch
estrattonbailey Feb 13, 2024
4e9eed5
Fix types
pfrazee Feb 13, 2024
06ede19
Update atoms values
estrattonbailey Feb 13, 2024
6f5058d
Abstract ModerationServiceCard
estrattonbailey Feb 13, 2024
02bbc5e
Hook up data to settings page
estrattonbailey Feb 13, 2024
9f02851
Handle subscription
estrattonbailey Feb 13, 2024
78acf4c
Rough enablement
estrattonbailey Feb 13, 2024
da735f4
Rough enablement
estrattonbailey Feb 13, 2024
46076c4
Some validation, fixes
estrattonbailey Feb 14, 2024
cc635ae
More work on the mod debug screen
pfrazee Feb 14, 2024
7313e70
Hook up data
estrattonbailey Feb 15, 2024
5587fe7
Update invalidation
estrattonbailey Feb 15, 2024
46d9535
Hook up data to ReportDialog
estrattonbailey Feb 15, 2024
332c990
Fix native error
estrattonbailey Feb 15, 2024
b009a34
Refactor/rewrite the entire moderation-application system
pfrazee Feb 15, 2024
4d8b4cf
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Feb 15, 2024
16db93d
Fix toggles
estrattonbailey Feb 15, 2024
b52beef
Add copyright and other option to report
estrattonbailey Feb 15, 2024
b73f971
Handle reports on profile vs content
estrattonbailey Feb 15, 2024
f255d7a
Little cleanup
estrattonbailey Feb 15, 2024
e72113e
Get post hiding back in gear
pfrazee Feb 15, 2024
1b33b88
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Feb 15, 2024
6e4ae28
Better loading flow on Mod screen
estrattonbailey Feb 15, 2024
90662d6
Clean up Mod screen
estrattonbailey Feb 15, 2024
91bc703
Clean up ProfileMod screen
estrattonbailey Feb 15, 2024
ef1a5ca
Handle muting correctly
pfrazee Feb 15, 2024
6d9e1f4
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Feb 15, 2024
c5d31cd
Update enablement on ProfileMod screen
estrattonbailey Feb 15, 2024
8870c5a
Improve Moderation screen and dialog
estrattonbailey Feb 15, 2024
ddef1d4
Styling, handle disabled labelers
estrattonbailey Feb 15, 2024
b8d62a8
Rework list of labels on own content
pfrazee Feb 16, 2024
4dd2fd0
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Feb 16, 2024
283bb44
Use moderateNotification()
pfrazee Feb 16, 2024
700693b
ReportDialog updates
estrattonbailey Feb 16, 2024
014b622
Fix button overflow
estrattonbailey Feb 16, 2024
abaf6e6
Simplify the ProfileModerationService ui
pfrazee Feb 16, 2024
bfe7c2f
Mod screen design
estrattonbailey Feb 16, 2024
58af8e0
Move moderation card from the profile header to a tab
pfrazee Feb 16, 2024
b6bce41
Small tweaks to the moderation screen
pfrazee Feb 16, 2024
e28e21f
Enable toggle on mod page
estrattonbailey Feb 16, 2024
7d9890d
Add notifs to debugmod and dont filter notifs from followed users
pfrazee Feb 20, 2024
67d0dde
Add moderator-service profile view
pfrazee Feb 21, 2024
acd9532
Wire up more of the modservice data to profiles
pfrazee Feb 21, 2024
047df59
A bunch of speculative non-working UI
pfrazee Feb 23, 2024
e3a4d80
Cleanup: delete old code
pfrazee Feb 23, 2024
dbd42ae
Merge remote-tracking branch 'origin/main' into 3p-moderators
estrattonbailey Feb 26, 2024
67fea6d
Update ModerationDetailsDialog
estrattonbailey Feb 26, 2024
304b6f4
Update ReportDialog
estrattonbailey Feb 27, 2024
0dc1cdf
Update LabelsOnMe dialog
estrattonbailey Feb 27, 2024
763fd5b
Handle ReportDialog load better
estrattonbailey Feb 27, 2024
6b9e376
Rename LabelsOnMeDialog, fix close
estrattonbailey Feb 27, 2024
697b262
Experiment to put labeling under a tab of a normal profile
pfrazee Feb 27, 2024
0586342
Moderator variation of profile
pfrazee Feb 28, 2024
ad135fa
Remove dead code and start moving toward latest modsdk
pfrazee Mar 1, 2024
775a11f
Remove a bunch of now-dead label strings
pfrazee Mar 1, 2024
984fe48
Update ModDebug to be a bit more intuitive and support custom labels
pfrazee Mar 2, 2024
bde59a6
Minor ui tweaks
pfrazee Mar 2, 2024
d1ffe94
Improve consistency of display name blurring
pfrazee Mar 2, 2024
8cda28e
Fix profile-card warning rendering
pfrazee Mar 2, 2024
aa2f94e
More debugmod UI tuning
pfrazee Mar 2, 2024
f30f31f
Update to use new labeler semantics
pfrazee Mar 4, 2024
473ca0d
Delete some dead code and do some refactoring
pfrazee Mar 4, 2024
4d0dc74
Update profile to pull from labeler definition
pfrazee Mar 4, 2024
f993070
Implement new label config controls (wip)
pfrazee Mar 5, 2024
b26e280
Tweak ui
pfrazee Mar 5, 2024
19c0ae8
Implement preference controls on labelers
pfrazee Mar 5, 2024
a4ad364
Rework label pref ui
pfrazee Mar 5, 2024
14a99cf
Get moderation screen working
pfrazee Mar 5, 2024
e794e84
Add asyncstorage query persistence
pfrazee Mar 5, 2024
a84e264
Implement label handling
pfrazee Mar 6, 2024
2a7af0b
Small cleanup
pfrazee Mar 6, 2024
a610ce8
Implement Likes dialog
pfrazee Mar 6, 2024
019cc9d
Fix: remove text outside of text element
pfrazee Mar 6, 2024
5100c6b
Cleanup
pfrazee Mar 6, 2024
26a338f
Fix likes dialog on mobile
pfrazee Mar 6, 2024
a1fe034
Implement the label appeal flow
pfrazee Mar 6, 2024
c5872f6
Get report flow working again with temporarily fixed report options
pfrazee Mar 6, 2024
aa70d0e
Update onboarding
pfrazee Mar 6, 2024
38b2174
Enforce limit of ten labeler subscriptions
pfrazee Mar 6, 2024
a2db4d6
Fix type errors
estrattonbailey Mar 7, 2024
7d80e5d
Fix lint errors
estrattonbailey Mar 7, 2024
2826483
Improve types of RQ
estrattonbailey Mar 7, 2024
b6bf57f
Some work on Likes dialog, needs discussion
estrattonbailey Mar 7, 2024
94312ac
Bit of ReportDialog cleanup
estrattonbailey Mar 7, 2024
e21b72e
Replace non-single-path SVG
estrattonbailey Mar 7, 2024
b951bac
Update nudity descriptions
pfrazee Mar 8, 2024
59d5c8e
Update to use new sdk updates
pfrazee Mar 8, 2024
42a6b80
Add adult-content-enabled behavior to label config
pfrazee Mar 8, 2024
249eb46
Use the default setting of custom labels
pfrazee Mar 8, 2024
b37c3ad
Handle global moderation label prefs with the global settings
pfrazee Mar 8, 2024
05f3be0
Merge branch 'main' into 3p-moderators
pfrazee Mar 8, 2024
6ac4b6b
Fix missing postAuthor
pfrazee Mar 8, 2024
db14378
Fix empty moderation page
estrattonbailey Mar 8, 2024
cb6674a
Add mutewords control back to Mod screen
estrattonbailey Mar 8, 2024
c94999e
Tweak adult setting styles
estrattonbailey Mar 8, 2024
7a7c234
Remove deprecated global labels
estrattonbailey Mar 8, 2024
e88eaf2
Handle underage users on mod screen
estrattonbailey Mar 8, 2024
0b621d4
Adjust font sizes
estrattonbailey Mar 8, 2024
040e9bf
Swap in RichText
estrattonbailey Mar 8, 2024
1a9f6fc
Like button improvements
estrattonbailey Mar 8, 2024
ca561de
Tweaks to Labeler profile
estrattonbailey Mar 8, 2024
ed91041
Design tweaks for mod pref dialog
estrattonbailey Mar 9, 2024
944d4c6
Add tertiary button color
pfrazee Mar 9, 2024
2f8573b
Switch moderation UIs to tertiary color
pfrazee Mar 9, 2024
68d4d41
Update mutewords and hiddenposts to use the new sdk
pfrazee Mar 9, 2024
8862c1f
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 9, 2024
185c3d6
Add test-environment mod authority
pfrazee Mar 9, 2024
fb05cff
Switch 'gore' to 'graphic-media'
pfrazee Mar 9, 2024
3030825
Move nudity out of the adult content control
pfrazee Mar 9, 2024
0bd5270
Remove focus styles from buttons - let the browser behavior handle it
pfrazee Mar 9, 2024
e0f93cb
Fixes to the adult content age-gating in moderaiton
pfrazee Mar 9, 2024
86de3d6
Ditch tertiary button color, lighten secondary button
pfrazee Mar 9, 2024
af12451
Fix some colors
pfrazee Mar 9, 2024
ee08469
Remove focused overrides from toggles
estrattonbailey Mar 9, 2024
7a02e9d
Liked by screen
estrattonbailey Mar 10, 2024
c7e20a4
Rework the moderationlabelpref
pfrazee Mar 10, 2024
db57491
Fix optimistic like
estrattonbailey Mar 10, 2024
6f4556d
Cleanup
estrattonbailey Mar 10, 2024
5566f58
Merge remote-tracking branch 'origin/main' into 3p-moderators
estrattonbailey Mar 10, 2024
d21f4d9
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 10, 2024
f0144e7
Change how onboarding handles adult content enabled/disabled
pfrazee Mar 10, 2024
8c4b9ae
Add special handling of the mod authorities
pfrazee Mar 10, 2024
0a1fad8
Tweaks
estrattonbailey Mar 10, 2024
c1b554a
Update the default labeler avatar to a shield
pfrazee Mar 10, 2024
a40ebfa
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 10, 2024
a71ee87
Add route to go server
estrattonbailey Mar 10, 2024
74f1495
Avoid dups due to bad config
pfrazee Mar 10, 2024
816a48e
Fix attrs
pfrazee Mar 10, 2024
6cc61bf
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 10, 2024
a180788
Fix: dont try to detect link/label mismatches on post meta
pfrazee Mar 10, 2024
5ea406b
Correctly show the label behavior when adult content is disabled
pfrazee Mar 10, 2024
5b5c3d8
Readd the local hiddenPosts handling
pfrazee Mar 10, 2024
1d5068d
WIP
estrattonbailey Mar 10, 2024
7edb682
Fix bad merge
estrattonbailey Mar 10, 2024
cb49749
Conten hider design tweaks
estrattonbailey Mar 10, 2024
8b76037
Fix text string breakage
estrattonbailey Mar 10, 2024
efc3e3f
Adjust source text in ContentHider
estrattonbailey Mar 10, 2024
e1c128c
Fix link bug
estrattonbailey Mar 10, 2024
a69699a
Design tweaks to ContentHider and ModDetailsDialog
estrattonbailey Mar 10, 2024
918e1e6
Adjust spacing of inform badges
estrattonbailey Mar 10, 2024
ebd60ce
Adjust spacing of embeds in posts
estrattonbailey Mar 10, 2024
c0ed077
Style tweaks to post/profile alerts
estrattonbailey Mar 10, 2024
60d043e
Labels on me and dialog
estrattonbailey Mar 10, 2024
3f14b62
Remove bad focus styles from post dropdown
estrattonbailey Mar 10, 2024
2d5080d
Better spacing solution
estrattonbailey Mar 10, 2024
3706719
Tune moderation UIs
pfrazee Mar 11, 2024
2e60680
Moderation UI tweaks for mobile
pfrazee Mar 11, 2024
02f9497
Move labelers query on Mod screen
estrattonbailey Mar 11, 2024
cad6626
Update to use new SDK appLabelers semantics
pfrazee Mar 12, 2024
36478a3
Implement report submission
pfrazee Mar 12, 2024
80bdbe6
Replace the report modal entirely with the report dialog
pfrazee Mar 13, 2024
2f54dcc
Merge branch 'main' into 3p-moderators
pfrazee Mar 13, 2024
f9fbe9d
Add @ to mod details dialog handle
estrattonbailey Mar 13, 2024
5040146
Bump SDK package
estrattonbailey Mar 13, 2024
274e7cf
Merge remote-tracking branch 'origin' into 3p-moderators
estrattonbailey Mar 13, 2024
85a0085
Remove silly type
estrattonbailey Mar 13, 2024
14951ab
Add to AWS build CI
estrattonbailey Mar 13, 2024
444dbe9
Fix ToggleButton overflow
estrattonbailey Mar 13, 2024
3679852
Clean up ModServiceCard, rename to LabelingServiceCard
estrattonbailey Mar 13, 2024
6d0ac69
Hackfix to translate gore labels to graphic-media
pfrazee Mar 13, 2024
2cbf77b
Tune content hider sizing on web desktop
pfrazee Mar 13, 2024
65b2b45
Handle self labels
estrattonbailey Mar 13, 2024
2d0a65e
Fix spacing below text-only posts
estrattonbailey Mar 13, 2024
7d8f373
:erge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 13, 2024
1f8acd9
Fix: send appeals to the right labeler
pfrazee Mar 13, 2024
8b7385e
Give mod page links interactive states
estrattonbailey Mar 13, 2024
45fcf14
Fix references
estrattonbailey Mar 13, 2024
1c26471
Remove focus handling
estrattonbailey Mar 13, 2024
ef79401
Remove remnant
estrattonbailey Mar 13, 2024
e8adf03
Remove the like count from the subscribed labeler listing
pfrazee Mar 14, 2024
b35183b
Bump @atproto/[email protected]
pfrazee Mar 14, 2024
4299817
Remove extra @
pfrazee Mar 14, 2024
02c270c
Fix: persist labels to local storage to reduce coverage gaps
pfrazee Mar 14, 2024
aa1dc76
update dipendencies
pfrazee Mar 14, 2024
646c318
revert dipendencies
pfrazee Mar 14, 2024
a94f99a
Add some explainers on how blocking affects labelers
pfrazee Mar 14, 2024
b8162aa
Tweak copy
pfrazee Mar 14, 2024
84f4c42
Fix underline color in header
estrattonbailey Mar 14, 2024
2b0db1f
Fix profile menu
estrattonbailey Mar 14, 2024
dbb34eb
Handle card overflow
estrattonbailey Mar 14, 2024
b6993d9
Remove metrics from header
estrattonbailey Mar 14, 2024
67edca4
Mute 'account' not 'user'
estrattonbailey Mar 14, 2024
4e525cd
Show metrics if self
estrattonbailey Mar 14, 2024
35c4eac
Show the labels tab on logged out view
pfrazee Mar 14, 2024
429a5ab
Merge remote-tracking branch 'origin/main' into 3p-moderators
estrattonbailey Mar 14, 2024
cc47256
Fix bad merge
estrattonbailey Mar 14, 2024
fc7eb58
Use purple theming on labelers
pfrazee Mar 14, 2024
d410aee
Merge branch '3p-moderators' of github.com:bluesky-social/social-app …
pfrazee Mar 14, 2024
c5d5261
Tighten space on LabelerCard
estrattonbailey Mar 14, 2024
7f178ff
Set staleTime to 6hrs for labeler details
estrattonbailey Mar 14, 2024
6a7f904
Memoize the memoizers
estrattonbailey Mar 14, 2024
8e12918
Drop staleTime to 60s
estrattonbailey Mar 14, 2024
7c675b4
Move label defs into a context to reduce recomputes
pfrazee Mar 15, 2024
3e12132
Submit view tweaks
estrattonbailey Mar 15, 2024
b4bb838
Move labeler fetch below auth
estrattonbailey Mar 15, 2024
56acbb2
Mitigation: hardcode the bluesky moderation labeler name
pfrazee Mar 15, 2024
9d1f3c3
Bump sdk
estrattonbailey Mar 16, 2024
330eaf3
Add missing translated string
estrattonbailey Mar 16, 2024
98c2a6a
Add missing translated string
estrattonbailey Mar 16, 2024
3c80f47
Hailey's fix for incorrect profile tabs
estrattonbailey Mar 18, 2024
026e6d1
Feedback
estrattonbailey Mar 18, 2024
3714ddb
Fix borders, add bottom space
estrattonbailey Mar 18, 2024
012d186
Hailey's fix pt 2
estrattonbailey Mar 18, 2024
3cd79c5
Fix post tabs
estrattonbailey Mar 18, 2024
b600162
Integrate feedback pt 1
estrattonbailey Mar 18, 2024
1c73a52
Integrate feedback pt 2
estrattonbailey Mar 18, 2024
fd42a41
Integrate feedback pt 3
estrattonbailey Mar 18, 2024
d8a3231
Integrate feedback pt 4
estrattonbailey Mar 18, 2024
8cf4200
Integrate feedback pt 5
estrattonbailey Mar 18, 2024
1ac62b2
Integrate feedback pt 6
estrattonbailey Mar 18, 2024
fc62f7a
Integrate feedback pt 7
estrattonbailey Mar 18, 2024
8ee0fb0
Integrate feedback pt 8
estrattonbailey Mar 18, 2024
970a1b0
Merge remote-tracking branch 'origin/main' into 3p-moderators
estrattonbailey Mar 18, 2024
75638a9
Format
estrattonbailey Mar 18, 2024
06ec516
Integrate new bday modal
estrattonbailey Mar 18, 2024
b02dae7
Use public agent for getServices
estrattonbailey Mar 18, 2024
6de4c7a
Update casing
pfrazee Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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/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.
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/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
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions bskyweb/cmd/bskyweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func serve(cctx *cli.Context) error {
e.GET("/settings/threads", server.WebGeneric)
e.GET("/settings/external-embeds", server.WebGeneric)
e.GET("/sys/debug", server.WebGeneric)
e.GET("/sys/debug-mod", server.WebGeneric)
e.GET("/sys/log", server.WebGeneric)
e.GET("/support", server.WebGeneric)
e.GET("/support/privacy", server.WebGeneric)
Expand All @@ -203,6 +204,7 @@ func serve(cctx *cli.Context) error {
e.GET("/profile/:handleOrDID/lists/:rkey", server.WebGeneric)
e.GET("/profile/:handleOrDID/feed/:rkey", server.WebGeneric)
e.GET("/profile/:handleOrDID/feed/:rkey/liked-by", server.WebGeneric)
e.GET("/profile/:handleOrDID/labeler/liked-by", server.WebGeneric)

// profile RSS feed (DID not handle)
e.GET("/profile/:ident/rss", server.WebProfileRSS)
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"update-extensions": "scripts/updateExtensions.sh"
},
"dependencies": {
"@atproto/api": "^0.10.5",
"@atproto/api": "^0.11.2",
"@bam.tech/react-native-image-resizer": "^3.0.4",
"@braintree/sanitize-url": "^6.0.2",
"@emoji-mart/react": "^1.1.1",
Expand Down Expand Up @@ -76,7 +76,9 @@
"@segment/sovran-react-native": "^0.4.5",
"@sentry/react-native": "5.5.0",
"@tamagui/focus-scope": "^1.84.1",
"@tanstack/query-async-storage-persister": "^5.25.0",
"@tanstack/react-query": "^5.8.1",
"@tanstack/react-query-persist-client": "^5.25.0",
"@tiptap/core": "^2.0.0-beta.220",
"@tiptap/extension-document": "^2.0.0-beta.220",
"@tiptap/extension-hard-break": "^2.0.3",
Expand Down
47 changes: 28 additions & 19 deletions src/App.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, {useState, useEffect} from 'react'
import {RootSiblingParent} from 'react-native-root-siblings'
import * as SplashScreen from 'expo-splash-screen'
import {GestureHandlerRootView} from 'react-native-gesture-handler'
import {QueryClientProvider} from '@tanstack/react-query'
import {PersistQueryClientProvider} from '@tanstack/react-query-persist-client'
import {
SafeAreaProvider,
initialWindowMetrics,
Expand All @@ -22,7 +22,11 @@ import {s} from 'lib/styles'
import {Shell} from 'view/shell'
import * as notifications from 'lib/notifications/notifications'
import * as Toast from 'view/com/util/Toast'
import {queryClient} from 'lib/react-query'
import {
queryClient,
asyncStoragePersister,
dehydrateOptions,
} from 'lib/react-query'
import {TestCtrls} from 'view/com/testing/TestCtrls'
import {Provider as ShellStateProvider} from 'state/shell'
import {Provider as ModalStateProvider} from 'state/modals'
Expand All @@ -33,6 +37,7 @@ import {Provider as InvitesStateProvider} from 'state/invites'
import {Provider as PrefsStateProvider} from 'state/preferences'
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
import {Provider as LabelDefsProvider} from '#/state/preferences/label-defs'
import I18nProvider from './locale/i18nProvider'
import {
Provider as SessionProvider,
Expand Down Expand Up @@ -79,21 +84,23 @@ function InnerApp() {
// Resets the entire tree below when it changes:
key={currentAccount?.did}>
<StatsigProvider>
<LoggedOutViewProvider>
<SelectedFeedProvider>
<UnreadNotifsProvider>
<ThemeProvider theme={theme}>
{/* All components should be within this provider */}
<RootSiblingParent>
<GestureHandlerRootView style={s.h100pct}>
<TestCtrls />
<Shell />
</GestureHandlerRootView>
</RootSiblingParent>
</ThemeProvider>
</UnreadNotifsProvider>
</SelectedFeedProvider>
</LoggedOutViewProvider>
<LabelDefsProvider>
<LoggedOutViewProvider>
<SelectedFeedProvider>
<UnreadNotifsProvider>
<ThemeProvider theme={theme}>
{/* All components should be within this provider */}
<RootSiblingParent>
<GestureHandlerRootView style={s.h100pct}>
<TestCtrls />
<Shell />
</GestureHandlerRootView>
</RootSiblingParent>
</ThemeProvider>
</UnreadNotifsProvider>
</SelectedFeedProvider>
</LoggedOutViewProvider>
</LabelDefsProvider>
</StatsigProvider>
</React.Fragment>
</Splash>
Expand All @@ -118,7 +125,9 @@ function App() {
* that is set up in the InnerApp component above.
*/
return (
<QueryClientProvider client={queryClient}>
<PersistQueryClientProvider
client={queryClient}
persistOptions={{persister: asyncStoragePersister, dehydrateOptions}}>
<SessionProvider>
<ShellStateProvider>
<PrefsStateProvider>
Expand All @@ -140,7 +149,7 @@ function App() {
</PrefsStateProvider>
</ShellStateProvider>
</SessionProvider>
</QueryClientProvider>
</PersistQueryClientProvider>
)
}

Expand Down
47 changes: 28 additions & 19 deletions src/App.web.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'lib/sentry' // must be near top

import React, {useState, useEffect} from 'react'
import {QueryClientProvider} from '@tanstack/react-query'
import {PersistQueryClientProvider} from '@tanstack/react-query-persist-client'
import {SafeAreaProvider} from 'react-native-safe-area-context'
import {RootSiblingParent} from 'react-native-root-siblings'

Expand All @@ -13,7 +13,11 @@ import {init as initPersistedState} from '#/state/persisted'
import {Shell} from 'view/shell/index'
import {ToastContainer} from 'view/com/util/Toast.web'
import {ThemeProvider} from 'lib/ThemeContext'
import {queryClient} from 'lib/react-query'
import {
queryClient,
asyncStoragePersister,
dehydrateOptions,
} from 'lib/react-query'
import {Provider as ShellStateProvider} from 'state/shell'
import {Provider as ModalStateProvider} from 'state/modals'
import {Provider as DialogStateProvider} from 'state/dialogs'
Expand All @@ -23,6 +27,7 @@ import {Provider as InvitesStateProvider} from 'state/invites'
import {Provider as PrefsStateProvider} from 'state/preferences'
import {Provider as LoggedOutViewProvider} from 'state/shell/logged-out'
import {Provider as SelectedFeedProvider} from 'state/shell/selected-feed'
import {Provider as LabelDefsProvider} from '#/state/preferences/label-defs'
import I18nProvider from './locale/i18nProvider'
import {
Provider as SessionProvider,
Expand Down Expand Up @@ -56,21 +61,23 @@ function InnerApp() {
// Resets the entire tree below when it changes:
key={currentAccount?.did}>
<StatsigProvider>
<LoggedOutViewProvider>
<SelectedFeedProvider>
<UnreadNotifsProvider>
<ThemeProvider theme={theme}>
{/* All components should be within this provider */}
<RootSiblingParent>
<SafeAreaProvider>
<Shell />
</SafeAreaProvider>
</RootSiblingParent>
<ToastContainer />
</ThemeProvider>
</UnreadNotifsProvider>
</SelectedFeedProvider>
</LoggedOutViewProvider>
<LabelDefsProvider>
<LoggedOutViewProvider>
<SelectedFeedProvider>
<UnreadNotifsProvider>
<ThemeProvider theme={theme}>
{/* All components should be within this provider */}
<RootSiblingParent>
<SafeAreaProvider>
<Shell />
</SafeAreaProvider>
</RootSiblingParent>
<ToastContainer />
</ThemeProvider>
</UnreadNotifsProvider>
</SelectedFeedProvider>
</LoggedOutViewProvider>
</LabelDefsProvider>
</StatsigProvider>
</React.Fragment>
</Alf>
Expand All @@ -93,7 +100,9 @@ function App() {
* that is set up in the InnerApp component above.
*/
return (
<QueryClientProvider client={queryClient}>
<PersistQueryClientProvider
client={queryClient}
persistOptions={{persister: asyncStoragePersister, dehydrateOptions}}>
<SessionProvider>
<ShellStateProvider>
<PrefsStateProvider>
Expand All @@ -115,7 +124,7 @@ function App() {
</PrefsStateProvider>
</ShellStateProvider>
</SessionProvider>
</QueryClientProvider>
</PersistQueryClientProvider>
)
}

Expand Down
14 changes: 13 additions & 1 deletion src/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {SearchScreen} from './view/screens/Search'
import {FeedsScreen} from './view/screens/Feeds'
import {NotificationsScreen} from './view/screens/Notifications'
import {ListsScreen} from './view/screens/Lists'
import {ModerationScreen} from './view/screens/Moderation'
import {ModerationScreen} from '#/screens/Moderation'
import {ModerationModlistsScreen} from './view/screens/ModerationModlists'
import {NotFoundScreen} from './view/screens/NotFound'
import {SettingsScreen} from './view/screens/Settings'
Expand All @@ -61,6 +61,7 @@ import {PostThreadScreen} from './view/screens/PostThread'
import {PostLikedByScreen} from './view/screens/PostLikedBy'
import {PostRepostedByScreen} from './view/screens/PostRepostedBy'
import {Storybook} from './view/screens/Storybook'
import {DebugModScreen} from './view/screens/DebugMod'
import {LogScreen} from './view/screens/Log'
import {SupportScreen} from './view/screens/Support'
import {PrivacyPolicyScreen} from './view/screens/PrivacyPolicy'
Expand All @@ -78,6 +79,7 @@ import {createNativeStackNavigatorWithAuth} from './view/shell/createNativeStack
import {msg} from '@lingui/macro'
import {i18n, MessageDescriptor} from '@lingui/core'
import HashtagScreen from '#/screens/Hashtag'
import {ProfileLabelerLikedByScreen} from '#/screens/Profile/ProfileLabelerLikedBy'
import {logEvent, attachRouteToLogEvents} from './lib/statsig/statsig'

const navigationRef = createNavigationContainerRef<AllNavigatorParams>()
Expand Down Expand Up @@ -198,11 +200,21 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
getComponent={() => ProfileFeedLikedByScreen}
options={{title: title(msg`Liked by`)}}
/>
<Stack.Screen
name="ProfileLabelerLikedBy"
getComponent={() => ProfileLabelerLikedByScreen}
options={{title: title(msg`Liked by`)}}
/>
<Stack.Screen
name="Debug"
getComponent={() => Storybook}
options={{title: title(msg`Storybook`), requireAuth: true}}
/>
<Stack.Screen
name="DebugMod"
getComponent={() => DebugModScreen}
options={{title: title(msg`Moderation states`), requireAuth: true}}
/>
<Stack.Screen
name="Log"
getComponent={() => LogScreen}
Expand Down
10 changes: 10 additions & 0 deletions src/alf/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export const atoms = {
h_full: {
height: '100%',
},
h_full_vh: web({
height: '100vh',
}),

/*
* Border radius
Expand Down Expand Up @@ -243,6 +246,9 @@ export const atoms = {
font_normal: {
fontWeight: tokens.fontWeight.normal,
},
font_semibold: {
fontWeight: '500',
},
font_bold: {
fontWeight: tokens.fontWeight.semibold,
},
Expand Down Expand Up @@ -528,6 +534,10 @@ export const atoms = {
/*
* Margin
*/
mx_auto: {
marginLeft: 'auto',
marginRight: 'auto',
},
m_2xs: {
margin: tokens.space._2xs,
},
Expand Down
3 changes: 3 additions & 0 deletions src/alf/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const dimScale = generateScale(12, 100)
export const color = {
trueBlack: '#000000',

temp_purple: 'rgb(105 0 255)',
temp_purple_dark: 'rgb(83 0 202)',

gray_0: `hsl(${BLUE_HUE}, 20%, ${scale[14]}%)`,
gray_25: `hsl(${BLUE_HUE}, 20%, ${scale[13]}%)`,
gray_50: `hsl(${BLUE_HUE}, 20%, ${scale[12]}%)`,
Expand Down
Loading
Loading