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

Button to create new related pub on pub details page #953

Open
gabestein opened this issue Feb 10, 2025 · 3 comments · May be fixed by #973
Open

Button to create new related pub on pub details page #953

gabestein opened this issue Feb 10, 2025 · 3 comments · May be fixed by #973
Assignees
Labels

Comments

@gabestein
Copy link
Member

gabestein commented Feb 10, 2025

Motivation

So users can create related pubs the way they can create children

So Unjournal can continue to use their process

Requirements

  • Adds a "Create Related Pub" button below the "Related Pubs" header, just like the current "Add new pub" button
  • In popup, adds a field to select a relationship type that allows user to select from relationship fields on the "from" pub type
  • In popup, render interface for adding the value of the the relationship, same as current value UI.
  • When new pub is created, it should be added as a relation to the "parent" pub

Acceptance Criteria

  • Reuses "add related" design from forms to add relationship value in popup

Extra work

Mockups (if available)

Image

Image

@allisonking
Copy link
Contributor

should this also consider the "value" of the relationship, or just leave null?

@gabestein
Copy link
Member Author

Right. Woof. I think for now leaving null is fine. Then maybe we could add it to...the form that loads, right?

@gabestein
Copy link
Member Author

Actually, more I think about it, more I think we should render a field for it if it's not null...

@gabestein gabestein moved this from Ready to In Progress in PubPub Legacy & Platform Combined Workstreams Feb 10, 2025
@allisonking allisonking linked a pull request Feb 12, 2025 that will close this issue
5 tasks
@allisonking allisonking moved this from In Progress to In Review in PubPub Legacy & Platform Combined Workstreams Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

2 participants