Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For riders and dispatchers, show <order number>-<delivery_position> instead of <task.id> #1854

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

Atala
Copy link
Member

@Atala Atala commented Aug 22, 2024

Related to coopcycle/coopcycle-web#4583

I think it can be merged safely without merging the related backend PR, but you will see more things if it is set!

@Atala Atala requested review from r0xsh and vladimir-8 August 22, 2024 10:38
src/components/TaskTitle.js Show resolved Hide resolved
return tasks.reduce(
(label, task, idx) => {
return `${label}${idx !== 0 ? ',' : ''} #${task.id}`;
const taskIdentifier = task?.metadata?.order_number ? `${task.metadata.order_number}-${task?.metadata?.delivery_position}` : task.id
Copy link
Contributor

Choose a reason for hiding this comment

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

I see it a second time, maybe use a util function?

Copy link
Member Author

@Atala Atala Sep 11, 2024

Choose a reason for hiding this comment

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

where ? in TaskTitle component ?

@Atala Atala merged commit 28b18b5 into master Sep 11, 2024
1 of 3 checks passed
@Atala Atala deleted the show-task-order-number branch September 11, 2024 13:32
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