-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Ref/issue 21740 monday oauth #21773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ref/issue 21740 monday oauth #21773
Changes from all commits
bf3e531
2e9055d
68531ed
8c2cabc
38b325d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| import { getColumnOptions } from "../../common/utils.mjs"; | ||
| import monday from "../../monday.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "monday-list-columns", | ||
| name: "List Columns", | ||
| description: "List the columns of a board, including each column's ID, type, and the labels a `status` or `dropdown` column accepts. Use this to discover the column IDs and values required by **Create Item**, **Update Column Values** and **Get Items By Column Value**. [See the documentation](https://developer.monday.com/api-reference/reference/columns#queries)", | ||
| type: "action", | ||
| version: "0.0.2", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Start the new component at version This new component starts at As per coding guidelines, “new components must start at 🤖 Prompt for AI AgentsSources: Coding guidelines, Path instructions |
||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| props: { | ||
| monday, | ||
| boardId: { | ||
| propDefinition: [ | ||
| monday, | ||
| "boardId", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const columns = await this.monday.listColumns({ | ||
| boardId: +this.boardId, | ||
| }); | ||
|
|
||
| if (!columns?.length) { | ||
| throw new Error(`No columns found for board ${this.boardId}. Check that the board ID is correct and that the connected account can access it.`); | ||
| } | ||
|
|
||
| const results = columns.map(({ | ||
| id, title, type, | ||
| }) => ({ | ||
| id, | ||
| title, | ||
| type, | ||
| // Only status/dropdown columns carry labels; undefined for every other type. | ||
| labels: getColumnOptions(columns, id, true), | ||
| })); | ||
|
|
||
| $.export("$summary", `Successfully retrieved ${results.length} column${results.length === 1 | ||
| ? "" | ||
| : "s"}`); | ||
|
|
||
| return results; | ||
| }, | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Use a major version for the removed dynamic input contracts.
These actions remove persisted generated props and require users to provide
columnValuesinstead. Existing workflow configurations will not remain compatible.components/monday/actions/create-subitem/create-subitem.mjs#L11-L11: Change the version to a major release before publishing this schema migration.components/monday/actions/update-column-values/update-column-values.mjs#L15-L15: Change the version to a major release before publishing this schema migration.📍 Affects 2 files
components/monday/actions/create-subitem/create-subitem.mjs#L11-L11(this comment)components/monday/actions/update-column-values/update-column-values.mjs#L15-L15🤖 Prompt for AI Agents
Sources: Coding guidelines, Path instructions