Skip to content

Commit

Permalink
Extension rework
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rN834 authored Jan 25, 2025
1 parent dee8d35 commit 532351e
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 15 deletions.
2 changes: 1 addition & 1 deletion extensions/capmo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Capmo Changelog

## [Initial Version] - {PR_MERGE_DATE}
## [Initial Version] - {PR_MERGE_DATE}
13 changes: 8 additions & 5 deletions extensions/capmo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Capmo
</h1>
Easily manage and interact with projects and tickets from Capmo directly in Raycast. List tickets, update their status, filter projects, and more – all with quick keystrokes.
</br></br>

<p>
<a href="https://www.raycast.com/sven/microsoft-teams">
<img src="https://img.shields.io/badge/Raycast-Store-red.svg"
Expand All @@ -26,9 +26,11 @@ Easily manage and interact with projects and tickets from Capmo directly in Rayc
</p>
</div>

![Screenshot of the "List Projects" command](./metadata/screenshot_3.png)
![Screenshot of the "List Tickets" command](./metadata/screenshot_1.png)
![Actions in the "List Tickets" command](./metadata/screenshot_2.png)
![Screenshot of the "List Projects" command](screenshots/screenshot_3.png)
![Screenshot of the "List Tickets" command](screenshots/screenshot_1.png)
![Actions in the "List Tickets" command](screenshots/screenshot_2.png)

This extension offers the following functionalities:

<h2>
Commands
Expand Down Expand Up @@ -59,16 +61,17 @@ Actions
When starting the extension for the first time it will ask you for two IDs: The **Capmo API TOken** and the **Excluded projects**.

1. Retriving Capmo API Token

- Please open [Accountmanagement](https://app.capmo.de/account/general)
- Create an API Key in the Api-Key Settings
- Copy the Secret Value and store it somewhere safe

2. Excluding Projects

- If you want to exclude projects from the Application to make it faster, you can do so by including them in the settings
- Retrive the project ID by opening a project in Campo and Copy the Project ID from the Url
- Example: https://app.capmo.de/projects/**cdced67e-1cce-11ef-bc14-fb2698a5c2b6**/tickets
- Copy the Value in the settings. Example: Project 1,Project 2
- Copy the Secret Value and store it somewhere safe


Happy ticket management! 🎉
102 changes: 102 additions & 0 deletions extensions/capmo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions extensions/capmo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
],
"dependencies": {
"@raycast/api": "^1.88.4",
"@raycast/utils": "^1.18.1",
"axios": "^1.7.9"
},
"devDependencies": {
Expand Down
32 changes: 32 additions & 0 deletions extensions/capmo/raycast-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/// <reference types="@raycast/api">

/* 🚧 🚧 🚧
* This file is auto-generated from the extension's manifest.
* Do not modify manually. Instead, update the `package.json` file.
* 🚧 🚧 🚧 */

/* eslint-disable @typescript-eslint/ban-types */

type ExtensionPreferences = {
/** Capmo API Token - Your Capmo API Token */
capmoApiToken: string;
/** Excluded Projects - Comma-separated list of project IDs to exclude */
excludedProjects?: string;
};

/** Preferences accessible in all the extension's commands */
declare type Preferences = ExtensionPreferences;

declare namespace Preferences {
/** Preferences accessible in the `list-tickets` command */
export type ListTickets = ExtensionPreferences & {};
/** Preferences accessible in the `list-projects` command */
export type ListProjects = ExtensionPreferences & {};
}

declare namespace Arguments {
/** Arguments passed to the `list-tickets` command */
export type ListTickets = {};
/** Arguments passed to the `list-projects` command */
export type ListProjects = {};
}
18 changes: 9 additions & 9 deletions extensions/capmo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"$schema": "https://json.schemastore.org/tsconfig",
"include": ["src/**/*", "raycast-env.d.ts"], // Ensure it covers all your source files and the Raycast environment typings
"compilerOptions": {
"lib": ["ES2023", "DOM"], // Include DOM for browser-related APIs
"module": "commonjs", // CommonJS for compatibility with Node.js
"target": "ES2022", // Modern target
"strict": true, // Enable strict type checking
"isolatedModules": true, // Required for React's JSX transformations
"esModuleInterop": true, // Enable interop between CommonJS and ESModules
"skipLibCheck": true, // Skip type checking of declaration files
"lib": ["ES2023", "DOM"], // Include DOM for browser-related APIs
"module": "commonjs", // CommonJS for compatibility with Node.js
"target": "ES2022", // Modern target
"strict": true, // Enable strict type checking
"isolatedModules": true, // Required for React's JSX transformations
"esModuleInterop": true, // Enable interop between CommonJS and ESModules
"skipLibCheck": true, // Skip type checking of declaration files
"forceConsistentCasingInFileNames": true, // Enforce consistent casing in imports
"jsx": "react-jsx", // Enable the new JSX transform
"resolveJsonModule": true // Allow importing JSON files as modules
"jsx": "react-jsx", // Enable the new JSX transform
"resolveJsonModule": true // Allow importing JSON files as modules
}
}

0 comments on commit 532351e

Please sign in to comment.