From fddc5fac75cfb927172efe64554c12d53383539e Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 12 Jun 2024 18:55:09 -0300 Subject: [PATCH] refactor: Update MESSAGES_TABLE_ORDER constant in constants.ts Update the MESSAGES_TABLE_ORDER constant in constants.ts to include additional fields for sorting messages in a table. This change improves the functionality and flexibility of the codebase, allowing for more customizable table sorting options. --- src/frontend/src/constants/constants.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index da2917155..68397edd8 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -71,6 +71,16 @@ export const programmingLanguages: languageMap = { */ export const MAX_LENGTH_TO_SCROLL_TOOLTIP = 200; +export const MESSAGES_TABLE_ORDER = [ + "timestamp", + "message", + "text", + "sender", + "sender_name", + "session_id", + "files", +]; + /** * Number maximum of components to scroll on tooltips * @constant