[Drafts] Storage fixes (#9790)
* delete media from existsCache when deleting * revoke media URLs * skip revoking objecturls until the composer is completely closed * [Drafts] Metrics (#9794) * metrics for drafts * Nit: format * nit: use new util for clarity * nit: use new util for clarity --------- Co-authored-by: Eric Bailey <git@esb.lol> --------- Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
@@ -145,7 +145,7 @@ export function FeedsScreen(_props: Props) {
|
||||
[search],
|
||||
)
|
||||
const onPressCompose = React.useCallback(() => {
|
||||
openComposer({})
|
||||
openComposer({logContext: 'Fab'})
|
||||
}, [openComposer])
|
||||
const onChangeQuery = React.useCallback(
|
||||
(text: string) => {
|
||||
|
||||
@@ -30,8 +30,7 @@ import {FAB} from '#/view/com/util/fab/FAB'
|
||||
import {type ListMethods} from '#/view/com/util/List'
|
||||
import {LoadLatestBtn} from '#/view/com/util/load-latest/LoadLatestBtn'
|
||||
import {MainScrollProvider} from '#/view/com/util/MainScrollProvider'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
import {web} from '#/alf'
|
||||
import {atoms as a, useTheme, web} from '#/alf'
|
||||
import {Admonition} from '#/components/Admonition'
|
||||
import {ButtonIcon} from '#/components/Button'
|
||||
import {SettingsGear2_Stroke2_Corner0_Rounded as SettingsIcon} from '#/components/icons/SettingsGear2'
|
||||
@@ -161,7 +160,7 @@ export function NotificationsScreen({}: Props) {
|
||||
</Pager>
|
||||
<FAB
|
||||
testID="composeFAB"
|
||||
onPress={() => openComposer({})}
|
||||
onPress={() => openComposer({logContext: 'Fab'})}
|
||||
icon={<ComposeIcon2 strokeWidth={1.5} size={29} style={s.white} />}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={_(msg`New post`)}
|
||||
|
||||
@@ -332,7 +332,7 @@ function ProfileScreenLoaded({
|
||||
isInvalidHandle(profile.handle)
|
||||
? undefined
|
||||
: profile.handle
|
||||
openComposer({mention})
|
||||
openComposer({mention, logContext: 'ProfileFeed'})
|
||||
}
|
||||
|
||||
const onPageSelected = (i: number) => {
|
||||
@@ -434,7 +434,8 @@ function ProfileScreenLoaded({
|
||||
? {
|
||||
label: _(msg`Write a post`),
|
||||
text: _(msg`Write a post`),
|
||||
onPress: () => openComposer({}),
|
||||
onPress: () =>
|
||||
openComposer({logContext: 'ProfileFeed'}),
|
||||
size: 'small',
|
||||
color: 'primary',
|
||||
}
|
||||
@@ -474,7 +475,8 @@ function ProfileScreenLoaded({
|
||||
? {
|
||||
label: _(msg`Post a photo`),
|
||||
text: _(msg`Post a photo`),
|
||||
onPress: () => openComposer({}),
|
||||
onPress: () =>
|
||||
openComposer({logContext: 'ProfileFeed'}),
|
||||
size: 'small',
|
||||
color: 'primary',
|
||||
}
|
||||
@@ -500,7 +502,8 @@ function ProfileScreenLoaded({
|
||||
? {
|
||||
label: _(msg`Post a video`),
|
||||
text: _(msg`Post a video`),
|
||||
onPress: () => openComposer({}),
|
||||
onPress: () =>
|
||||
openComposer({logContext: 'ProfileFeed'}),
|
||||
size: 'small',
|
||||
color: 'primary',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user