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

Word count split feature added to new view #676

Merged
merged 11 commits into from
Sep 27, 2023
Merged

Conversation

meg-ghana
Copy link
Contributor

No description provided.

Copy link
Contributor

@sujitv19196 sujitv19196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Still needs a merge (git pull origin staging) and then resolve the merge conflicts. I think there are actually no merge conflicts.
  • Also I had to remove some code from index.js that was not being used for any functionality. Be careful that when you copy-paste you understand the functionality you are copy-pasting over.

@@ -0,0 +1,104 @@
import React, {useState} from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this file into the EditINote folder

@meg-ghana meg-ghana force-pushed the staging-word-count-split branch from 3b95ecb to 99c222e Compare September 25, 2023 18:12
Copy link
Contributor

@sujitv19196 sujitv19196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete the unused code from index.js please. Then I will tag Lawrence and get this merged.

Comment on lines 12 to 13
import Instruction from '../EditEPubStructure/Instruction';
import EPubItemView from '../EditEPubStructure/EPubItemView';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused code. I thought i deleted this in my commit. Pleas delete

Comment on lines 24 to 45
const [instExp, setInstExp] = useState(true);

const toggleInstExp = (e, newExpanded) => setInstExp(newExpanded);

useEffect(() => {
// show the user onboard guide if possible
setTimeout(() => {
const guide = generateEPubGuide();
guide.start();
}, 1000);
}, []);

useEffect(() => {
if (Boolean(ePubItem) && instExp) {
setInstExp(false);
}
}, [ePubItem]);
const itemViewElem = altEl(EPubItemView, Boolean(ePubItem), {
item: ePubItem, setEPubItem
});
const btnStyles = useButtonStyles();
const btnClasses = cx(btnStyles.tealLink, 'justify-content-start');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think most of this is unused functionality. We are no longer displaying the instruction and guide to the user. Delete all that does not pertain to the split menu.

Copy link
Contributor

@sujitv19196 sujitv19196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sujitv19196 sujitv19196 requested a review from angrave September 26, 2023 21:14
@angrave angrave merged commit 7daddf8 into staging Sep 27, 2023
2 checks passed
@angrave angrave deleted the staging-word-count-split branch June 8, 2024 00:48
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.

3 participants