Skip to content

add combobox for speed types #319

Merged
chrstnbwnkl merged 4 commits intomasterfrom
cb-speed-types
Jan 30, 2026
Merged

add combobox for speed types #319
chrstnbwnkl merged 4 commits intomasterfrom
cb-speed-types

Conversation

@chrstnbwnkl
Copy link
Member

image

Adds a combobox to select the different speed types to use as a costing option, enabled for profiles that use traffic speeds.

I later realized that the Combobox component is based on BaseUI rather than radix (which is what we're using). Not ideal to pull in another dependency, but I don't know what the state of radix vs baseUI is, it seems to come from the same maintainers?

@ghost
Copy link

ghost commented Jan 29, 2026

Preview is ready! 🚀 You can view it here: https://valhalla-app-tests.gis-ops.com/319

mustaphaturhan
mustaphaturhan previously approved these changes Jan 29, 2026
Copy link
Collaborator

@mustaphaturhan mustaphaturhan left a comment

Choose a reason for hiding this comment

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

looks fine to me. it could be nice if we can remove the console.logs.

radix and base-ui come from the same maintainers. with the new version of shadcn, we are able to select radix or base-ui while creating the application. it looks looks like radix version of combobox is gone. they re-built combobox with base-ui primitives.

)}
{profileSettings[profile as ProfileWithSettings].list.map(
(option, key) => {
console.log(`setting: ${settings[option.param]}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we remove console.logs?

Copy link
Member Author

Choose a reason for hiding this comment

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

whoops, thanks for catching those.

@chrstnbwnkl chrstnbwnkl enabled auto-merge (squash) January 30, 2026 11:25
@chrstnbwnkl chrstnbwnkl disabled auto-merge January 30, 2026 11:25
@chrstnbwnkl chrstnbwnkl enabled auto-merge (squash) January 30, 2026 11:25
@chrstnbwnkl chrstnbwnkl merged commit 8b16da5 into master Jan 30, 2026
3 checks passed
@chrstnbwnkl chrstnbwnkl deleted the cb-speed-types branch January 30, 2026 11:28
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.

3 participants