Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,24 @@ jobs:
- run:
name: "Check code formatting"
command: |
sudo -u lightning mix format --check-formatted || touch /tmp/lint_failed
sudo -u lightning mix format --check-formatted || echo "format" >> /tmp/lint_failed
- run:
name: "Check code style with Credo"
when: always
command: |
sudo -u lightning mix credo --strict --all || touch /tmp/lint_failed
sudo -u lightning mix credo --strict --all || echo "credo" >> /tmp/lint_failed
- run:
name: "Check for security vulnerabilities"
when: always
command: |
sudo -u lightning mix sobelow --threshold medium || touch /tmp/lint_failed
sudo -u lightning mix sobelow --threshold medium || echo "sobelow" >> /tmp/lint_failed
- run:
name: "Verify all checks passed"
when: always
command: |
if [ -f /tmp/lint_failed ]; then
echo "One or more lint checks failed"
echo "The following checks failed:"
cat /tmp/lint_failed
exit 1
fi

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ and this project adheres to

### Added

- Channels: a high-performance reverse proxy for forwarding authenticated
requests between systems with full observability. Includes source/sink
authentication, request/response logging, and a searchable history UI.
[#4322](https://github.com/OpenFn/lightning/issues/4322)
- Now saving "final output state" for runs, not just steps. (Important for
workflows with multiple leaf nodes.)
[#4485](https://github.com/OpenFn/lightning/issues/4485)
Expand Down
33 changes: 26 additions & 7 deletions assets/js/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,15 +760,33 @@ export const Copy = {
}

if (text) {
const element = this.el;
navigator.clipboard
.writeText(text)
.then(() => {
if (navigator.clipboard?.writeText) {
navigator.clipboard
.writeText(text)
.then(() => {
this.showCopiedTooltip();
})
.catch(err => {
console.error('Failed to copy text: ', err);
});
} else {
// Fallback for insecure contexts (HTTP over non-localhost)
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.style.position = 'fixed';
textarea.style.opacity = '0';
document.body.appendChild(textarea);
textarea.select();

try {
document.execCommand('copy');
this.showCopiedTooltip();
})
.catch(err => {
} catch (err) {
console.error('Failed to copy text: ', err);
});
} finally {
document.body.removeChild(textarea);
}
}
}
});
},
Expand Down Expand Up @@ -1014,6 +1032,7 @@ export const LocalTimeConverter = {
const textElement = this.el.querySelector('.datetime-text');
if (textElement && displayTime) {
textElement.textContent = displayTime;
textElement.className = 'datetime-text';
}
} catch (err) {
console.error('Failed to convert timestamp to display time:', err);
Expand Down
36 changes: 36 additions & 0 deletions assets/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,41 @@ export default {
{ values }
);
}),
// Embeds Lucide icons (https://lucide.dev) into your app.css bundle
// Only a subset of icons are vendored. Add more SVGs to vendor/lucide/optimized/
//
plugin(function ({ matchComponents, theme }) {
let iconsDir = path.join(
__dirname,
'./vendor/lucide/optimized/24/outline'
);
let values: Record<string, { name: string; fullPath: string }> = {};
fs.readdirSync(iconsDir).forEach(file => {
let name = path.basename(file, '.svg');
values[name] = { name, fullPath: path.join(iconsDir, file) };
});
matchComponents(
{
lucide: ({ name, fullPath }) => {
let content = fs
.readFileSync(fullPath)
.toString()
.replace(/\r?\n|\r/g, '');
return {
[`--lucide-${name}`]: `url('data:image/svg+xml;utf8,${content}')`,
'-webkit-mask': `var(--lucide-${name})`,
mask: `var(--lucide-${name})`,
'mask-repeat': 'no-repeat',
'background-color': 'currentColor',
'vertical-align': 'middle',
display: 'inline-block',
width: theme('spacing.6'),
height: theme('spacing.6'),
};
},
},
{ values }
);
}),
],
} satisfies Config;
17 changes: 17 additions & 0 deletions assets/vendor/lucide/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ISC License

Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part
of Feather (MIT). All other copyright (c) for Lucide are held by Lucide
Contributors 2022.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1 change: 1 addition & 0 deletions assets/vendor/lucide/optimized/24/outline/circle-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading