-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: wire cells upload images & videos previews - WPB-15844 #2513
base: develop
Are you sure you want to change the base?
Conversation
0f8aaab
to
903d410
Compare
Test Results 1 files 10 suites 56s ⏱️ For more details on these failures, see this check. Results for commit ebd2bd3. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have the schemes WireDebugAll
and WireCellsAll
, which CI will use to run tests.
I can do that, if you prefer.
] | ||
), | ||
] | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have the upcoming features enabled, like other packages do, see WireFoundation
please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package builds with the 6.0 toolchain, so those are not upcoming features and are already enabled for this package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree:
ExistentialAny
InternalImportsByDefault
FullTypedThrows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we should update WireAuthentication/Package.swift
in a separate PR
for target in package.targets {
if target.isTest {
target.dependencies += [WireTestingPackage]
}
target.swiftSettings = (target.swiftSettings ?? []) + [
// TODO: [WPB-15967] Enable `ExistentialAny` upcoming feature
.enableUpcomingFeature("GlobalConcurrency"),
.enableExperimentalFeature("StrictConcurrency"),
.unsafeFlags(["-enable-bare-slash-regex"]) // For regex literals
]
}
Oh. Yes, please do. But it doesn’t make sense for WireDebug. |
Datadog ReportBranch report: ✅ 0 Failed, 98 Passed, 1 Skipped, 39.86s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I think it would make sense for the snapshots to include the dismiss button
override func tearDown() { | ||
snapshotHelper = nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (non-blocking): Add a snapshot test to show the different duration format variations
...Resources/ReferenceImages/UploadImagePreviewTests/testColorSchemeVariantsEmptyState.dark.png
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments about the setup mostly
...ReferenceImages/UploadImagePreviewTests/testDynamicTypeVariantsEmptyState.accessibility5.png
Outdated
Show resolved
Hide resolved
2536775
to
becf032
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the submodule should be reverted to a1c04f
...Resources/ReferenceImages/UploadVideoPreviewTests/testColorSchemeVariantsEmptyState.dark.png
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
f95930d
to
90d1cd7
Compare
let request = RestLookupRequest() | ||
var request = RestLookupRequest() | ||
let locator = RestNodeLocator(path: path) | ||
request.locators = RestNodeLocators(many: [locator]) | ||
let requestBuilder = NodeServiceAPI.lookupWithRequestBuilder(body: request, apiConfiguration: cellsApiConfig) | ||
|
||
do { | ||
let response: Response<RestNodeCollection> = try await requestBuilder.execute() | ||
return response.body.nodes | ||
return response.body.nodes ?? [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were build errors which I fixed, please verify @El-Fitz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, probably due to the change in the dependency version. They moved from a class to a struct. Thank you.
] | ||
), | ||
] | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made the changes
@@ -15,6 +15,13 @@ | |||
}, | |||
"testTargets" : [ | |||
{ | |||
"skippedTests" : [ | |||
"WireCellsTests", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the tests skipped?
How can we prevent to forget about them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// These tests are intended for locally testing the service, not for CI.
fastlane/framework.rb
Outdated
when "WireCellsAll" | ||
name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when "WireCellsAll" | |
name | |
when "WireCells" | |
"WireCellsAll" | |
when "WireDebug" | |
"WireDebugAll" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
For WireDebug, there are no WireDebug tests, and they wouldn't make sense.
Unless we're going to make snapshots & unit tests for our debug menu?
5b82dee
to
ebd2bd3
Compare
Issue
Implements upload previews for image (WPB-15844) and videos (WPB-15845).
Accessibility labels will be added when available.
Testing
See UI Tests snapshots.
Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: