From 9deccf7349333458ba252e034ec037232c5f2f4e Mon Sep 17 00:00:00 2001 From: Natallia Bukhtsik Date: Mon, 11 Nov 2024 10:45:03 -0500 Subject: [PATCH 1/4] Alga PSA --- server/entrypoint.sh | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/server/entrypoint.sh b/server/entrypoint.sh index 4a2fbf2e..b664a447 100755 --- a/server/entrypoint.sh +++ b/server/entrypoint.sh @@ -13,10 +13,10 @@ NODE_ENV=${NODE_ENV:-production} # done -version="0.0.0" +version="0.0.1" commit="abc123" -date="13-08-2023" -author="Ivan D Gomez J" +date="04-11-2024" +author="NineMinds" # Function to print colored text print_color() { @@ -27,8 +27,8 @@ print_color() { # Print the first ASCII art print_color "35" " - ******* - **************** + ******* + **************** *********************** ***************************** ********************************* @@ -69,14 +69,13 @@ print_color "35" " # Print the second ASCII art print_color "34" " - ###### ######## ######## ### ###### ######## #### ### ## ## - ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## - ## ## ## ## ## ## ## ## ## ## ## #### ## - ###### ###### ######## ## ## ###### ## ## ## ## ## ## ## - ## ## ## ## ######### ## ## ## ######### ## #### - ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### - ###### ######## ######## ## ## ###### ## #### ## ## ## ## - + ### ## ###### ### ###### ##### ### + ## ## ## ## ## ## ## # # # # ## ## + ## ## ## ## ## ## # # # ## ## + ## ## ## ## #### ## ## ###### ##### ## ## + ######### ## ## ## ######### # # ######### + ## ## ## ## ## ## ## # # ## ## + ## ## ######## ###### ## ## # ##### ## ## ##### ####### ###### # # ####### ###### @@ -92,12 +91,12 @@ print_color "34" " print_color "36" " **************************************************** * * - * SEBASTIAN NEXT.JS * + * ALGA PSA NEXT.JS * * * - * Version .: $version * - * Commit .: $commit * - * Date .: $date * - * Author .: $author * + * Version .: $version * + * Commit .: $commit * + * Date .: $date * + * Author .: $author * * * **************************************************** " From ee6d79a78444bdb4f91ff12574a1f6a6ba482b24 Mon Sep 17 00:00:00 2001 From: Natallia Bukhtsik Date: Thu, 7 Nov 2024 14:31:38 -0500 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=91=BB=20If=20I=20were=20the=20wizard?= =?UTF-8?q?=20of=20roles,=20oh=20I=20would=20add...=20Because=20because=20?= =?UTF-8?q?because=20because=20becaaaause...=20Roles=20&=20comments=20to?= =?UTF-8?q?=20contacts=20at=20last!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241107120000_add_notes_to_contacts.js | 11 +++++++ .../contacts/ContactDetailsEdit.tsx | 21 +++++++++++++- .../contacts/ContactDetailsView.tsx | 7 +++++ .../contacts/ContactsImportDialog.tsx | 16 ++++++++-- .../components/contacts/QuickAddContact.tsx | 29 ++++++++++++++++++- server/src/components/ui/TextArea.tsx | 12 ++++++-- server/src/interfaces/contact.interfaces.tsx | 4 +++ .../contact-actions/contactActions.tsx | 15 +++++++--- 8 files changed, 104 insertions(+), 11 deletions(-) create mode 100644 server/migrations/20241107120000_add_notes_to_contacts.js diff --git a/server/migrations/20241107120000_add_notes_to_contacts.js b/server/migrations/20241107120000_add_notes_to_contacts.js new file mode 100644 index 00000000..813ca609 --- /dev/null +++ b/server/migrations/20241107120000_add_notes_to_contacts.js @@ -0,0 +1,11 @@ +exports.up = async function(knex) { + await knex.schema.alterTable('contacts', (table) => { + table.text('notes'); + }); +}; + +exports.down = async function(knex) { + await knex.schema.alterTable('contacts', (table) => { + table.dropColumn('notes'); + }); +}; diff --git a/server/src/components/contacts/ContactDetailsEdit.tsx b/server/src/components/contacts/ContactDetailsEdit.tsx index 108dd4f2..bbef9d8d 100644 --- a/server/src/components/contacts/ContactDetailsEdit.tsx +++ b/server/src/components/contacts/ContactDetailsEdit.tsx @@ -4,6 +4,7 @@ import React, { useState, useEffect } from 'react'; import { IContact } from '@/interfaces/contact.interfaces'; import { Button } from '@/components/ui/Button'; import { Input } from '@/components/ui/Input'; +import { TextArea } from '@/components/ui/TextArea'; import { Flex, Text, Heading } from '@radix-ui/themes'; import { updateContact } from '@/lib/actions/contact-actions/contactActions'; import { findTagsByEntityIds, findAllTagsByType } from '@/lib/actions/tagActions'; @@ -90,6 +91,12 @@ const ContactDetailsEdit: React.FC = ({ value={contact.phone_number} onChange={(value) => handleInputChange('phone_number', value)} /> + handleInputChange('role', value)} + placeholder="e.g., Manager, Developer, etc." + /> Company: @@ -116,6 +123,16 @@ const ContactDetailsEdit: React.FC = ({ onChange={(value) => handleInputChange('is_inactive', value === 'Inactive')} options={['Active', 'Inactive']} /> + + Notes: + +