Skip to content

Conversation

@FireFistisDead
Copy link
Contributor

Fixes

Closes #126

Description

This pull request enhances the export functionality in src/utils/exportSchedule.ts by allowing users to specify a custom file name when saving schedules to their device. The changes focus on improving file naming flexibility and updating related functions to support this feature.

Export functionality improvements:

  • The exportSelectedRegistersCSV method now accepts an optional customFileName parameter, enabling users to define the exported file's name.
  • File naming logic is updated to prioritize the user-provided customFileName if available, otherwise falling back to the existing naming conventions for single or grouped exports.

API and usage updates:

  • The saveToDevice method now accepts an optional customFileName argument and passes it through to the export logic, ensuring the custom name is used throughout the export process.
  • Overwrite confirmation dialogs and logic are updated to respect the custom file name when overwriting existing files.
  • A new utility function, saveScheduleToDeviceWithName, is added to the API, allowing callers to save schedules with a user-specified file name.

Files Changed

Screenshots/Videos

https://drive.google.com/file/d/18-gmsNigNIKtKPb9JFXUkp8cNFoPQLuZ/view?usp=sharing

GSSoC Contributor

  • Yes, I am a GSSoC contributor

Testing Device

  • Physical Android Device

@FireFistisDead
Copy link
Contributor Author

FireFistisDead commented Aug 18, 2025

@anisharma07 @Irtesaam I have made this changes

@Irtesaam
Copy link
Collaborator

@FireFistisDead
It is directly downloading without any prompt for renaming csv.

image

version: Android 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] To make a feature of rename the csv file of schedule

2 participants