<?xml version="1.0" encoding="UTF-8"?>
<!--
  GoRoute Connect for Excel — add-in manifest.

  This is the add-in-only XML manifest (not the newer unified manifest), chosen
  deliberately for the widest Excel compatibility: the unified manifest is not
  supported across every Office version and platform, and Microsoft advises the
  XML manifest where broad reach matters. See docs/GOROUTE_CONNECT_EXCEL_PLAN.md
  section 0.1.

  Requirement set is declared at 1.1 (the floor for reading/writing worksheet
  data) rather than 1.8, so the add-in LOADS everywhere and then degrades at
  runtime via Office.context.requirements.isSetSupported. Declaring 1.8 here
  would hide the add-in entirely from Excel builds that could still run the
  compatible tier.
-->
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <!-- Generated once for GoRoute Connect for Excel; must stay stable across
       releases or Excel treats an update as a different add-in. -->
  <Id>7f3c1d92-6b4a-4e58-9a17-2c8d5f0b4e31</Id>
  <Version>0.1.0.0</Version>
  <ProviderName>ClayDesk LLC</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="GoRoute Connect for Excel"/>
  <Description DefaultValue="Keep invoicing in Excel. GoRoute makes every invoice compliant, sends it, and shows you the proof."/>
  <IconUrl DefaultValue="https://goroute.ai/excel/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://goroute.ai/excel/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://goroute.ai/help-center.html"/>

  <!-- Hosts the add-in may talk to. Office blocks navigation elsewhere. -->
  <AppDomains>
    <AppDomain>https://goroute.ai</AppDomain>
    <AppDomain>https://app-test.goroute.ai</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="ExcelApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://goroute.ai/excel/taskpane.html"/>
  </DefaultSettings>

  <!-- ReadWriteDocument: the add-in creates the invoice sheet and writes back
       status/transaction links. It never reads outside the GoRoute sheet. -->
  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Desc"/>
            <LearnMoreUrl resid="Url.Learn"/>
          </GetStarted>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="GoRoute.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>

                <!-- One button. It opens the task pane, which carries every
                     action (New Invoice / Validate / Send / Connect). A single
                     entry point keeps the ribbon uncluttered for a shopkeeper
                     and means actions can evolve without a manifest change —
                     manifest updates take hours to propagate through Microsoft's
                     cache, task-pane changes are instant. -->
                <Control xsi:type="Button" id="GoRoute.OpenPane">
                  <Label resid="Button.Label"/>
                  <Supertip>
                    <Title resid="Button.Label"/>
                    <Description resid="Button.Tip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>GoRoute.Taskpane</TaskpaneId>
                    <SourceLocation resid="Url.Taskpane"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://goroute.ai/excel/assets/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://goroute.ai/excel/assets/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://goroute.ai/excel/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Url.Taskpane" DefaultValue="https://goroute.ai/excel/taskpane.html"/>
        <bt:Url id="Url.Learn" DefaultValue="https://goroute.ai/excel/"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="GoRoute"/>
        <bt:String id="Button.Label" DefaultValue="Invoicing"/>
        <bt:String id="GetStarted.Title" DefaultValue="GoRoute Connect is ready"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Button.Tip" DefaultValue="Create, check and send compliant e-invoices without leaving Excel."/>
        <bt:String id="GetStarted.Desc" DefaultValue="Open the GoRoute pane to connect your account and create your first invoice."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
