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

chore: bulk-action-app #15

Merged
merged 27 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7f02572
chore: bulk-action-app
julianiff Oct 16, 2024
a0a71e6
chore: update pnpm-lock
julianiff Oct 21, 2024
b3b8e34
List bulk-selected file names with extensions, add find & replace markup
marguslant0 Oct 23, 2024
8321044
Reduce indentation
marguslant0 Oct 23, 2024
3144d85
Rename query
marguslant0 Oct 23, 2024
138cb35
Rename images to assets
marguslant0 Oct 23, 2024
96d8e93
Rename images to assets
marguslant0 Oct 23, 2024
e48927b
Disable fields until assets are fetched
marguslant0 Oct 23, 2024
2e50dd0
Implement highlighting
marguslant0 Oct 23, 2024
575e2fe
Show result count
marguslant0 Oct 23, 2024
8f0b1ff
Enable renaming when there are matches
marguslant0 Oct 23, 2024
3617ad5
Query also for asset id
marguslant0 Oct 23, 2024
63a0154
Add asset update mutation
marguslant0 Oct 24, 2024
f2e76ed
Quantify nouns and memoize appBridge
marguslant0 Oct 24, 2024
cffc8f5
Update surfaces in manifest
marguslant0 Oct 24, 2024
0b2f64e
Add 'Match case' toggle
marguslant0 Oct 29, 2024
73461b2
Allow more file types
marguslant0 Oct 29, 2024
2543563
Restrict content height and make it scrollable
marguslant0 Oct 31, 2024
2d5288b
Adjust allowed types
marguslant0 Oct 31, 2024
116794a
Adjust extensions
marguslant0 Oct 31, 2024
0b3b24d
Add border
marguslant0 Nov 4, 2024
5661bcf
Chunk by 100 ids
marguslant0 Nov 4, 2024
7ee192d
Update key
marguslant0 Nov 4, 2024
4481234
Remove console.log
marguslant0 Nov 4, 2024
487b8cb
chore: rounded box and 2/3 width
julianiff Nov 15, 2024
93b21f9
chore: update readme
julianiff Nov 15, 2024
0433ec9
chore: update readme
julianiff Nov 15, 2024
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Welcome to the Brand SDK Apps Code Samples repository! Here, you'll find a serie
- [**Secure Third-Party Request**](https://github.com/Frontify/sdk-apps-code-examples/tree/main/examples/secure-third-party-request){:target="_blank"}: A sample app that demonstrates how to securely request third-party services using our SDK.
- [**App with user state example**](https://github.com/Frontify/sdk-apps-code-examples/tree/main/examples/app-with-state){:target="_blank"}: A sample app that demonstrates how to use the userState.
- [**App Settings Example**](https://github.com/Frontify/sdk-apps-code-examples/tree/main/examples/app-settings){:target="_blank"}: A simple example of a Hello World app using `settings.ts` to customize app behavior.
- [**Bulk Action Surface**](https://github.com/Frontify/sdk-apps-code-examples/tree/main/examples/bulk-actions-app){:target="_blank"}: An App that shows how the Bulk Actions Surface can be used.

Each example is accompanied by detailed documentation and comments within the code to help you understand how to utilize our SDK effectively. Whether you're just getting started or looking to implement specific features, these samples will guide you through the process.

Expand Down
25 changes: 25 additions & 0 deletions examples/bulk-actions-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.localdist
.idea
.vscode

# Editor directories and files
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.secret.json
5 changes: 5 additions & 0 deletions examples/bulk-actions-app/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true
}
4 changes: 4 additions & 0 deletions examples/bulk-actions-app/.secret-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"THIRD_PARTY_API_KEY": 1,
"__DONT_COMMIT_THIS_FILE_WITH_TOKENS__": true
}
43 changes: 43 additions & 0 deletions examples/bulk-actions-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Hello World
This is a simple example of a Hello World app using React and Tailwind.
julianiff marked this conversation as resolved.
Show resolved Hide resolved

## Information

This app is the basic example to get you started with our platform. Even though it's simple, it comes pre-configured with our platform fonts, design system components, and styles. This ensures that you have a consistent look and feel across the application, adhering to our design standards right from the start.

- **Platform Fonts:** The app is set up to use our standard fonts, ensuring typography consistency.
- **Design System Components and Styles:** The app includes [Fondue](https://fondue-components.frontify.com/), Frontify design system, making it easy to build complex UIs with a unified design language.

For more details on how to customize and extend this app, please refer to the [documentation](https://developer.frontify.com/).

### Requirements:

- Node 20
- Access to a Frontify Instance.

### Setup
1. Install the dependencies
```
npm install
```
Or
```
pnpm install
```
2. Serve the app
```
npm run serve
```
Or
```
pnpm serve
```
3. Go to your Frontify Instance

## Manifest Configuration

The `manifest.json` file is a crucial part of your app setup. It allows your app to control where it surfaces within the platform. Your app can appear in various location, this app for example is only visible for the asset Bulk Actions.

Additionally, the `manifest.json` file enables you to specify the types of files your app can work with formats like jpg, png, and more.

For detailed information on configuring the `manifest.json` file, please refer to our [documentation](https://developer.frontify.com/).
28 changes: 28 additions & 0 deletions examples/bulk-actions-app/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
);
17 changes: 17 additions & 0 deletions examples/bulk-actions-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Frontify Sample App</title>
</head>
<body>
<div id="root"></div>
<script type='module'>
import module from '/src/index.ts';
import {renderReactApp} from '@frontify/app-bridge-app';

renderReactApp(module);
</script>
</body>
</html>
Loading