<?php
namespace Concrete\Core\Notification\View\Menu;

use Concrete\Core\Application\UserInterface\ContextMenu\DropdownMenu;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\DividerItem;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\ItemInterface;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\LinkItem;
use HtmlObject\Element;

class WorkflowProgressListViewMenu extends DropdownMenu
{
    public function getMenuElement()
    {
        $menu = parent::getMenuElement();

        foreach ($this->items as $item) {
            /* @var ItemInterface $item */
            $menu->appendChild($item->getItemElement());
        }

        $menu->appendChild((new DividerItem())->getItemElement());

        $item = new LinkItem(
            '#',
            tc('Verb', 'Archive'),
            ['data-notification-action' => 'archive']
        );
        $menu->appendChild($item->getItemElement());

        return $menu;
    }
}

<?php
namespace Concrete\Core\Notification\View\Menu;

use Concrete\Core\Application\UserInterface\ContextMenu\DropdownMenu;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\DividerItem;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\ItemInterface;
use Concrete\Core\Application\UserInterface\ContextMenu\Item\LinkItem;
use HtmlObject\Element;

class WorkflowProgressListViewMenu extends DropdownMenu
{
    public function getMenuElement()
    {
        $menu = parent::getMenuElement();
        
        $menu->appendChild((new DividerItem())->getItemElement());

        $item = new LinkItem(
            '#',
            tc('Verb', 'Archive'),
            ['data-notification-action' => 'archive']
        );
        $menu->appendChild($item->getItemElement());

        return $menu;
    }
}

Fix double items showing up in workflow waiting for me
Fix double items showing up in workflow waiting for me
