Skip to content

Commit 0229d91

Browse files
committed
styles
1 parent 6d71af3 commit 0229d91

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/app/components/global-search/global-search.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class GlobalSearchComponent implements OnInit, OnDestroy {
4444
ngOnInit(): void {
4545
// Setup search debouncing
4646
this.searchSubject
47-
.pipe(debounceTime(300), distinctUntilChanged(), takeUntil(this.destroy$))
47+
.pipe(debounceTime(700), distinctUntilChanged(), takeUntil(this.destroy$))
4848
.subscribe((query) => {
4949
this.performSearch(query);
5050
});
@@ -141,7 +141,7 @@ export class GlobalSearchComponent implements OnInit, OnDestroy {
141141
const isSaleNumber = /^SALE(-|\/|')[0-9A-F]{8}$/i.test(trimmedQuery);
142142

143143
if (isSaleNumber) {
144-
// Navigate to sales page and set the search query
144+
// Open sales page and set the search query, if it is on pos page, open returns modal
145145
this.router.navigate(["/sales"]).then(() => {
146146
this.searchStateService.setSearchQuery(trimmedQuery);
147147
});
@@ -150,7 +150,7 @@ export class GlobalSearchComponent implements OnInit, OnDestroy {
150150
}
151151

152152
// Check if it looks like a provider code (e.g., PROV-0000)
153-
const isProviderCode = /^PROV(-|\/)[0-9A-F]{4}$/i.test(trimmedQuery);
153+
const isProviderCode = /^PROV(-|\/|')[0-9A-F]{4}$/i.test(trimmedQuery);
154154

155155
if (isProviderCode) {
156156
// Navigate to providers page and set the search query
@@ -205,9 +205,8 @@ export class GlobalSearchComponent implements OnInit, OnDestroy {
205205
const now = Date.now();
206206
if (
207207
query.trim() === this.lastEnterSearchQuery &&
208-
now - this.lastEnterSearchTime < 500
208+
now - this.lastEnterSearchTime < 900
209209
) {
210-
console.log("Debounced search skipped - already handled by Enter key");
211210
return;
212211
}
213212

src/app/components/sidebar/sidebar.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
justify-content: center;
134134
padding: 0 $spacing-xs;
135135
gap: $spacing-sm;
136-
border-right: 1px solid rgba(255, 255, 255, 0.671);
137136
}
138137

139138
.sidebar-btn {

src/assets/i18n/es.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,16 @@
608608
"CASHIER": {
609609
"TITLE": "Cajero Rápido",
610610
"DESCRIPTION": "Entrada rápida de productos y procesamiento de pagos",
611-
"REGISTER_WARNING": "No hay caja abierta. Por favor abra una caja para hacer ventas.",
611+
"REGISTER_WARNING": "Abra una caja para hacer ventas.",
612612
"OPEN_REGISTER": "Abrir Caja",
613613
"ADD": "Agregar",
614614
"CALCULATOR": {
615615
"NAME_PLACEHOLDER": "Nombre del artículo (opcional)"
616616
},
617617
"MULTIPLY": {
618618
"LABEL": "x",
619-
"ADD_LABEL": "Ingresa la cantidad a agregar:",
620-
"UPDATE_LABEL": "Ingresa la nueva cantidad para el último artículo:"
619+
"ADD_LABEL": "Cantidad:",
620+
"UPDATE_LABEL": "Nueva cantidad:"
621621
},
622622
"LOOSE_PRODUCT": "Producto a Granel",
623623
"ITEMS": {

0 commit comments

Comments
 (0)