Commit Graph

14 Commits

Author SHA1 Message Date
Kantine Wrapper
16fe0884aa feat: Implement secure logout functionality, add theme toggle, week navigation, and update version to 1.7.2. 2026-03-12 15:35:09 +01:00
Kantine Wrapper
32c1e1e383 feat: Remove guest token usage, enhance highlight tag management with validation and improved UI, and add security tests. 2026-03-12 13:13:32 +01:00
Kantine Wrapper
b5568c964b perf: Refactor menu item height synchronization to prevent layout thrashing and introduce a debounced resize listener. 2026-03-12 11:28:32 +01:00
Kantine Wrapper
a9ec4ff8f6 feat: Replaced inline language selection with a dropdown menu and removed the weekly cost display. 2026-03-12 10:32:03 +01:00
Kantine Wrapper
570b0674b7 refactor: Adjust card and menu item styling for improved layout and spacing, and update the client version. 2026-03-11 13:05:26 +01:00
Kantine Wrapper
9989cb687f fix: Adjust card glow styling by removing negative horizontal margins and update client version to v1.6.18. 2026-03-11 11:39:28 +01:00
Kantine Wrapper
8960a7f0b3 feat: Enhance layout density and responsiveness with tighter spacing and flex-wrap, and resolve scrolling conflicts in the bookmarklet. 2026-03-11 10:49:37 +01:00
Kantine Wrapper
9fddf74eb2 feat: implement internationalization for UI text, refactor localStorage keys, and add input validation for state setters. 2026-03-11 10:14:59 +01:00
google-labs-jules[bot]
856f0dc2be Fix Cross-Site Scripting (XSS) via innerHTML assignment in renderHistory
Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
2026-03-10 16:51:23 +00:00
Kantine Wrapper
d05812dbb2 feat: Add manual refresh for flagged items triggered by the alarm bell, including UI feedback and toast notifications. 2026-03-10 15:49:38 +01:00
google-labs-jules[bot]
c253588390 build: Integrate webpack into build script
- Add `webpack` as a devDependency in `package.json`.
- Update `build-bookmarklet.sh` to run `npm install --silent` and `npx webpack` automatically, ensuring the required `dist/kantine.bundle.js` is generated before packaging.

Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
2026-03-10 14:29:42 +00:00
google-labs-jules[bot]
d365b71ee6 performance optimization: batch fetch availableDates
Removed the 100ms artificial delay in `loadMenuDataFromAPI` and switched from sequentially awaiting fetch requests to concurrently awaiting requests in batches of 5 using `Promise.all`. Preserved original chronological ordering of array elements.

Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
2026-03-10 14:00:03 +00:00
google-labs-jules[bot]
b75d5f88a5 perf: optimize innerHTML with insertAdjacentHTML
Replaced an inefficient `.innerHTML +=` operation with `.insertAdjacentHTML('beforeend', ...)` in `src/ui_helpers.js`.

Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
2026-03-10 13:09:35 +00:00
google-labs-jules[bot]
2f08a951b4 Refactor kantine.js into modular ES6 structure
Moved `kantine.js` into a `src/` directory with multiple modularized files:
- `api.js`: All API calls and constants
- `state.js`: State management (auth, cache, theme, tags, etc.)
- `utils.js`: Helpers for UI and Date formatting
- `ui.js`: DOM manipulation logic
- `events.js`: Initial DOM event listeners and logic hooks
- `actions.js`: Data fetching actions, local processing logic
- `ui_helpers.js`: UI helper functions (rendering modals, handling DOM injections)

Updated the `build-bookmarklet.sh` to compile with Webpack via newly created `webpack.config.js`. Updated all relevant test scripts to use the new output `dist/kantine.bundle.js` and modified logic to work within Webpack scopes.

Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
2026-03-10 11:55:36 +00:00