### Launch MainActivity Programmatically After Login Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Navigates to MainActivity after successful login, clearing the task stack and finishing the current LoginActivity. ```java Intent intent = new Intent(this, MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish(); // close LoginActivity ``` -------------------------------- ### Home Screen Widget Configuration (res/xml/widget_info.xml) Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Configures the home screen widget for displaying upcoming shifts, setting its minimum dimensions, update period, and initial layout. ```xml ``` -------------------------------- ### AndroidManifest.xml: LoginActivity Configuration Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines LoginActivity as the main launcher and configures it to handle the 'hotschedules://app' deep link scheme for initial authentication. ```xml ``` -------------------------------- ### Navigate to Approval Details Intent Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Java code snippet demonstrating how to create an Intent to navigate to the approval details screen. It passes the fragment type and approval ID as extras. ```java Intent approvalDetail = new Intent(context, FragmentHolderActivity.class); approvalDetail.putExtra("fragment_type", "APPROVAL_DETAIL"); approvalDetail.putExtra("approval_id", approvalId); startActivity(approvalDetail); ``` -------------------------------- ### String Resource for Accepting Offered Shift Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Provides the string resource for the 'Accept' button in the offered shifts feature. This is used in the action button for accepting a shift offer. ```xml Accept ``` -------------------------------- ### Launching Punch Adjustments WebView Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Launches the v2 Punch Adjustments WebView screen using an Intent. This code snippet demonstrates how to initiate the punch adjustment process via the WebView. ```java Intent payIntent = new Intent(context, PunchAdjustmentsWebViewActivity.class); startActivity(payIntent); ``` -------------------------------- ### Approval Action Button String Resources Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt String resources for action buttons within the Approvals Fragment, enabling managers to approve or deny multiple requests efficiently. Includes options for approving/denying pickups and swaps. ```xml Approve All ``` ```xml Deny All ``` ```xml Approve Pickup ``` ```xml Deny Swap ``` ```xml There are no overlapping requests ``` ```xml Total PTO Hrs for Pay Week: ``` -------------------------------- ### Roster Filter and Edit Shift Intents Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Demonstrates launching the RosterFilterActivity and EditRosterShiftActivity with necessary parameters for managing employee shifts. ```java Intent filterIntent = new Intent(context, RosterFilterActivity.class); startActivityForResult(filterIntent, REQUEST_CODE_ROSTER_FILTER); Intent editIntent = new Intent(context, EditRosterShiftActivity.class); editIntent.putExtra("shift_id", selectedShiftId); startActivity(editIntent); ``` -------------------------------- ### Calendar Sync Description String Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt A string resource providing the description for the calendar sync setting, explaining its functionality to the user. ```xml Use calendar sync to have alerts from HotSchedules app appear in your Android calendar ``` -------------------------------- ### Settings Screen Preference Definitions Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the structure and options for the settings screen in res/xml/settings.xml. It includes preferences for support, terms, profile, app preferences, login details, and logout. ```xml ``` -------------------------------- ### Configure Fuego EWA Token Provider Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines a signature-protected ContentProvider in AndroidManifest.xml to securely expose an onboarding token to the Fuego companion app for Early Wage Access (EWA) handoff. Access is restricted to apps signed with the same certificate. ```xml ``` -------------------------------- ### Define Dashboard Summary String Resources Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Declares string resources in fragment_dashboard.xml for displaying various summary statistics on the manager's dashboard, such as pending approvals, unread messages, and overdue tasks. ```xml No pending approvals today %1$d unread entries %1$d unread messages %1$d events this week Lists with <font color=#CC0000>OVERDUE</font> Tasks %1$d OVERDUE! Approvals Daily Log & Staff Journal Messages ``` -------------------------------- ### Key Availability String Resources Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Essential string resources for the Availability Form feature, including titles for editing availability, options for availability status, selecting an approval manager, and confirmation messages for deletion. ```xml Edit Availability ``` ```xml Partially Available %1$s - %2$s ``` ```xml Unavailable All Day ``` ```xml Select Approval Manager ``` ```xml Are you sure you want to delete this availability? ``` ```xml Please enter a value of 7 or less ``` ```xml Schedule Thresholds ``` -------------------------------- ### Digital Logbook String Resources Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Provides key string resources for the Daily Log and Staff Journal features, including action bar titles, error messages, and predefined options for topics and actions. ```xml Daily Log Staff Journal Entries cannot be edited if they are older than 24 hours or if they have been read by another user. Punctuality Performance No Call/No Show Complaints Verbal Warning Written Warning Terminated Pay Raise Recognition ``` -------------------------------- ### String Resources for Auto Trade Feature Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Collection of string resources used for the Auto Trade feature, including titles for creating auto pickup/release, date range labels, buffer selection, and delete confirmation messages. ```xml Create Auto Pickup ``` ```xml Create Auto Release ``` ```xml Earliest trade date: %s ``` ```xml Latest trade date: %s ``` ```xml Select Buffer ``` ```xml Up to last minute ``` ```xml Are you sure you want to delete? This action cannot be undone. ``` -------------------------------- ### Punch Adjustments Activity Declarations Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Declares the native Android (v1) and WebView-based (v2) Punch Adjustments activities, as well as the MyPayActivity, in the AndroidManifest.xml file. ```xml ``` -------------------------------- ### String Resource for Shift Pickup Dialog Message Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the dialog message for picking up a shift, informing the employee that their manager has the option to assign a house shift instead of the selected one. ```xml Your manager has the option to assign you a house shift rather than the shift you selected ``` -------------------------------- ### Declare Offered Shifts Activity Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the OfferedShiftsActivity in the AndroidManifest.xml. This activity allows employees to view and accept shifts posted by colleagues. ```xml ``` -------------------------------- ### OrmLite Table Definitions for Approvals Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the OrmLite table structures for the approvals module, including the central `approvallistresponse` and related `ApprovalEmployee` table. These are used for processing employee requests. ```java // OrmLite table: ApprovalListResponse // dataClass: com.tdr3.hs.android2.models.approvals.ApprovalListResponse // tableName: approvallistresponse // // Fields: id (PK), workWeekStart, minTime, maxTime, serverTimeZone, // clientTimeZone, statuses (SERIALIZABLE), // employees (eager foreign collection), // requestSets (eager foreign collection), // timeOffTypeInfo (eager foreign collection), // jobs (eager foreign collection), // shifts (eager foreign collection), // schedules (eager foreign collection), // timeOff (eager foreign collection), // permissions (foreign), currentPayPeriod (foreign), // purgeable // OrmLite table: ApprovalEmployee // Fields: id (PK), name, // jobs (eager foreign collection), // schedules (eager foreign collection), // permissions (foreign), approvalListResponse (foreign), // purgeable ``` -------------------------------- ### Wear OS Companion Service Manifest Entry Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the Wear OS companion service in AndroidManifest.xml to receive token data from a paired Android device. It filters for messages with the scheme 'wear' and path prefix '/hs_wear/token_data'. ```xml ``` -------------------------------- ### Email Notification Type Strings Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt String resources defining the titles for various email notification types supported by the application. These are used to label different kinds of email alerts. ```xml Schedule Updates Shift Transactions Approvals ToDos Follow Ups ``` -------------------------------- ### Calendar Sync Switch Preference Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines a `SwitchPreference` in `preferences.xml` to allow users to opt in to syncing HotSchedules shift events to their native Android calendar. This setting is controlled by `pref_key_calendar_sync`. ```xml ``` -------------------------------- ### Notification Preference Categories Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines preference categories for push and email notifications within the app's settings. These categories help organize notification settings for the user. ```xml ``` -------------------------------- ### OrmLite TimeOffRequestSet Data Model Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the OrmLite table structure for TimeOffRequestSet in the local SQLite database. Includes fields for request details, associated shifts, and purgeable status. ```java // OrmLite table: TimeOffRequestSet // dataClass: com.tdr3.hs.android2.models.requests.TimeOffRequestSet // tableName: timeoffrequestset // // Fields: id (PK), employeeId, startDate, endDate, requestType, // timeOffTypeId, currentStatus, reason, timeStamp, // requests (eager foreign collection, maxLevel=3), // history (eager foreign collection), // clientShifts (SERIALIZABLE), purgeable ``` -------------------------------- ### OrmLite BlockedRequestSet Data Model Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Defines the OrmLite table structure for BlockedRequestSet in the local SQLite database. This table stores information about blocked time periods, including reasons and associated requests. ```java // OrmLite table: BlockedRequestSet // dataClass: com.tdr3.hs.android2.models.requests.BlockedRequestSet // tableName: blockedrequestset // // Fields: id (PK), startDate, endDate, reason, timeStamp, // blockedBy, blockedById, usageType, // startDateString, endDateString, // clientShifts (eager foreign collection, maxLevel=2), // requests (eager foreign collection, maxLevel=3), // purgeable ``` -------------------------------- ### Firebase Cloud Messaging Service Registration Source: https://context7.com/johnlikescarrot/hotschedules/llms.txt Registers the `HSFirebaseMessagingService` in the AndroidManifest.xml to handle incoming FCM push notifications. This service is responsible for processing notifications for various app events. ```xml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.