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 additional fields for relationships [2] #19

Open
kconn opened this issue Jul 31, 2017 · 4 comments
Open

Add additional fields for relationships [2] #19

kconn opened this issue Jul 31, 2017 · 4 comments
Assignees

Comments

@kconn
Copy link

kconn commented Jul 31, 2017

priorities:

  • start date and end date for all
  • amount for some
  • for position, is_board (yes no unknown)
@aepyornis aepyornis changed the title Add additional fields for relationships Add additional fields for relationships [2] Dec 11, 2017
@lizstarin lizstarin self-assigned this Dec 21, 2017
@kconn
Copy link
Author

kconn commented Dec 22, 2017

more notes on this:

  • is_board should only appear when a "position" relationship is selected. is_board should allow for yes, no, or unknown
  • start date and end date can be applied to any relationship. they will need to be validated for accepted date formats, ideally using whatever validation other forms use.
  • amount: though amounts are stored in the same field in the db, the label changes based on the type of relationship (eg, for position it is labeled as "compensation")...for now, though, I don't think we should bother with changing the label unless it is easy.
    Everything labeled with @@money here is an amount field, I believe, and those relationships. https://github.com/public-accountability/littlesis-rails/blob/c3d2e25289ad3d2068355c976702dd056392857c/lib/relationship_details.rb

As for layout/design, my suggestions:

  • get of the swap button; make amount field appear on same line as is_current
  • put start date and end date on same line below it
  • make is_board appear below dates when position is selected,
  • presumably we don't need "set current tab" button any more

@lizstarin
Copy link
Contributor

lizstarin commented Jan 4, 2018

Are there any types of relationships that shouldn't show "amount"--family, for instance?
@kconn

@kconn
Copy link
Author

kconn commented Jan 8, 2018

Yes – according to this, generic, family, social, professional, ownership, hierarchy don't have amount fields (hence no @@ money). @aepyornis , is there a better way of telling that? also, i'm not sure why ownership doesn't have an amount field, it sort of feels like value would be a good field to have there. I thought we used to have that, actually.

@kconn kconn closed this as completed Jan 8, 2018
@kconn kconn reopened this Jan 8, 2018
@lizstarin
Copy link
Contributor

new-layout-1
new-layout-2
new-layout-3

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

No branches or pull requests

2 participants