Giter VIP home page Giter VIP logo

Comments (9)

mschmo avatar mschmo commented on August 28, 2024 15

And more obscure relationship examples: coworker, classmate, roommate, etc so may want to give the option for defining a custom relationship title and not set it to a fixed enum.

from monica.

djaiss avatar djaiss commented on August 28, 2024 2

After the mobile app, this feature is the next big thing I should do (or one of the next big things). The reason I haven't implemented it so far is the fact that this is really complex and that I want to make it right.

I think Monica should reflect reality.

  • Monica could have default values (spouse, children, parents, brother/sister, uncle and all the kind of relationships that are family related basically).
  • We should be able to define other type of relationships.

However, some types of relationships should be locked in the sense that we should not allow their deletion. I'm thinking here about specifically the spouse and children type. Why? Because we need to be able to control core contact information in order to control how we present it to the user, and those two fields are considered core. In the future I'd like to add more details in the reminders, or when you mouse over a name in the UI. We would then display those core contact information.

To make things worse, keep in mind that some types of relationship have custom needs. For instance, in the spouse type of relationship, we could add interesting metadata to it: wedding anniversary, first met date, breakup reason,... The same is true for many other types of relationship.

This would be the ideal situation and the vision we should aim for. Doing all this in one shot will be super complex, and take a very long time. We need to go step by step:

  • remove the tables relationships (that currently represent spouses) and offsprings/progenitors and implement a single, standard relationship table that would allow the exact same functionality for now.
  • modify the API to reflect this change.
  • add ability to manage metadata for a specific relationship type (as explained above), and manage the impact on the API.
  • make sure that this new system allows for automatic reverse relationship (defining a children would set the parent automatically for instance).
  • then implement other type of relationships, that we would add one by one to make sure we get it right for each relationship type. We'd need to change the UI probably in this case too.
  • finally, add custom fields.

It will take some releases to get it there. Considering how much the API will change because of these changes, we'll probably have to bump the version to 2.0.0 once this ships.

from monica.

djaiss avatar djaiss commented on August 28, 2024 2

The first step to support this has just been merged.

Monica now comes by default with many more relationship types. We'll enable custom relationships in the future.

  • Partner
  • Spouse
  • Date
  • Lover
  • In love with
  • Ex
  • Parent
  • Child
  • Sibling
  • Grand parents
  • Grand children
  • Uncle
  • Nephew
  • Cousine
  • God father
  • God son
  • Friend
  • Best friend
  • Colleague
  • Boss
  • Mentor

from monica.

lathomas64 avatar lathomas64 commented on August 28, 2024 1

would be a very useful feature especially if custom relationships were allowed.

from monica.

enko avatar enko commented on August 28, 2024

To get inspirations what can be a relationship, have a look at gramps which is in some way similiar to what you want to archive, but in some way not.

from monica.

degan6 avatar degan6 commented on August 28, 2024

Is this being worked on by anyone?

from monica.

Ali1 avatar Ali1 commented on August 28, 2024

Hello. Just discovered Monica, great just what I've been looking for for a while! First thing I've noticed is Spouse and Children Relationships. Any effort to create a more robust relationships model is a +1 from me.

In my head, would be great if we can create more relationships. And smarter relationships where after linking two contacts, further links are suggested. Perhaps a comprehensive configuration like:

{
'Parent' => {
  'reverse' => 'Offspring', // When creating a parent, suggest a reverse offspring relationship
},
'Offspring' => {
  'reverse' => 'Parent',
  'autolink' => {
    'Sibling' => { 
      'Uncle/Aunt' // When creating an offspring relationship, user's own siblings become Uncle/Aunt to the offspring
    },
    'Parent' => {
      'Grandparent' // When creating an offspring relationship, user's own parent becomes Grandparent to the offspring
    }
  }
},
...

The Relationship Model

id
account_id
contact_id
relationship_to_contact_id
relationship
priority_relationship // as people have a lot of relationships, some could be highlighted on a profile if the user chooses

What do people think about something like this?

from monica.

djaiss avatar djaiss commented on August 28, 2024

This feature has shipped.

from monica.

github-actions avatar github-actions commented on August 28, 2024

This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

from monica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.