codeapp-js 1.0.1 → 1.1.0

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.
Files changed (130) hide show
  1. package/AI/skills/autoreview/SKILL.md +69 -0
  2. package/AI/skills/connections/SKILL.md +4 -4
  3. package/AI/skills/dataverse/SKILL.md +4 -2
  4. package/AI/skills/frontend-design/SKILL.md +32 -20
  5. package/AI/skills/keyvault/SKILL.md +139 -0
  6. package/AI/skills/office365-groups/SKILL.md +46 -25
  7. package/AI/skills/office365-outlook/SKILL.md +56 -25
  8. package/AI/skills/office365-users/SKILL.md +41 -36
  9. package/AI/skills/sharepoint/SKILL.md +174 -31
  10. package/AI/skills/start/SKILL.md +38 -30
  11. package/codeApp/dist/connectors/autoreview.js +1654 -0
  12. package/codeApp/dist/connectors/office365groups.js +2995 -432
  13. package/{examples/outlook Demo/.power/schemas/office365/office365.Schema.json → codeApp/dist/connectors/office365outlook.js} +7439 -16
  14. package/codeApp/dist/connectors/office365users.js +2990 -349
  15. package/codeApp/dist/connectors/sharepoint.js +529 -308
  16. package/examples/combined demo/dist/connectors/office365outlook.js +28521 -0
  17. package/examples/combined demo/dist/connectors/office365users.js +3154 -0
  18. package/examples/combined demo/dist/index.js +2 -6
  19. package/examples/combined demo/power.config.json +1 -1
  20. package/examples/groups Demo/{.power/schemas/office365groups/office365groups.Schema.json → dist/connectors/office365groups.js } +3205 -2204
  21. package/examples/groups Demo/dist/index.js +1 -5
  22. package/examples/groups Demo/power.config.json +1 -1
  23. package/examples/myProfile/dist/connectors/office365users.js +3154 -0
  24. package/examples/myProfile/dist/index.js +1 -5
  25. package/examples/myProfile/power.config.json +1 -1
  26. package/examples/outlook Demo/dist/connectors/office365outlook.js +28521 -0
  27. package/examples/outlook Demo/dist/index.js +2 -5
  28. package/examples/outlook Demo/power.config.json +1 -1
  29. package/examples/sharePoint Demo/dist/connectors/sharepoint.js +687 -0
  30. package/examples/sharePoint Demo/dist/index.js +86 -127
  31. package/examples/sharePoint Demo/power.config.json +1 -1
  32. package/package.json +1 -1
  33. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  34. package/codeApp/.power/schemas/jira/jira.Schema.json +0 -6903
  35. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  36. package/codeApp/.power/schemas/office365groups/office365groups.Schema.json +0 -2204
  37. package/codeApp/.power/schemas/teams/teams.Schema.json +0 -11112
  38. package/codeApp/dist/connectors/outlook.js +0 -1393
  39. package/codeApp/src/generated/index.ts +0 -12
  40. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +0 -107
  41. package/codeApp/src/generated/models/JiraModel.ts +0 -501
  42. package/codeApp/src/generated/models/Office365GroupsModel.ts +0 -363
  43. package/codeApp/src/generated/models/Office365OutlookModel.ts +0 -2046
  44. package/codeApp/src/generated/models/Office365UsersModel.ts +0 -254
  45. package/codeApp/src/generated/services/AzureKeyVaultService.ts +0 -257
  46. package/codeApp/src/generated/services/JiraService.ts +0 -1124
  47. package/codeApp/src/generated/services/Office365GroupsService.ts +0 -326
  48. package/codeApp/src/generated/services/Office365OutlookService.ts +0 -2476
  49. package/codeApp/src/generated/services/Office365UsersService.ts +0 -358
  50. package/examples/apps/kanban/dist/dataverse.js +0 -94
  51. package/examples/apps/kanban/dist/environmentVar.js +0 -55
  52. package/examples/apps/kanban/dist/index.css +0 -605
  53. package/examples/apps/kanban/dist/index.html +0 -21
  54. package/examples/apps/kanban/dist/index.js +0 -860
  55. package/examples/apps/kanban/dist/office365groups.js +0 -97
  56. package/examples/apps/kanban/dist/office365users.js +0 -451
  57. package/examples/apps/kanban/dist/outlook.js +0 -162
  58. package/examples/apps/kanban/dist/power-apps-data.js +0 -2953
  59. package/examples/apps/kanban/dist/sharepoint.js +0 -435
  60. package/examples/apps/kanban/power.config.json +0 -35
  61. package/examples/apps/kanban/src/generated/index.ts +0 -14
  62. package/examples/apps/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  63. package/examples/apps/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  64. package/examples/apps/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  65. package/examples/apps/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  66. package/examples/apps/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  67. package/examples/apps/kanban/src/generated/services/Office365UsersService.ts +0 -358
  68. package/examples/apps/planning Poker/additional files/AgilePoker_1_0_0_1.zip +0 -0
  69. package/examples/apps/planning Poker/additional files/PokerTables_1_0_0_1.zip +0 -0
  70. package/examples/apps/planning Poker/additional files/customizations (tables).xml +0 -6429
  71. package/examples/apps/planning Poker/additional files/dataverse-tables.json +0 -165
  72. package/examples/apps/planning Poker/additional files/readme.md +0 -122
  73. package/examples/apps/planning Poker/dist/dataverse.js +0 -78
  74. package/examples/apps/planning Poker/dist/index.html +0 -198
  75. package/examples/apps/planning Poker/dist/index.js +0 -955
  76. package/examples/apps/planning Poker/dist/power-apps-data.js +0 -2953
  77. package/examples/apps/planning Poker/dist/styles.css +0 -815
  78. package/examples/apps/planning Poker/power.config.json +0 -50
  79. package/examples/apps/solution explorer/dist/codeapp.js +0 -1098
  80. package/examples/apps/solution explorer/dist/icon-512.png +0 -0
  81. package/examples/apps/solution explorer/dist/index.html +0 -80
  82. package/examples/apps/solution explorer/dist/index.js +0 -735
  83. package/examples/apps/solution explorer/dist/power-apps-data.js +0 -3007
  84. package/examples/apps/solution explorer/dist/styles.css +0 -571
  85. package/examples/apps/solution explorer/power.config.json +0 -151
  86. package/examples/apps/todo/dist/dataverse.js +0 -64
  87. package/examples/apps/todo/dist/icon192.png +0 -0
  88. package/examples/apps/todo/dist/index.html +0 -75
  89. package/examples/apps/todo/dist/index.js +0 -9
  90. package/examples/apps/todo/dist/power-apps-data.js +0 -2953
  91. package/examples/apps/todo/dist/renderer.js +0 -375
  92. package/examples/apps/todo/dist/styles.css +0 -691
  93. package/examples/apps/todo/power.config.json +0 -35
  94. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  95. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +0 -6903
  96. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  97. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +0 -11112
  98. package/examples/combined demo/dist/office365users.js +0 -513
  99. package/examples/combined demo/dist/outlook.js +0 -1393
  100. package/examples/combined demo/src/generated/index.ts +0 -12
  101. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +0 -107
  102. package/examples/combined demo/src/generated/models/JiraModel.ts +0 -501
  103. package/examples/combined demo/src/generated/models/Office365GroupsModel.ts +0 -363
  104. package/examples/combined demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  105. package/examples/combined demo/src/generated/models/Office365UsersModel.ts +0 -254
  106. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +0 -257
  107. package/examples/combined demo/src/generated/services/JiraService.ts +0 -1124
  108. package/examples/combined demo/src/generated/services/Office365GroupsService.ts +0 -326
  109. package/examples/combined demo/src/generated/services/Office365OutlookService.ts +0 -2476
  110. package/examples/combined demo/src/generated/services/Office365UsersService.ts +0 -358
  111. package/examples/groups Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -613
  112. package/examples/groups Demo/dist/office365groups.js +0 -642
  113. package/examples/groups Demo/src/generated/index.ts +0 -10
  114. package/examples/groups Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  115. package/examples/groups Demo/src/generated/services/Office365GroupsService.ts +0 -326
  116. package/examples/myProfile/dist/office365users.js +0 -517
  117. package/examples/outlook Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6512
  118. package/examples/outlook Demo/dist/outlook.js +0 -1393
  119. package/examples/outlook Demo/src/generated/index.ts +0 -10
  120. package/examples/outlook Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  121. package/examples/outlook Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  122. package/examples/sharePoint Demo/dist/sharepoint.js +0 -466
  123. package/examples/sharePoint Demo/src/generated/index.ts +0 -14
  124. package/examples/sharePoint Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  125. package/examples/sharePoint Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  126. package/examples/sharePoint Demo/src/generated/models/Office365UsersModel.ts +0 -254
  127. package/examples/sharePoint Demo/src/generated/services/Office365GroupsService.ts +0 -326
  128. package/examples/sharePoint Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  129. package/examples/sharePoint Demo/src/generated/services/Office365UsersService.ts +0 -358
  130. package/readme.md +0 -590
@@ -1,165 +0,0 @@
1
- {
2
- "description": "Dataverse table definitions for the Planning Poker app. Use this file to recreate tables in new environments.",
3
- "publisher_prefix": "wd",
4
- "tables": [
5
- {
6
- "logicalName": "wd_pokersession",
7
- "displayName": "Poker Session",
8
- "pluralName": "Poker Sessions",
9
- "entitySetName": "wd_pokersessions",
10
- "primaryKey": "wd_pokersessionid",
11
- "columns": [
12
- {
13
- "logicalName": "wd_name",
14
- "displayName": "Name",
15
- "type": "String",
16
- "maxLength": 100,
17
- "required": true,
18
- "description": "Session name"
19
- },
20
- {
21
- "logicalName": "wd_sessioncode",
22
- "displayName": "Session Code",
23
- "type": "String",
24
- "maxLength": 20,
25
- "required": true,
26
- "description": "Short code used by participants to join the session"
27
- },
28
- {
29
- "logicalName": "wd_isactive",
30
- "displayName": "Is Active",
31
- "type": "Boolean",
32
- "required": true,
33
- "description": "Whether the session is currently active"
34
- }
35
- ]
36
- },
37
- {
38
- "logicalName": "wd_pokerparticipant",
39
- "displayName": "Poker Participant",
40
- "pluralName": "Poker Participants",
41
- "entitySetName": "wd_pokerparticipants",
42
- "primaryKey": "wd_pokerparticipantid",
43
- "columns": [
44
- {
45
- "logicalName": "wd_newcolumn",
46
- "displayName": "Display Name",
47
- "type": "String",
48
- "maxLength": 100,
49
- "required": true,
50
- "description": "Participant display name"
51
- },
52
- {
53
- "logicalName": "wd_initials",
54
- "displayName": "Initials",
55
- "type": "String",
56
- "maxLength": 5,
57
- "required": false,
58
- "description": "Participant initials (e.g. 'JD' for John Doe)"
59
- },
60
- {
61
- "logicalName": "wd_session",
62
- "displayName": "Session",
63
- "type": "Lookup",
64
- "referencedTable": "wd_pokersession",
65
- "required": true,
66
- "description": "The session this participant belongs to"
67
- }
68
- ]
69
- },
70
- {
71
- "logicalName": "wd_pokerround",
72
- "displayName": "Poker Round",
73
- "pluralName": "Poker Rounds",
74
- "entitySetName": "wd_pokerrounds",
75
- "primaryKey": "wd_pokerroundid",
76
- "columns": [
77
- {
78
- "logicalName": "wd_roundidentifier",
79
- "displayName": "Round Identifier",
80
- "type": "String",
81
- "maxLength": 100,
82
- "required": true,
83
- "description": "Short identifier for the round (e.g. story ID)"
84
- },
85
- {
86
- "logicalName": "wd_description",
87
- "displayName": "Description",
88
- "type": "String",
89
- "maxLength": 2000,
90
- "required": false,
91
- "description": "Description of the item being estimated"
92
- },
93
- {
94
- "logicalName": "wd_newcolumn",
95
- "displayName": "Status",
96
- "type": "String",
97
- "maxLength": 10,
98
- "required": true,
99
- "description": "Round status: '0' = voting in progress, '1' = votes revealed"
100
- },
101
- {
102
- "logicalName": "wd_averagescore",
103
- "displayName": "Average Score",
104
- "type": "Decimal",
105
- "required": false,
106
- "description": "Calculated average of all numeric votes"
107
- },
108
- {
109
- "logicalName": "wd_medianscore",
110
- "displayName": "Median Score",
111
- "type": "Decimal",
112
- "required": false,
113
- "description": "Calculated median of all numeric votes"
114
- },
115
- {
116
- "logicalName": "wd_session",
117
- "displayName": "Session",
118
- "type": "Lookup",
119
- "referencedTable": "wd_pokersession",
120
- "required": true,
121
- "description": "The session this round belongs to"
122
- }
123
- ]
124
- },
125
- {
126
- "logicalName": "wd_pokervote",
127
- "displayName": "Poker Vote",
128
- "pluralName": "Poker Votes",
129
- "entitySetName": "wd_pokervotes",
130
- "primaryKey": "wd_pokervoteid",
131
- "columns": [
132
- {
133
- "logicalName": "wd_score",
134
- "displayName": "Score",
135
- "type": "String",
136
- "maxLength": 20,
137
- "required": true,
138
- "description": "The voted value (e.g. '0','1','2','3','5','8','13','21','34','?','coffee','infinity')"
139
- },
140
- {
141
- "logicalName": "wd_round",
142
- "displayName": "Round",
143
- "type": "Lookup",
144
- "referencedTable": "wd_pokerround",
145
- "required": true,
146
- "description": "The round this vote belongs to"
147
- },
148
- {
149
- "logicalName": "wd_participant",
150
- "displayName": "Participant",
151
- "type": "Lookup",
152
- "referencedTable": "wd_pokerparticipant",
153
- "required": true,
154
- "description": "The participant who cast this vote"
155
- }
156
- ]
157
- }
158
- ],
159
- "relationships_summary": [
160
- "wd_pokersession 1─── N wd_pokerparticipant (via wd_session lookup)",
161
- "wd_pokersession 1─── N wd_pokerround (via wd_session lookup)",
162
- "wd_pokerround 1─── N wd_pokervote (via wd_round lookup)",
163
- "wd_pokerparticipant 1─── N wd_pokervote (via wd_participant lookup)"
164
- ]
165
- }
@@ -1,122 +0,0 @@
1
- # Planning Poker — Power Apps Code-First App
2
-
3
- An agile planning poker app for sprint estimation sessions with team collaboration, built as a Power Apps code-first app with Dataverse backend.
4
-
5
- ---
6
-
7
- ## Prerequisites
8
-
9
- - A Power Platform environment with Dataverse enabled
10
- - A Power Platform environment with Code Apps enabled
11
- - VS Code
12
- - Recommend Copilot
13
-
14
- ---
15
-
16
- ## 1. Install Power Platform CLI
17
-
18
- Install the PAC CLI via npm:
19
-
20
- ```bash
21
- npm install -g microsoft.powerapps.cli
22
- ```
23
-
24
- Or install through the [Power Platform Tools VS Code extension](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.powerplatform-vscode).
25
-
26
- Verify the install:
27
-
28
- ```bash
29
- pac --version
30
- ```
31
-
32
- ---
33
-
34
- ## 2. Authenticate and Select Environment
35
-
36
- Create an auth profile and connect to your environment:
37
-
38
- ```bash
39
- # Authenticate (opens browser for interactive login)
40
- pac auth create --environment https://<yourorg>.crm.dynamics.com
41
-
42
- # List auth profiles
43
- pac auth list
44
-
45
- # Select an existing profile (if you have multiple)
46
- pac auth select --index <profile-index>
47
-
48
- # Confirm you are connected to the correct environment
49
- pac env who
50
- ```
51
-
52
- Replace `<yourorg>` with your Dataverse org name.
53
-
54
- ---
55
-
56
- ## 3. Add the Dataverse Skill Files to VS Code
57
-
58
- This repo includes two skill files that give Copilot the knowledge to set up Dataverse solutions and build code-first apps:
59
-
60
- 1. Copy the `Skills/dataverseSolutionSetup/SKILL.md` file to your VS Code Copilot skills directory:
61
- ```
62
- ~/.copilot/skills/dataverseSolutionSetup/SKILL.md
63
- ```
64
- 2. Copy the `Skills/dataverseCodeApp/SKILL.md` file to:
65
- ```
66
- ~/.copilot/skills/dataverseCodeApp/SKILL.md
67
- ```
68
-
69
- Once in place, Copilot will automatically use these skills when you ask it to create Dataverse solutions, tables, or code-first app connections.
70
-
71
- ---
72
-
73
- ## 4. Create Publisher, Solution, and Tables with Copilot
74
-
75
- Use the following prompt in VS Code Copilot chat to scaffold the Dataverse backend. Reference the `dataverse-tables.json` file so Copilot knows exactly which tables, columns, and relationships to create:
76
-
77
- > **Prompt:**
78
- > Using the dataverseSolutionSetup skill and the `dataverse-tables.json` file in this folder, create a new Dataverse publisher with prefix `wd`, a solution called `PlanningPoker`, and all the tables, columns, and lookup relationships defined in `dataverse-tables.json`. Provide the full PAC CLI and Web API PowerShell commands to run.
79
-
80
- Copilot will generate the step-by-step PowerShell commands to:
81
-
82
- - Create the publisher and solution
83
- - Create the four tables: **Poker Session**, **Poker Participant**, **Poker Round**, **Poker Vote**
84
- - Create all columns and lookup relationships
85
- - Add components to the solution and publish
86
-
87
- ---
88
-
89
- ## 5. Deploy the App
90
-
91
- Update the power.config.json file with the target environments id (it should be the same environment you have used in cli auth)
92
- Once the Dataverse tables are created and your app code is ready, push the app to your environment:
93
-
94
- ```bash
95
- pac code push --solutionName PlanningPoker
96
- ```
97
-
98
- This packages the build output from `./dist` and deploys it as a code component inside the specified solution.
99
-
100
- ---
101
-
102
- ## Dataverse Schema Overview
103
-
104
- The app uses four custom tables (prefix `wd_`):
105
-
106
- | Table | Description |
107
- |---|---|
108
- | **Poker Session** | A planning session that participants join via a session code |
109
- | **Poker Participant** | A person who has joined a session |
110
- | **Poker Round** | A single estimation item within a session |
111
- | **Poker Vote** | A participant's vote on a round |
112
-
113
- **Relationships:**
114
-
115
- ```
116
- wd_pokersession 1───N wd_pokerparticipant (via wd_session lookup)
117
- wd_pokersession 1───N wd_pokerround (via wd_session lookup)
118
- wd_pokerround 1───N wd_pokervote (via wd_round lookup)
119
- wd_pokerparticipant 1───N wd_pokervote (via wd_participant lookup)
120
- ```
121
-
122
- See `dataverse-tables.json` for the full column and relationship definitions.
@@ -1,78 +0,0 @@
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 +0,0 @@
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">&#9824; 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>&#9679;</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">&#128279; 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">&#10005;</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
- &#9824; 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="">&#9650;&#9660;</button></th>
93
- <th>Round Name <button class="sort-btn" data-col="roundName" data-dir="">&#9650;&#9660;</button></th>
94
- <th>Description <button class="sort-btn" data-col="description" data-dir="">&#9650;&#9660;</button></th>
95
- <th>Avg Pts <button class="sort-btn" data-col="average" data-dir="">&#9650;&#9660;</button></th>
96
- <th>Median Pts <button class="sort-btn" data-col="median" data-dir="">&#9650;&#9660;</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">&#9203;</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>&#10003;</span> Vote submitted &mdash; 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">&mdash;</span>
174
- <span class="stat-label">Average</span>
175
- </div>
176
- <div class="stat-card">
177
- <span class="stat-value" id="stat-median">&mdash;</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&hellip;</div>
187
- </div>
188
- </div>
189
-
190
- </main>
191
-
192
- <footer class="app-footer">
193
- <span id="footer-info">Planning Poker &mdash; Agile Estimation Tool</span>
194
- </footer>
195
-
196
- <script src="./index.js" type="module"></script>
197
- </body>
198
- </html>