Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ tags:
Focus under Today: one list of everything that needs the signed-in user, grouped by when it's
due (Overdue, Today, This week, Later) and filtered by type. The first source is Checklist
Actions: the next step on each Contact's Checklist that the user is responsible for.
- name: My Apps menu
description: |
Whether the My Apps button shows in the signed-in user's top menu, as chosen under
Personal Settings › Preferences. Contacts with a login and Survey Portal users have no My Apps menu.
- name: Start page
description: |
The page the signed-in user lands on after signing in, and whenever they click Home or the
Expand Down Expand Up @@ -19137,6 +19141,63 @@ paths:
"422":
$ref: '#/components/responses/UnprocessableEntity'

/my_apps_menu:
get:
tags: [My Apps menu]
summary: Get whether My Apps shows in your top menu
description: |
Whether the My Apps button shows in your top menu, as chosen under Personal Settings › Preferences
› Show My Apps in the top menu. Colleagues who joined before this setting existed have it on; new
colleagues start with it off. `offered` is false for Contacts with a login and Survey Portal users,
who have no My Apps menu.
operationId: getMyAppsMenu
security: [{tokenAuth: []}]
responses:
"200":
description: Whether My Apps shows in your top menu
content:
application/json:
schema:
$ref: '#/components/schemas/MyAppsMenu'
example:
offered: true
shown: false
"401":
$ref: '#/components/responses/Unauthorized'
patch:
tags: [My Apps menu]
summary: Show or hide My Apps in your top menu
description: |
Show or hide the My Apps button in your top menu, as Personal Settings › Preferences › Show My Apps
in the top menu does. Saved for you only; it takes effect the next time a page loads in full.
Refused for Contacts with a login and Survey Portal users, who have no My Apps menu.
operationId: updateMyAppsMenu
security: [{tokenAuth: []}]
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [shown]
properties:
shown:
type: boolean
description: true to show My Apps in your top menu, false to hide it
example:
shown: false
responses:
"200":
description: The setting after the change
content:
application/json:
schema:
$ref: '#/components/schemas/MyAppsMenu'
"401":
$ref: '#/components/responses/Unauthorized'
"422":
$ref: '#/components/responses/UnprocessableEntity'

/start_page:
get:
tags: [Start page]
Expand Down Expand Up @@ -22753,6 +22814,16 @@ components:
type: string
nullable: true
description: The finished message, e.g. "12 contacts changed. 3 skipped …"; null until it has finished
MyAppsMenu:
type: object
required: [offered, shown]
properties:
offered:
type: boolean
description: False for Contacts with a login and Survey Portal users, who have no My Apps menu
shown:
type: boolean
description: True while the My Apps button shows in your top menu
StartPage:
type: object
required: [start_page, options]
Expand Down
22 changes: 22 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,7 @@ function buildDocsPage() {
<a href="#focus" class="nav-link"><span class="nav-method method-GET">GET</span>Focus</a>
<a href="#snapshot" class="nav-link"><span class="nav-method method-GET">GET</span>Snapshot</a>
<a href="#start-page" class="nav-link"><span class="nav-method method-GET">GET</span>Start page</a>
<a href="#my-apps-menu" class="nav-link"><span class="nav-method method-GET">GET</span>My Apps menu</a>
<a href="#ratio-sets" class="nav-link"><span class="nav-method method-GET">GET</span>Ratio Sets</a>
<a href="#case-forms" class="nav-link"><span class="nav-method method-GET">GET</span>Case Forms</a>
</div>
Expand Down Expand Up @@ -5575,6 +5576,27 @@ function buildDocsPage() {
</div>
</section>

<!-- My Apps menu -->
<section class="section" id="my-apps-menu">
<div class="section-eyebrow">Navigation</div>
<h2 class="section-title">My Apps menu</h2>
<div class="section-desc">
<p>Whether the <strong>My Apps</strong> button shows in your top menu. You choose it under <strong>Personal Settings › Preferences › Show My Apps in the top menu</strong>. Colleagues who joined before this setting existed have it on; new colleagues start with it off, as the Project Toolbar and sidebar take them to the same places.</p>
<p>Contacts with a login and Survey Portal users have no My Apps menu, so <code>offered</code> is false for them and the setting can't be changed.</p>
</div>
<div class="endpoint-list">
${endpointCard("GET", "/my_apps_menu", "Get whether My Apps shows", true, [], [
{ code: "200", cls: "response-2xx", desc: "<code>{offered, shown}</code>" }
])}
${endpointCard("PATCH", "/my_apps_menu", "Show or hide My Apps", true, [
{ name: "shown", in: "body", type: "boolean", required: true, desc: "<code>true</code> to show My Apps in your top menu, <code>false</code> to hide it" }
], [
{ code: "200", cls: "response-2xx", desc: "<code>{offered, shown}</code>, as GET returns" },
{ code: "422", cls: "response-4xx", desc: "<code>shown</code> is not true or false, or you have no My Apps menu" }
], "Saved for you only. It takes effect the next time a page loads in full.")}
</div>
</section>

<!-- Snapshot -->
<section class="section" id="snapshot">
<div class="section-eyebrow">Today</div>
Expand Down
Loading