Skip to content
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

Add Capmo Extension #16410

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions extensions/capmo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# misc
.DS_Store
raycast-env.d.ts
4 changes: 4 additions & 0 deletions extensions/capmo/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
3 changes: 3 additions & 0 deletions extensions/capmo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Capmo Changelog

## [Initial Version] - {PR_MERGE_DATE}
77 changes: 77 additions & 0 deletions extensions/capmo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<div align="center">
<img
src="./assets/extension-icon.png"
width="100"
/>
<h1>
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.

<p>
<a href="https://www.raycast.com/sven/microsoft-teams">
<img src="https://img.shields.io/badge/Raycast-Store-red.svg"
alt="Find this extension on the Raycast store"
/>
</a>
<img
src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"
alt="PRs welcome!"
/>
<a href="https://github.dev/raycast/extensions/extensions/microsoft-teams">
<img src="https://img.shields.io/badge/Open_in-GitHub.dev-red.svg"
alt="Open in GitHub.dev"
/>
</a>
</p>
</div>

![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
</h2>
<h3>
List Tickets
</h3>
- Display all tickets from non-archived projects.
- Filter by project and search tickets by name, type, category, company, and more.
- Quickly open tickets or associated projects in the browser.
- Update the status of tickets using quick actions (e.g., "In Progress", "Closed").
<h3>
List Projects
</h3>
- Display all non-archived projects.
- Open projects directly in the browser.

<h2>
Actions
</h2>
- Open Ticket: Open a specific ticket in the browser.
- Open Project: Open the associated project for a ticket.
- Update Ticket Status: Change the status of tickets to: In Progress (Cmd + B), Closed (Cmd + G), Open (Cmd + O), Signed Off (Cmd + F)

<h1>
Settings
</h1>
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! 🎉
Binary file added extensions/capmo/assets/extension-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/capmo/assets/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions extensions/capmo/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import eslintPlugin from "@typescript-eslint/eslint-plugin";
import eslintParser from "@typescript-eslint/parser";

export default [
{
files: ["src/**/*.{ts,tsx}"],
languageOptions: {
parser: eslintParser,
parserOptions: {
ecmaVersion: 2023,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
"@typescript-eslint": eslintPlugin,
},
rules: {
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": ["error"],
"react/react-in-jsx-scope": "off", // Modern React doesn't need React in scope
},
},
];
Binary file added extensions/capmo/metadata/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/capmo/metadata/screenshot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/capmo/metadata/screenshot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading