Skip to content

Commit 85156eb

Browse files
committed
Rename is_unviewed property to is_not_looked_at in response history items
- rename 'is_unviewed' to 'is_not_looked_at'
1 parent 4720eb0 commit 85156eb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const apply_chat_response_command = (params: {
109109
created_at: Date.now(),
110110
url: args?.url,
111111
recent_api_configuration: args?.recent_api_configuration,
112-
is_unviewed: true
112+
is_not_looked_at: true
113113
}
114114

115115
created_at_for_switch = new_item.created_at
@@ -153,8 +153,8 @@ export const apply_chat_response_command = (params: {
153153
const target_created_at = args.created_at
154154
const history = params.panel_provider.response_history
155155
const existing = history.find((i) => i.created_at === target_created_at)
156-
if (existing && existing.is_unviewed !== false) {
157-
existing.is_unviewed = false
156+
if (existing && existing.is_not_looked_at !== false) {
157+
existing.is_not_looked_at = false
158158
params.panel_provider.send_message({
159159
command: 'RESPONSE_HISTORY',
160160
history

‎packages/shared/src/types/response-history-item.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export type ResponseHistoryItem = {
1616
relevant_files?: RelevantFileInPreview[]
1717
url?: string
1818
recent_api_configuration?: RecentApiConfiguration
19-
is_unviewed?: boolean
19+
is_not_looked_at?: boolean
2020
}

‎packages/ui/src/components/editor/panel/Responses/Responses.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Responses: React.FC<Props> = (props) => {
5555
}}
5656
>
5757
<div className={styles.responses__item__content__instructions}>
58-
{item.is_unviewed ? (
58+
{item.is_not_looked_at ? (
5959
<span
6060
className={`codicon codicon-circle-filled ${styles['responses__item__content__instructions__new-indicator']}`}
6161
/>

0 commit comments

Comments
 (0)