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

Add Report a Problem functionality #8605

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Add Report a Problem functionality #8605

wants to merge 8 commits into from

Conversation

larkox
Copy link
Contributor

@larkox larkox commented Feb 18, 2025

Summary

Add report a problem functionality. This needs a particular server version to show all the capabilities (see related PR).

Figma file: https://www.figma.com/design/vd5328lXOFcEdLkKT6Mlrg/MM-61217-Report-a-problem-UX?node-id=1-7

More information in the ticket

Ticket Link

Fix: https://mattermost.atlassian.net/browse/MM-61217

Related PR

Server/Web: Coming soon

Release Note

Improve the behavior around reporting a problem

@larkox larkox added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester 2: UX Review Requires review by a UX Designer labels Feb 18, 2025
{filename}
</Text>
<Text style={styles.logSize}>
{`TXT ${size}KB`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -117,12 +117,24 @@ - (NSDictionary *)constantsToExport {
[self getRealFilePath:filePath resolve:resolve reject:reject];
}

RCT_EXPORT_METHOD(getFileSize:(NSString *)filePath
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same applies to iOS

fos.close()
promise?.resolve(zipFile.absolutePath)
} catch (e: Exception) {
promise?.reject("Error creating ZIP file", e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we attempt to delete the tempDir and contents if there is an error?

@@ -52,6 +52,7 @@ export interface Spec extends TurboModule {
removeListeners: (count: number) => void;

getRealFilePath: (filePath: string) => Promise<string>;
getFileSize: (filePath: string) => Promise<number>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a comment here so that is not forgotten when removed

test/setup.ts Outdated
Comment on lines 166 to 167
deleteFile: jest.fn(),
getFileSize: jest.fn().mockResolvedValue(100),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use expo-filesystem

@abhijit-singh abhijit-singh added the Build Apps for PR Build the mobile app for iOS and Android to test label Feb 19, 2025
@larkox
Copy link
Contributor Author

larkox commented Feb 24, 2025

/update-branch

@larkox larkox requested a review from enahum February 24, 2025 15:04
Copy link
Contributor

@enahum enahum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check the dependency version on android and it should be good to go, the other comment is non blocking

@@ -58,7 +58,8 @@ dependencies {
implementation 'androidx.window:window:1.2.0'
implementation 'androidx.window:window-core:1.2.0'
implementation 'androidx.window:window-rxjava3:1.2.0'

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is causing snyk to fail, I think a new version needs to be used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! For some reason I am having trouble logging in into snyk...

<ScrollView
horizontal={true}
contentContainerStyle={styles.logsContainer}
showsHorizontalScrollIndicator={false}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we set alwaysBounceHorizontal to false when loading or when the items are less than x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core commiter 2: UX Review Requires review by a UX Designer 3: QA Review Requires review by a QA tester Build Apps for PR Build the mobile app for iOS and Android to test release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants