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

[WIP] Feat/38771/tasks for guided setup #39721

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
import type {Route} from '@src/ROUTES';
import ROUTES from '@src/ROUTES';
import INPUT_IDS from '@src/types/form/NewRoomForm';
import type {PersonalDetails, PersonalDetailsList, PolicyReportField, RecentlyUsedReportFields, ReportActionReactions, ReportMetadata, ReportUserIsTyping} from '@src/types/onyx';

Check failure on line 73 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

'@src/types/onyx' imported multiple times
import type * as OnyxTypes from '@src/types/onyx';

Check failure on line 74 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

'@src/types/onyx' imported multiple times
import type {Decision, OriginalMessageIOU} from '@src/types/onyx/OriginalMessage';
import type {NotificationPreference, RoomVisibility, WriteCapability} from '@src/types/onyx/Report';
import type Report from '@src/types/onyx/Report';
Expand Down Expand Up @@ -2929,7 +2929,7 @@
];
}, []);

const optimisticData: OnyxUpdate[] = [

Check failure on line 2932 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

'optimisticData' is assigned a value but never used
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${targetChatReportID}`,
Expand All @@ -2945,8 +2945,9 @@
key: ONYXKEYS.NVP_INTRO_SELECTED,
value: {choice: engagementChoice},
},
...tasksForOptimisticData,
];
const successData: OnyxUpdate[] = [

Check failure on line 2950 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

'successData' is assigned a value but never used
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`,
Expand All @@ -2958,7 +2959,7 @@
engagementChoice,
firstName,
lastName,
data: JSON.stringify([{type: 'message', ...textMessage}, {type: 'video', ...data.video, ...videoMessage}, ...tasksForParameters]),
guidedSetupData: JSON.stringify([{type: 'message', ...textMessage}, {type: 'video', ...data.video, ...videoMessage}, ...tasksForParameters]),
};

API.write(WRITE_COMMANDS.COMPLETE_GUIDED_SETUP, parameters, {});
Expand Down
Loading