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] Create Base Page structure - EditorPage #1801

Closed
wants to merge 13 commits into from

Conversation

G-Ambatte
Copy link
Collaborator

@G-Ambatte G-Ambatte commented Nov 4, 2021

This PR is to implement underlying base pages, which are then called by the unique pages that require that format (i.e. /user draws from a base EditorPage prototype).

This will prevent duplication of effort - when the function is updated in the underlying page, all derived pages are updated.

  • EditorPage base page
  • NewPage implements EditorPage
    • Save works
    • Google Drive selection works
    • Print works
  • EditPage implements EditorPage
    • Save works
    • Google Drive selection works
    • Print works
  • Split functions from if(isType()){...} to callbacks from calling page
    • Print
    • NavElements
      • Include Print in NavElements?
    • Save/Autosave
      • NewPage - error handling NYI
      • EditPage
    • Transfer to/from Google Drive/HB MongoDB - EditPage only

This will resolve #1800.

(cherry picked from commit 6cd56df)
@G-Ambatte G-Ambatte added the P1 - high priority Obvious bug or popular features label Nov 4, 2021
@G-Ambatte G-Ambatte self-assigned this Nov 4, 2021
Modify PrintLink to use a passed URL
@G-Ambatte
Copy link
Collaborator Author

I believe this is now functional, so it's probably time to get an extra set of eyes on it to see if I've missed anything.

@G-Ambatte G-Ambatte changed the base branch from master to PRODUCTION November 28, 2021 22:07
@G-Ambatte G-Ambatte changed the base branch from PRODUCTION to master November 28, 2021 22:07
@G-Ambatte
Copy link
Collaborator Author

G-Ambatte commented Nov 28, 2021

I have split the Print and NavElements from the isNew()/isEdit() blocks inside the EditorPage functions to instead use props passed to EditorPage. At this stage, this has caused some issues with the Share links after transferring to/from Google Drive/Mongo, but I expect that this will be resolved once the final steps are completed.

Functions to split added to top post.

@calculuschild calculuschild mentioned this pull request Dec 1, 2021
6 tasks
@calculuschild
Copy link
Member

@G-Ambatte Do you need help knocking this one out?

@calculuschild calculuschild temporarily deployed to homebrewery-pr-1801 April 24, 2023 18:55 Inactive
@calculuschild calculuschild mentioned this pull request Sep 22, 2023
@dbolack-ab
Copy link
Collaborator

Is this still a going concern and given its age, does it need redone from master?

@calculuschild
Copy link
Member

Is this still a going concern and given its age, does it need redone from master?

Yeah it still needs to happen (we have a lot of redundancy that means multiple points need to be updated when fixing an issue with the editor, and its easy to miss one.)

But yeah needs to be done fresh from Master. A lot has changed since then.

@calculuschild calculuschild temporarily deployed to homebrewery-pr-1801 January 17, 2024 17:23 Inactive
@dbolack-ab
Copy link
Collaborator

Does this solve for #1413 as it's predecessor was supposed to?

@calculuschild
Copy link
Member

Does this solve for #1413 as it's predecessor was supposed to?

This PR was never completed and so was not merged.

@dbolack-ab
Copy link
Collaborator

What remains for this?

@calculuschild
Copy link
Member

calculuschild commented Oct 4, 2024

What remains for this?

Basically needs to be redone from scratch at this point. Too many changes since this was originally made.

@5e-Cleric
Copy link
Member

I have wanted to do this for a while, but every time i start it becomes really overwhelming, really fast. Too many features, and they should all be done together, in my opinion. Also lots of baggage from older react versions and that.

@dbolack-ab
Copy link
Collaborator

What remains for this?

Basically needs to be redone from scratch at this point. Too many changes since this was originally made.

Would it be best, then to close this and create a feature branch to target with smaller PRs until it completes?

@calculuschild
Copy link
Member

calculuschild commented Nov 13, 2024

Yeah, I will close this one and we can attempt with smaller PRs.

Before attempting again, let's please discuss a strategy in #1800 and outline some PR targets (at least the first couple), so we can ensure the main branch remains functional as we gradually merge each chunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 - high priority Obvious bug or popular features 🔍 R2 - Reviewed - Needs Help 🫱 PR is okayed but is stuck on an obstacle
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unify base page structure - EditorPage
4 participants