codeapp-js 0.3.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI/codeapp.agent.md +105 -0
- package/AI/skills/connections/SKILL.md +47 -0
- package/AI/skills/dataverse/SKILL.md +99 -0
- package/AI/skills/environment-variables/SKILL.md +89 -0
- package/AI/skills/frontend-design/SKILL.md +34 -0
- package/AI/skills/jira/SKILL.md +81 -0
- package/AI/skills/office365-groups/SKILL.md +61 -0
- package/AI/skills/office365-outlook/SKILL.md +52 -0
- package/AI/skills/office365-users/SKILL.md +78 -0
- package/AI/skills/sharepoint/SKILL.md +77 -0
- package/AI/skills/sql/SKILL.md +85 -0
- package/AI/skills/start/SKILL.md +46 -0
- package/AI/skills/teams/SKILL.md +55 -0
- package/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
- package/codeApp/dist/codeapp.js +95 -1792
- package/codeApp/dist/connectors/azureKeyvault.js +459 -0
- package/codeApp/dist/connectors/jira.js +1247 -0
- package/codeApp/dist/connectors/office365groups.js +642 -0
- package/codeApp/dist/connectors/office365users.js +513 -0
- package/codeApp/dist/connectors/outlook.js +1393 -0
- package/codeApp/dist/connectors/sharepoint.js +466 -0
- package/codeApp/dist/connectors/sql.js +149 -0
- package/codeApp/dist/connectors/teams.js +280 -0
- package/codeApp/dist/power-apps-data.js +16 -2
- package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
- package/examples/{kanban → apps/kanban}/dist/environmentVar.js +55 -55
- package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
- package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
- package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
- package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
- package/examples/apps/kanban/dist/office365users.js +451 -0
- package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
- package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
- package/examples/{kanban → apps/kanban}/dist/sharepoint.js +435 -339
- package/examples/{kanban → apps/kanban}/power.config.json +35 -35
- package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
- package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
- package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
- package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
- package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
- package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
- package/examples/{todo/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
- package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
- package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
- package/examples/{outlook Demo2 → apps/solution explorer}/dist/codeapp.js +9 -245
- package/examples/apps/solution explorer/dist/index.html +80 -0
- package/examples/apps/solution explorer/dist/index.js +735 -0
- package/examples/apps/solution explorer/dist/styles.css +571 -0
- package/examples/apps/solution explorer/power.config.json +151 -0
- package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
- package/examples/{todo → apps/todo}/dist/index.html +75 -75
- package/examples/{todo → apps/todo}/dist/index.js +8 -8
- package/examples/{kanban → apps/todo}/dist/power-apps-data.js +2953 -2953
- package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
- package/examples/{todo → apps/todo}/dist/styles.css +691 -691
- package/examples/{todo → apps/todo}/power.config.json +34 -34
- package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
- package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
- package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
- package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
- package/examples/combined demo/dist/codeapp.js +394 -1098
- package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → combined demo/dist/icon-512.png} +0 -0
- package/examples/combined demo/dist/index.html +29 -511
- package/examples/combined demo/dist/index.js +490 -470
- package/examples/combined demo/dist/office365users.js +513 -0
- package/examples/combined demo/dist/outlook.js +1393 -0
- package/examples/combined demo/dist/power-apps-data.js +3079 -3006
- package/examples/combined demo/dist/styles.css +483 -0
- package/examples/combined demo/power.config.json +33 -42
- package/examples/combined demo/src/generated/index.ts +12 -14
- package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
- package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
- package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
- package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
- package/examples/dataverse Demo/dist/codeapp.js +394 -1085
- package/examples/dataverse Demo/dist/icon-512.png +0 -0
- package/examples/dataverse Demo/dist/index.html +146 -54
- package/examples/dataverse Demo/dist/index.js +693 -83
- package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
- package/examples/dataverse Demo/dist/styles.css +528 -0
- package/examples/dataverse Demo/power.config.json +41 -35
- package/examples/dataverse Demo/readme.md +79 -79
- package/examples/groups Demo/dist/codeapp.js +394 -1085
- package/examples/groups Demo/dist/icon-512.png +0 -0
- package/examples/groups Demo/dist/index.html +21 -25
- package/examples/groups Demo/dist/index.js +304 -113
- package/examples/groups Demo/dist/office365groups.js +642 -0
- package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
- package/examples/groups Demo/dist/styles.css +509 -0
- package/examples/groups Demo/power.config.json +25 -25
- package/examples/myProfile/dist/codeapp.js +398 -0
- package/examples/myProfile/dist/index.html +21 -184
- package/examples/myProfile/dist/index.js +324 -141
- package/examples/myProfile/dist/office365users.js +517 -169
- package/examples/myProfile/dist/power-apps-data.js +3080 -2953
- package/examples/myProfile/dist/styles.css +458 -0
- package/examples/myProfile/power.config.json +24 -23
- package/examples/outlook Demo/dist/codeapp.js +394 -1085
- package/examples/outlook Demo/dist/index.html +150 -35
- package/examples/outlook Demo/dist/index.js +516 -170
- package/examples/outlook Demo/dist/outlook.js +1393 -121
- package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
- package/examples/outlook Demo/dist/styles.css +408 -84
- package/examples/outlook Demo/power.config.json +24 -23
- package/examples/outlook Demo/readme.md +92 -82
- package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
- package/examples/sharePoint Demo/dist/icon-512.png +0 -0
- package/examples/sharePoint Demo/dist/index.html +22 -255
- package/examples/sharePoint Demo/dist/index.js +899 -262
- package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
- package/{dev files → examples/sharePoint Demo/dist}/sharepoint.js +239 -112
- package/examples/sharePoint Demo/dist/styles.css +587 -0
- package/examples/sharePoint Demo/power.config.json +23 -22
- package/package.json +1 -1
- package/readme.md +465 -76
- package/.vscode/settings.json +0 -6
- package/dev files/customConnector.js +0 -98
- package/dev files/dataverse.js +0 -120
- package/dev files/environmentVar.js +0 -55
- package/dev files/office365groups.js +0 -65
- package/dev files/office365users.js +0 -169
- package/dev files/outlook.js +0 -330
- package/dev files/power-apps-data.js +0 -2952
- package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
- package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
- package/examples/kanban/agent/decision-log.md +0 -9
- package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
- package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
- package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
- package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
- package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
- package/examples/kanban/dist/office365users.js +0 -169
- package/examples/kanban/src/generated/index.ts +0 -14
- package/examples/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
- package/examples/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
- package/examples/kanban/src/generated/models/Office365UsersModel.ts +0 -254
- package/examples/kanban/src/generated/services/Office365GroupsService.ts +0 -326
- package/examples/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
- package/examples/kanban/src/generated/services/Office365UsersService.ts +0 -358
- package/examples/outlook Demo2/agent/decision-log.md +0 -7
- package/examples/outlook Demo2/dist/index.html +0 -98
- package/examples/outlook Demo2/dist/index.js +0 -272
- package/examples/outlook Demo2/dist/styles.css +0 -639
- package/examples/outlook Demo2/power.config.json +0 -23
- package/examples/planning Poker/.vscode/settings.json +0 -5
- package/examples/sharePoint Demo/agent/decision-log.md +0 -17
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
- /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
- /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
- /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
- /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
- /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
- /package/examples/{todo → apps/todo}/dist/icon192.png +0 -0
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { getClient } from "@microsoft/power-apps/data";
|
|
2
|
-
|
|
3
|
-
// ── All Table Definitions ──────────────────────────────────────
|
|
4
|
-
const ALL_DATA_SOURCES = {
|
|
5
|
-
wd_pokersessions: { tableId: '', version: '', primaryKey: 'wd_pokersessionid', dataSourceType: 'Dataverse', apis: {} },
|
|
6
|
-
wd_pokerparticipants: { tableId: '', version: '', primaryKey: 'wd_pokerparticipantid', dataSourceType: 'Dataverse', apis: {} },
|
|
7
|
-
wd_pokerrounds: { tableId: '', version: '', primaryKey: 'wd_pokerroundid', dataSourceType: 'Dataverse', apis: {} },
|
|
8
|
-
wd_pokervotes: { tableId: '', version: '', primaryKey: 'wd_pokervoteid', dataSourceType: 'Dataverse', apis: {} },
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// ── Initialize SDK & Client ────────────────────────────────────
|
|
12
|
-
let oSharedClient = null;
|
|
13
|
-
|
|
14
|
-
function getSharedClient() {
|
|
15
|
-
if (!oSharedClient) {
|
|
16
|
-
oSharedClient = getClient(ALL_DATA_SOURCES);
|
|
17
|
-
}
|
|
18
|
-
return oSharedClient;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// ── Unwrap SDK response ────────────────────────────────────────
|
|
22
|
-
function unwrapResult(result) {
|
|
23
|
-
if (result && result.success === false) {
|
|
24
|
-
var sMsg = result.error ? (result.error.message || JSON.stringify(result.error)) : 'Operation failed';
|
|
25
|
-
throw new Error(sMsg);
|
|
26
|
-
}
|
|
27
|
-
return result && 'data' in result ? result.data : result;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// ── Create ─────────────────────────────────────────────────────
|
|
31
|
-
export async function createItem(tableName, primaryKey, record) {
|
|
32
|
-
const client = getSharedClient();
|
|
33
|
-
const result = await client.createRecordAsync(tableName, record);
|
|
34
|
-
return unwrapResult(result);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// ── Read (single) ──────────────────────────────────────────────
|
|
38
|
-
export async function getItem(tableName, primaryKey, id, select) {
|
|
39
|
-
const client = getSharedClient();
|
|
40
|
-
const options = select ? { select } : undefined;
|
|
41
|
-
const result = await client.retrieveRecordAsync(tableName, id, options);
|
|
42
|
-
return unwrapResult(result);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// ── List (multiple) ────────────────────────────────────────────
|
|
46
|
-
export async function listItems(tableName, primaryKey, { filter, select, orderBy, top, skip } = {}) {
|
|
47
|
-
const client = getSharedClient();
|
|
48
|
-
const result = await client.retrieveMultipleRecordsAsync(tableName, {
|
|
49
|
-
filter,
|
|
50
|
-
select,
|
|
51
|
-
orderBy,
|
|
52
|
-
top,
|
|
53
|
-
skip,
|
|
54
|
-
});
|
|
55
|
-
var unwrapped = unwrapResult(result);
|
|
56
|
-
return { entities: Array.isArray(unwrapped) ? unwrapped : [] };
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ── Update ─────────────────────────────────────────────────────
|
|
60
|
-
export async function updateItem(tableName, primaryKey, id, changedFields) {
|
|
61
|
-
const client = getSharedClient();
|
|
62
|
-
const result = await client.updateRecordAsync(tableName, id, changedFields);
|
|
63
|
-
return unwrapResult(result);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// ── Delete ─────────────────────────────────────────────────────
|
|
67
|
-
export async function deleteItem(tableName, primaryKey, id) {
|
|
68
|
-
const client = getSharedClient();
|
|
69
|
-
const result = await client.deleteRecordAsync(tableName, id);
|
|
70
|
-
return unwrapResult(result);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ── Unbound Action ─────────────────────────────────────────────
|
|
74
|
-
export async function callUnboundAction(tableName, primaryKey, actionName, params) {
|
|
75
|
-
const client = getSharedClient();
|
|
76
|
-
const result = await client.invokeActionAsync(tableName, actionName, params);
|
|
77
|
-
return unwrapResult(result);
|
|
78
|
-
}
|
|
1
|
+
import { getClient } from "@microsoft/power-apps/data";
|
|
2
|
+
|
|
3
|
+
// ── All Table Definitions ──────────────────────────────────────
|
|
4
|
+
const ALL_DATA_SOURCES = {
|
|
5
|
+
wd_pokersessions: { tableId: '', version: '', primaryKey: 'wd_pokersessionid', dataSourceType: 'Dataverse', apis: {} },
|
|
6
|
+
wd_pokerparticipants: { tableId: '', version: '', primaryKey: 'wd_pokerparticipantid', dataSourceType: 'Dataverse', apis: {} },
|
|
7
|
+
wd_pokerrounds: { tableId: '', version: '', primaryKey: 'wd_pokerroundid', dataSourceType: 'Dataverse', apis: {} },
|
|
8
|
+
wd_pokervotes: { tableId: '', version: '', primaryKey: 'wd_pokervoteid', dataSourceType: 'Dataverse', apis: {} },
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// ── Initialize SDK & Client ────────────────────────────────────
|
|
12
|
+
let oSharedClient = null;
|
|
13
|
+
|
|
14
|
+
function getSharedClient() {
|
|
15
|
+
if (!oSharedClient) {
|
|
16
|
+
oSharedClient = getClient(ALL_DATA_SOURCES);
|
|
17
|
+
}
|
|
18
|
+
return oSharedClient;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ── Unwrap SDK response ────────────────────────────────────────
|
|
22
|
+
function unwrapResult(result) {
|
|
23
|
+
if (result && result.success === false) {
|
|
24
|
+
var sMsg = result.error ? (result.error.message || JSON.stringify(result.error)) : 'Operation failed';
|
|
25
|
+
throw new Error(sMsg);
|
|
26
|
+
}
|
|
27
|
+
return result && 'data' in result ? result.data : result;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// ── Create ─────────────────────────────────────────────────────
|
|
31
|
+
export async function createItem(tableName, primaryKey, record) {
|
|
32
|
+
const client = getSharedClient();
|
|
33
|
+
const result = await client.createRecordAsync(tableName, record);
|
|
34
|
+
return unwrapResult(result);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ── Read (single) ──────────────────────────────────────────────
|
|
38
|
+
export async function getItem(tableName, primaryKey, id, select) {
|
|
39
|
+
const client = getSharedClient();
|
|
40
|
+
const options = select ? { select } : undefined;
|
|
41
|
+
const result = await client.retrieveRecordAsync(tableName, id, options);
|
|
42
|
+
return unwrapResult(result);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// ── List (multiple) ────────────────────────────────────────────
|
|
46
|
+
export async function listItems(tableName, primaryKey, { filter, select, orderBy, top, skip } = {}) {
|
|
47
|
+
const client = getSharedClient();
|
|
48
|
+
const result = await client.retrieveMultipleRecordsAsync(tableName, {
|
|
49
|
+
filter,
|
|
50
|
+
select,
|
|
51
|
+
orderBy,
|
|
52
|
+
top,
|
|
53
|
+
skip,
|
|
54
|
+
});
|
|
55
|
+
var unwrapped = unwrapResult(result);
|
|
56
|
+
return { entities: Array.isArray(unwrapped) ? unwrapped : [] };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ── Update ─────────────────────────────────────────────────────
|
|
60
|
+
export async function updateItem(tableName, primaryKey, id, changedFields) {
|
|
61
|
+
const client = getSharedClient();
|
|
62
|
+
const result = await client.updateRecordAsync(tableName, id, changedFields);
|
|
63
|
+
return unwrapResult(result);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// ── Delete ─────────────────────────────────────────────────────
|
|
67
|
+
export async function deleteItem(tableName, primaryKey, id) {
|
|
68
|
+
const client = getSharedClient();
|
|
69
|
+
const result = await client.deleteRecordAsync(tableName, id);
|
|
70
|
+
return unwrapResult(result);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ── Unbound Action ─────────────────────────────────────────────
|
|
74
|
+
export async function callUnboundAction(tableName, primaryKey, actionName, params) {
|
|
75
|
+
const client = getSharedClient();
|
|
76
|
+
const result = await client.invokeActionAsync(tableName, actionName, params);
|
|
77
|
+
return unwrapResult(result);
|
|
78
|
+
}
|
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
6
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
7
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
8
|
-
<title>Planning Poker</title>
|
|
9
|
-
<script type="importmap">
|
|
10
|
-
{
|
|
11
|
-
"imports": {
|
|
12
|
-
"@microsoft/power-apps/data": "./power-apps-data.js"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
</script>
|
|
16
|
-
<link rel="stylesheet" href="./styles.css" />
|
|
17
|
-
<meta name="theme-color" content="#f5f0e8" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
|
|
21
|
-
<!-- Error Toast -->
|
|
22
|
-
<div class="error-toast" id="error-message" style="display:none"></div>
|
|
23
|
-
|
|
24
|
-
<header class="app-header">
|
|
25
|
-
<div class="brand-block">♠ POKER</div>
|
|
26
|
-
<div class="session-info" id="session-info" style="display:none">
|
|
27
|
-
<span class="session-badge" id="session-badge"></span>
|
|
28
|
-
<span class="session-name-text" id="session-name-text"></span>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="participants-count" id="participants-count" style="display:none">
|
|
31
|
-
<span>●</span> <span id="vote-status">0/0</span>
|
|
32
|
-
</div>
|
|
33
|
-
<button class="btn-brutal btn-brutal-share" id="btn-share" style="display:none" title="Copy invite link">🔗 Share</button>
|
|
34
|
-
<button class="btn-brutal btn-brutal-danger" id="btn-end-session" style="display:none" title="End Session">End Session</button>
|
|
35
|
-
<button class="btn-leave" id="btn-leave" style="display:none" title="Leave Session">✕</button>
|
|
36
|
-
</header>
|
|
37
|
-
|
|
38
|
-
<main class="app-main">
|
|
39
|
-
|
|
40
|
-
<!-- ═══ WELCOME VIEW ═══ -->
|
|
41
|
-
<div id="view-welcome" class="view">
|
|
42
|
-
<div class="welcome-hero">
|
|
43
|
-
<h2>Planning Poker</h2>
|
|
44
|
-
<p>Create a new estimation session or join an existing one</p>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<div class="welcome-grid">
|
|
48
|
-
<!-- Create Session -->
|
|
49
|
-
<div class="panel">
|
|
50
|
-
<h3 class="panel-title">Create Session</h3>
|
|
51
|
-
<div class="form-group">
|
|
52
|
-
<label for="inp-session-name">Session Name</label>
|
|
53
|
-
<input id="inp-session-name" type="text" placeholder="Sprint 42 Planning" />
|
|
54
|
-
</div>
|
|
55
|
-
<div class="form-group">
|
|
56
|
-
<label for="inp-session-code">Session Code</label>
|
|
57
|
-
<input id="inp-session-code" type="text" placeholder="XK7-M2P" maxlength="10" />
|
|
58
|
-
</div>
|
|
59
|
-
<div class="form-group">
|
|
60
|
-
<label for="inp-create-name">Your Name</label>
|
|
61
|
-
<input id="inp-create-name" type="text" placeholder="Sarah Mitchell" />
|
|
62
|
-
</div>
|
|
63
|
-
<button class="btn-brutal btn-brutal-primary" id="btn-create">
|
|
64
|
-
♠ Create Session
|
|
65
|
-
</button>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<!-- Join Session -->
|
|
69
|
-
<div class="panel">
|
|
70
|
-
<h3 class="panel-title">Join Session</h3>
|
|
71
|
-
<div class="form-group">
|
|
72
|
-
<label for="inp-join-code">Session Code</label>
|
|
73
|
-
<input id="inp-join-code" type="text" placeholder="Enter code" maxlength="10" />
|
|
74
|
-
</div>
|
|
75
|
-
<div class="form-group">
|
|
76
|
-
<label for="inp-join-name">Your Name</label>
|
|
77
|
-
<input id="inp-join-name" type="text" placeholder="Your display name" />
|
|
78
|
-
</div>
|
|
79
|
-
<button class="btn-brutal btn-brutal-primary" id="btn-join">
|
|
80
|
-
Join Session
|
|
81
|
-
</button>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<!-- Previous Rounds Table -->
|
|
86
|
-
<div class="panel previous-rounds-panel" id="previous-rounds-panel" style="display:none">
|
|
87
|
-
<h3 class="panel-title">Previous Rounds</h3>
|
|
88
|
-
<div class="previous-rounds-table-wrap">
|
|
89
|
-
<table class="previous-rounds-table" id="previous-rounds-table">
|
|
90
|
-
<thead>
|
|
91
|
-
<tr>
|
|
92
|
-
<th>Session <button class="sort-btn" data-col="session" data-dir="">▲▼</button></th>
|
|
93
|
-
<th>Round Name <button class="sort-btn" data-col="roundName" data-dir="">▲▼</button></th>
|
|
94
|
-
<th>Description <button class="sort-btn" data-col="description" data-dir="">▲▼</button></th>
|
|
95
|
-
<th>Avg Pts <button class="sort-btn" data-col="average" data-dir="">▲▼</button></th>
|
|
96
|
-
<th>Median Pts <button class="sort-btn" data-col="median" data-dir="">▲▼</button></th>
|
|
97
|
-
</tr>
|
|
98
|
-
</thead>
|
|
99
|
-
<tbody id="previous-rounds-body"></tbody>
|
|
100
|
-
</table>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<!-- ═══ SESSION VIEW ═══ -->
|
|
106
|
-
<div id="view-session" class="view" style="display:none">
|
|
107
|
-
|
|
108
|
-
<!-- Owner: Start New Round -->
|
|
109
|
-
<div id="new-round-panel" class="panel" style="display:none">
|
|
110
|
-
<h3 class="panel-title">Start New Round</h3>
|
|
111
|
-
<div class="form-row">
|
|
112
|
-
<div class="form-group">
|
|
113
|
-
<label for="inp-round-id">Round ID</label>
|
|
114
|
-
<input id="inp-round-id" type="text" placeholder="JIRA-123" />
|
|
115
|
-
</div>
|
|
116
|
-
<div class="form-group form-group-grow">
|
|
117
|
-
<label for="inp-round-desc">Description</label>
|
|
118
|
-
<input id="inp-round-desc" type="text" placeholder="Story description" />
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<button class="btn-brutal btn-brutal-primary" id="btn-start-round">
|
|
122
|
-
Start Round
|
|
123
|
-
</button>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<!-- Non-owner: Waiting -->
|
|
127
|
-
<div id="waiting-panel" class="panel" style="display:none">
|
|
128
|
-
<div class="waiting-message">
|
|
129
|
-
<span class="waiting-icon">⏳</span>
|
|
130
|
-
<h3>Waiting for Next Round</h3>
|
|
131
|
-
<p>The session owner will start the next voting round</p>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<!-- Participants (always visible in session) -->
|
|
136
|
-
<div class="participants-strip" id="participants-strip"></div>
|
|
137
|
-
|
|
138
|
-
<!-- Active Round -->
|
|
139
|
-
<div id="active-round-panel" style="display:none">
|
|
140
|
-
<div class="story-panel">
|
|
141
|
-
<h2><span class="story-badge" id="round-badge"></span> <span id="round-title"></span></h2>
|
|
142
|
-
<p id="round-description"></p>
|
|
143
|
-
</div>
|
|
144
|
-
|
|
145
|
-
<!-- Card Hand -->
|
|
146
|
-
<div class="card-hand-section" id="card-section">
|
|
147
|
-
<div class="card-hand-label">Select Your Estimate</div>
|
|
148
|
-
<div class="card-hand" id="card-hand"></div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
<!-- Actions -->
|
|
152
|
-
<div class="vote-actions" id="vote-actions">
|
|
153
|
-
<button class="btn-brutal btn-brutal-primary" id="btn-submit" disabled>Submit Vote</button>
|
|
154
|
-
<button class="btn-brutal btn-brutal-secondary" id="btn-reveal" style="display:none">Reveal Cards</button>
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<!-- Voted confirmation -->
|
|
158
|
-
<div class="voted-message" id="voted-message" style="display:none">
|
|
159
|
-
<span>✓</span> Vote submitted — waiting for others
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
|
|
164
|
-
<!-- ═══ RESULTS VIEW ═══ -->
|
|
165
|
-
<div id="view-results" class="view" style="display:none">
|
|
166
|
-
<div class="results-header">
|
|
167
|
-
<span class="story-badge" id="results-badge"></span>
|
|
168
|
-
<h2 id="results-title"></h2>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<div class="stats-row">
|
|
172
|
-
<div class="stat-card">
|
|
173
|
-
<span class="stat-value" id="stat-average">—</span>
|
|
174
|
-
<span class="stat-label">Average</span>
|
|
175
|
-
</div>
|
|
176
|
-
<div class="stat-card">
|
|
177
|
-
<span class="stat-value" id="stat-median">—</span>
|
|
178
|
-
<span class="stat-label">Median</span>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<div class="votes-grid" id="votes-grid"></div>
|
|
183
|
-
|
|
184
|
-
<div class="vote-actions">
|
|
185
|
-
<button class="btn-brutal btn-brutal-primary" id="btn-new-round" style="display:none">New Round</button>
|
|
186
|
-
<div class="btn-brutal btn-brutal-secondary btn-disabled" id="btn-waiting-next" style="display:none">Waiting for Next Round…</div>
|
|
187
|
-
</div>
|
|
188
|
-
</div>
|
|
189
|
-
|
|
190
|
-
</main>
|
|
191
|
-
|
|
192
|
-
<footer class="app-footer">
|
|
193
|
-
<span id="footer-info">Planning Poker — Agile Estimation Tool</span>
|
|
194
|
-
</footer>
|
|
195
|
-
|
|
196
|
-
<script src="./index.js" type="module"></script>
|
|
197
|
-
</body>
|
|
198
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
6
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
7
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
8
|
+
<title>Planning Poker</title>
|
|
9
|
+
<script type="importmap">
|
|
10
|
+
{
|
|
11
|
+
"imports": {
|
|
12
|
+
"@microsoft/power-apps/data": "./power-apps-data.js"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
<link rel="stylesheet" href="./styles.css" />
|
|
17
|
+
<meta name="theme-color" content="#f5f0e8" />
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
|
|
21
|
+
<!-- Error Toast -->
|
|
22
|
+
<div class="error-toast" id="error-message" style="display:none"></div>
|
|
23
|
+
|
|
24
|
+
<header class="app-header">
|
|
25
|
+
<div class="brand-block">♠ POKER</div>
|
|
26
|
+
<div class="session-info" id="session-info" style="display:none">
|
|
27
|
+
<span class="session-badge" id="session-badge"></span>
|
|
28
|
+
<span class="session-name-text" id="session-name-text"></span>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="participants-count" id="participants-count" style="display:none">
|
|
31
|
+
<span>●</span> <span id="vote-status">0/0</span>
|
|
32
|
+
</div>
|
|
33
|
+
<button class="btn-brutal btn-brutal-share" id="btn-share" style="display:none" title="Copy invite link">🔗 Share</button>
|
|
34
|
+
<button class="btn-brutal btn-brutal-danger" id="btn-end-session" style="display:none" title="End Session">End Session</button>
|
|
35
|
+
<button class="btn-leave" id="btn-leave" style="display:none" title="Leave Session">✕</button>
|
|
36
|
+
</header>
|
|
37
|
+
|
|
38
|
+
<main class="app-main">
|
|
39
|
+
|
|
40
|
+
<!-- ═══ WELCOME VIEW ═══ -->
|
|
41
|
+
<div id="view-welcome" class="view">
|
|
42
|
+
<div class="welcome-hero">
|
|
43
|
+
<h2>Planning Poker</h2>
|
|
44
|
+
<p>Create a new estimation session or join an existing one</p>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="welcome-grid">
|
|
48
|
+
<!-- Create Session -->
|
|
49
|
+
<div class="panel">
|
|
50
|
+
<h3 class="panel-title">Create Session</h3>
|
|
51
|
+
<div class="form-group">
|
|
52
|
+
<label for="inp-session-name">Session Name</label>
|
|
53
|
+
<input id="inp-session-name" type="text" placeholder="Sprint 42 Planning" />
|
|
54
|
+
</div>
|
|
55
|
+
<div class="form-group">
|
|
56
|
+
<label for="inp-session-code">Session Code</label>
|
|
57
|
+
<input id="inp-session-code" type="text" placeholder="XK7-M2P" maxlength="10" />
|
|
58
|
+
</div>
|
|
59
|
+
<div class="form-group">
|
|
60
|
+
<label for="inp-create-name">Your Name</label>
|
|
61
|
+
<input id="inp-create-name" type="text" placeholder="Sarah Mitchell" />
|
|
62
|
+
</div>
|
|
63
|
+
<button class="btn-brutal btn-brutal-primary" id="btn-create">
|
|
64
|
+
♠ Create Session
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<!-- Join Session -->
|
|
69
|
+
<div class="panel">
|
|
70
|
+
<h3 class="panel-title">Join Session</h3>
|
|
71
|
+
<div class="form-group">
|
|
72
|
+
<label for="inp-join-code">Session Code</label>
|
|
73
|
+
<input id="inp-join-code" type="text" placeholder="Enter code" maxlength="10" />
|
|
74
|
+
</div>
|
|
75
|
+
<div class="form-group">
|
|
76
|
+
<label for="inp-join-name">Your Name</label>
|
|
77
|
+
<input id="inp-join-name" type="text" placeholder="Your display name" />
|
|
78
|
+
</div>
|
|
79
|
+
<button class="btn-brutal btn-brutal-primary" id="btn-join">
|
|
80
|
+
Join Session
|
|
81
|
+
</button>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<!-- Previous Rounds Table -->
|
|
86
|
+
<div class="panel previous-rounds-panel" id="previous-rounds-panel" style="display:none">
|
|
87
|
+
<h3 class="panel-title">Previous Rounds</h3>
|
|
88
|
+
<div class="previous-rounds-table-wrap">
|
|
89
|
+
<table class="previous-rounds-table" id="previous-rounds-table">
|
|
90
|
+
<thead>
|
|
91
|
+
<tr>
|
|
92
|
+
<th>Session <button class="sort-btn" data-col="session" data-dir="">▲▼</button></th>
|
|
93
|
+
<th>Round Name <button class="sort-btn" data-col="roundName" data-dir="">▲▼</button></th>
|
|
94
|
+
<th>Description <button class="sort-btn" data-col="description" data-dir="">▲▼</button></th>
|
|
95
|
+
<th>Avg Pts <button class="sort-btn" data-col="average" data-dir="">▲▼</button></th>
|
|
96
|
+
<th>Median Pts <button class="sort-btn" data-col="median" data-dir="">▲▼</button></th>
|
|
97
|
+
</tr>
|
|
98
|
+
</thead>
|
|
99
|
+
<tbody id="previous-rounds-body"></tbody>
|
|
100
|
+
</table>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<!-- ═══ SESSION VIEW ═══ -->
|
|
106
|
+
<div id="view-session" class="view" style="display:none">
|
|
107
|
+
|
|
108
|
+
<!-- Owner: Start New Round -->
|
|
109
|
+
<div id="new-round-panel" class="panel" style="display:none">
|
|
110
|
+
<h3 class="panel-title">Start New Round</h3>
|
|
111
|
+
<div class="form-row">
|
|
112
|
+
<div class="form-group">
|
|
113
|
+
<label for="inp-round-id">Round ID</label>
|
|
114
|
+
<input id="inp-round-id" type="text" placeholder="JIRA-123" />
|
|
115
|
+
</div>
|
|
116
|
+
<div class="form-group form-group-grow">
|
|
117
|
+
<label for="inp-round-desc">Description</label>
|
|
118
|
+
<input id="inp-round-desc" type="text" placeholder="Story description" />
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<button class="btn-brutal btn-brutal-primary" id="btn-start-round">
|
|
122
|
+
Start Round
|
|
123
|
+
</button>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<!-- Non-owner: Waiting -->
|
|
127
|
+
<div id="waiting-panel" class="panel" style="display:none">
|
|
128
|
+
<div class="waiting-message">
|
|
129
|
+
<span class="waiting-icon">⏳</span>
|
|
130
|
+
<h3>Waiting for Next Round</h3>
|
|
131
|
+
<p>The session owner will start the next voting round</p>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<!-- Participants (always visible in session) -->
|
|
136
|
+
<div class="participants-strip" id="participants-strip"></div>
|
|
137
|
+
|
|
138
|
+
<!-- Active Round -->
|
|
139
|
+
<div id="active-round-panel" style="display:none">
|
|
140
|
+
<div class="story-panel">
|
|
141
|
+
<h2><span class="story-badge" id="round-badge"></span> <span id="round-title"></span></h2>
|
|
142
|
+
<p id="round-description"></p>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<!-- Card Hand -->
|
|
146
|
+
<div class="card-hand-section" id="card-section">
|
|
147
|
+
<div class="card-hand-label">Select Your Estimate</div>
|
|
148
|
+
<div class="card-hand" id="card-hand"></div>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<!-- Actions -->
|
|
152
|
+
<div class="vote-actions" id="vote-actions">
|
|
153
|
+
<button class="btn-brutal btn-brutal-primary" id="btn-submit" disabled>Submit Vote</button>
|
|
154
|
+
<button class="btn-brutal btn-brutal-secondary" id="btn-reveal" style="display:none">Reveal Cards</button>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<!-- Voted confirmation -->
|
|
158
|
+
<div class="voted-message" id="voted-message" style="display:none">
|
|
159
|
+
<span>✓</span> Vote submitted — waiting for others
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<!-- ═══ RESULTS VIEW ═══ -->
|
|
165
|
+
<div id="view-results" class="view" style="display:none">
|
|
166
|
+
<div class="results-header">
|
|
167
|
+
<span class="story-badge" id="results-badge"></span>
|
|
168
|
+
<h2 id="results-title"></h2>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<div class="stats-row">
|
|
172
|
+
<div class="stat-card">
|
|
173
|
+
<span class="stat-value" id="stat-average">—</span>
|
|
174
|
+
<span class="stat-label">Average</span>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="stat-card">
|
|
177
|
+
<span class="stat-value" id="stat-median">—</span>
|
|
178
|
+
<span class="stat-label">Median</span>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
<div class="votes-grid" id="votes-grid"></div>
|
|
183
|
+
|
|
184
|
+
<div class="vote-actions">
|
|
185
|
+
<button class="btn-brutal btn-brutal-primary" id="btn-new-round" style="display:none">New Round</button>
|
|
186
|
+
<div class="btn-brutal btn-brutal-secondary btn-disabled" id="btn-waiting-next" style="display:none">Waiting for Next Round…</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
</main>
|
|
191
|
+
|
|
192
|
+
<footer class="app-footer">
|
|
193
|
+
<span id="footer-info">Planning Poker — Agile Estimation Tool</span>
|
|
194
|
+
</footer>
|
|
195
|
+
|
|
196
|
+
<script src="./index.js" type="module"></script>
|
|
197
|
+
</body>
|
|
198
|
+
</html>
|