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

add excel file support #22

Merged
merged 11 commits into from
Oct 20, 2022
Merged

Conversation

all4one-max
Copy link
Contributor

@all4one-max all4one-max commented Oct 18, 2022

The following features have been added as per issue #5:

  • downloading tabs in excel format (.xlsx)
  • uploading and opening the tabs from an excel file

I have primarily used sheetJS package for implementing the features, so make sure to install all the dependencies.

I hope these features are as desired.

@all4one-max
Copy link
Contributor Author

@Jitensid don't we have to link the PR to the original issue#5. Also, everything is running correctly in my system. can you help me understand the errors shown here.

@Jitensid
Copy link
Owner

I checked your package.json file. Could you add the dependency like others ?

@all4one-max
Copy link
Contributor Author

Doesn't package.json update automatically when we run npm install?

@Jitensid
Copy link
Owner

Doesn't package.json update automatically when we run npm install?

It does but why it is in a different format?

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 18, 2022

Doesn't package.json update automatically when we run npm install?

It does but why it is in a different format?

What do you mean by different format? Are you not able to run it in your system?

@Jitensid
Copy link
Owner

Jitensid commented Oct 18, 2022

Check review comments

@all4one-max
Copy link
Contributor Author

In CI/test of windows and macOS, it says that lockfile version 1 is required but in the main branch also it says lockfile version 2 in package-lock.json.

@Jitensid
Copy link
Owner

Jitensid commented Oct 18, 2022

Just remove the package.lock json file and try again . Ideally it should not be pushed to repo.

It should work after that.

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 18, 2022

Just remove the package.lock json file and try again . Ideally it should not be pushed to repo.

It should work after that.

So should I add it to gitignore and then push again?

@all4one-max
Copy link
Contributor Author

image

image

@Jitensid It shows that the split method will have undefined, but it can never be since I am uploading a file. can you bypass the test and run it on your device once, all the functionalities are running correctly in my system.

@all4one-max
Copy link
Contributor Author

@Jitensid Why does it always wait for approval to test after the initial PR approval?

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 18, 2022

@Jitensid there's some issue in the UploadButton.test.js as shown in the log, but I didn't even work on it.

yeah I will look into this.

@all4one-max
Copy link
Contributor Author

@Jitensid I think so, the issue is due to the test being written for json file format and not compatible with other formats.

@Jitensid
Copy link
Owner

Jitensid commented Oct 18, 2022

@all4one-max I am running the code into my system

@Jitensid
Copy link
Owner

I will need some time to figure out what exactly is the issue

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 19, 2022

@Jitensid I want to start working on the other issue while you figure out the problem we are facing here. But I was wondering if I make a separate branch and start working on it, won't it cause an issue when this PR gets merged? Like I will start working on the branch from the code i.e in the main branch.

nvm, I can't start working on it until this gets merged since both issues are to be handled in the upload Button file itself.

Hoping for a quick resolution!

@Jitensid
Copy link
Owner

Jitensid commented Oct 19, 2022

@Jitensid I want to start working on the other issue while you figure out the problem we are facing here. But I was wondering if I make a separate branch and start working on it, won't it cause an issue when this PR gets merged? Like I will start working on the branch from the code i.e in the main branch.

nvm, I can't start working on it until this gets merged since both issues are to be handled in the upload Button file itself.

Hoping for a quick resolution!
In which issue you are planning to work?

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 19, 2022 via email

@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2022

Codecov Report

Merging #22 (111faa9) into main (a19abdb) will decrease coverage by 3.85%.
The diff coverage is 45.71%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   85.61%   81.76%   -3.86%     
==========================================
  Files           8        8              
  Lines         139      159      +20     
  Branches       15       23       +8     
==========================================
+ Hits          119      130      +11     
- Misses         19       29      +10     
+ Partials        1        0       -1     
Impacted Files Coverage Δ
src/utils/FileFormat.js 100.00% <ø> (+30.00%) ⬆️
src/components/UploadButton/UploadButton.js 56.60% <34.78%> (-33.72%) ⬇️
src/utils/JSONFileOperations/JSONFileOperations.js 81.81% <60.00%> (+44.31%) ⬆️
...rc/components/DownloadTabsList/DownloadTabsList.js 96.15% <100.00%> (+2.93%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Jitensid
Copy link
Owner

@all4one-max test is passing now.

@all4one-max
Copy link
Contributor Author

all4one-max commented Oct 19, 2022

@Jitensid how do I handle the codecov thing? wait! since you have made commits in the branch I will have to pull first right?

@Jitensid
Copy link
Owner

Jitensid commented Oct 19, 2022

Yeah so the issue is code coverage has dropped.
We have to write test cases for excel file upload as well.
Yeah you have to pull the code.

@all4one-max
Copy link
Contributor Author

Yeah so the issue is code coverage has dropped. We have to write test cases for excel file upload as well. Yeah you have to pull the code.

hey will it help if I try to reduce code at some place (like write a shorter version).

@Jitensid
Copy link
Owner

please revert your latest commit

@all4one-max
Copy link
Contributor Author

okay!

@Jitensid
Copy link
Owner

I shall write the test for excel file upload in some time.

@Jitensid
Copy link
Owner

https://app.codecov.io/gh/Jitensid/TabPort/pull/22

This will show where your code is not covered by test cases

@all4one-max
Copy link
Contributor Author

I see, but I don't know how to write test cases, I can try learning how but it might take a lot of time.

@Jitensid
Copy link
Owner

I see, but I don't know how to write test cases, I can try learning how but it might take a lot of time.

No problem I shall write one for this case in some time.

@Jitensid
Copy link
Owner

Jitensid commented Oct 20, 2022

@all4one-max thanks for your contribution and I loved your dedication !
Keep up the good work !

@Jitensid Jitensid merged commit 8091c79 into Jitensid:main Oct 20, 2022
@all4one-max all4one-max deleted the add-excel-file-support branch October 20, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants