Skip to content

feat: chip-based ticker editor#17

Merged
falkoro merged 1 commit into
masterfrom
feat/branch-protect-ticker-editor
May 31, 2026
Merged

feat: chip-based ticker editor#17
falkoro merged 1 commit into
masterfrom
feat/branch-protect-ticker-editor

Conversation

@falkoro
Copy link
Copy Markdown
Owner

@falkoro falkoro commented May 31, 2026

Improves the ticker-adding UX in Configure.

Replaces the raw comma/newline textarea with a proper editor:

  • Existing tickers render as removable chips (× to delete).
  • An input + Add button (Enter or comma also adds) appends new symbols — uppercased, sanitised to valid symbol chars, deduped, capped at 16.

Verified: typing pltr adds a PLTR chip; chips render + remove cleanly (screenshot).

Frontend-only; tsc clean.

First PR under the new branch protection on master (PR-required, enforce-admins, linear history, no force-push).

🤖 Generated with Claude Code

Replace the raw tickers textarea in Configure with a proper editor: existing
tickers show as removable chips (× to delete), and an input + Add button (Enter
or comma to add) appends new symbols — uppercased, sanitised, deduped, capped at
16. Much nicer than editing a comma blob.

Frontend-only; tsc clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 31, 2026 14:35
@falkoro falkoro merged commit 2f2fabd into master May 31, 2026
@falkoro falkoro deleted the feat/branch-protect-ticker-editor branch May 31, 2026 14:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the settings “Tickers” editor from a freeform textarea to a chip-based UI for adding/removing symbols, and adds supporting styles.

Changes:

  • Replaces ticker textarea parsing with an interactive chip editor (add/remove, max 16).
  • Adds new CSS rules for ticker chip layout and controls.
  • Updates focus behavior to target the new ticker input.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
public/app.css Adds styling for the new ticker chip editor UI.
public/actions.js Implements chip-based ticker editing and updates settings save payload.
frontend/actions.ts TypeScript equivalent of the chip editor and updated save behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/actions.js
Comment on lines +92 to +95
chipsEl.addEventListener('click', (event) => {
const btn = event.target.closest('[data-remove-ticker]');
if (!btn)
return;
Comment thread frontend/actions.ts
Comment on lines +85 to +87
chipsEl.addEventListener('click', (event: MouseEvent) => {
const btn = (event.target as HTMLElement).closest<HTMLButtonElement>('[data-remove-ticker]');
if (!btn) return;
Comment thread public/actions.js
Comment on lines +96 to +97
editTickers.splice(Number(btn.dataset.removeTicker), 1);
renderChips();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants