Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion app/assets/images/idv/capture-tips-clean.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/images/idv/capture-tips-lighting.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/images/idv/capture-tips-surface.svg

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import HybridDocCaptureWarning from './hybrid-doc-capture-warning';
import DocumentSideAcuantCapture from './document-side-acuant-capture';
import DeviceContext from '../context/device';
import UploadContext from '../context/upload';
import CaptureTroubleshooting from './capture-troubleshooting';
import DocumentCaptureTroubleshootingOptions from './document-capture-troubleshooting-options';
import TipList from './tip-list';

Expand Down Expand Up @@ -47,7 +46,7 @@ function DocumentsStep({
const { flowPath } = useContext(UploadContext);

return (
<CaptureTroubleshooting>
<>
{flowPath === 'hybrid' && <HybridDocCaptureWarning className="margin-bottom-4" />}
<PageHeading>{t('doc_auth.headings.document_capture')}</PageHeading>
<p>{t('doc_auth.info.document_capture_intro_acknowledgment')}</p>
Expand All @@ -73,7 +72,7 @@ function DocumentsStep({
{isLastStep ? <FormStepsButton.Submit /> : <FormStepsButton.Continue />}
<DocumentCaptureTroubleshootingOptions />
<Cancel />
</CaptureTroubleshooting>
</>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ interface FailedCaptureAttemptsContextInterface {
*/
onFailedSubmissionAttempt: () => void;

/**
* Number of failed attempts before showing tips
*/
maxFailedAttemptsBeforeTips: number;
/**
* The maximum number of failed Acuant capture attempts
* before use of the native camera option is triggered
Expand Down Expand Up @@ -78,7 +74,6 @@ const FailedCaptureAttemptsContext = createContext<FailedCaptureAttemptsContextI
onResetFailedCaptureAttempts: () => {},
maxCaptureAttemptsBeforeNativeCamera: Infinity,
maxSubmissionAttemptsBeforeNativeCamera: Infinity,
maxFailedAttemptsBeforeTips: Infinity,
lastAttemptMetadata: DEFAULT_LAST_ATTEMPT_METADATA,
forceNativeCamera: false,
});
Expand All @@ -87,14 +82,12 @@ FailedCaptureAttemptsContext.displayName = 'FailedCaptureAttemptsContext';

interface FailedCaptureAttemptsContextProviderProps {
children: ReactNode;
maxFailedAttemptsBeforeTips: number;
maxCaptureAttemptsBeforeNativeCamera: number;
maxSubmissionAttemptsBeforeNativeCamera: number;
}

function FailedCaptureAttemptsContextProvider({
children,
maxFailedAttemptsBeforeTips,
maxCaptureAttemptsBeforeNativeCamera,
maxSubmissionAttemptsBeforeNativeCamera,
}: FailedCaptureAttemptsContextProviderProps) {
Expand Down Expand Up @@ -128,7 +121,6 @@ function FailedCaptureAttemptsContextProvider({
onFailedSubmissionAttempt,
maxCaptureAttemptsBeforeNativeCamera,
maxSubmissionAttemptsBeforeNativeCamera,
maxFailedAttemptsBeforeTips,
lastAttemptMetadata,
forceNativeCamera,
}}
Expand Down
3 changes: 0 additions & 3 deletions app/javascript/packs/document-capture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import type { FlowPath, DeviceContextValue } from '@18f/identity-document-captur
*/
interface AppRootData {
helpCenterRedirectUrl: string;
maxCaptureAttemptsBeforeTips: string;
maxAttemptsBeforeNativeCamera: string;
acuantSdkUpgradeABTestingEnabled: string;
useAlternateSdk: string;
Expand Down Expand Up @@ -72,7 +71,6 @@ const formData: Record<string, any> = {

const {
helpCenterRedirectUrl: helpCenterRedirectURL,
maxCaptureAttemptsBeforeTips,
maxCaptureAttemptsBeforeNativeCamera,
maxSubmissionAttemptsBeforeNativeCamera,
acuantVersion,
Expand Down Expand Up @@ -142,7 +140,6 @@ const App = composeComponents(
[
FailedCaptureAttemptsContextProvider,
{
maxFailedAttemptsBeforeTips: Number(maxCaptureAttemptsBeforeTips),
maxCaptureAttemptsBeforeNativeCamera: Number(maxCaptureAttemptsBeforeNativeCamera),
maxSubmissionAttemptsBeforeNativeCamera: Number(maxSubmissionAttemptsBeforeNativeCamera),
},
Expand Down
1 change: 0 additions & 1 deletion app/views/idv/shared/_document_capture.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
glare_threshold: IdentityConfig.store.doc_auth_client_glare_threshold,
sharpness_threshold: IdentityConfig.store.doc_auth_client_sharpness_threshold,
status_poll_interval_ms: IdentityConfig.store.poll_rate_for_verify_in_seconds * 1000,
max_capture_attempts_before_tips: IdentityConfig.store.doc_auth_max_capture_attempts_before_tips,
max_capture_attempts_before_native_camera: IdentityConfig.store.doc_auth_max_capture_attempts_before_native_camera,
max_submission_attempts_before_native_camera: IdentityConfig.store.doc_auth_max_submission_attempts_before_native_camera,
acuant_sdk_upgrade_a_b_testing_enabled: acuant_sdk_upgrade_a_b_testing_enabled,
Expand Down
Loading