Commit Graph

56 Commits

Author SHA1 Message Date
Peter Stockings
2253c8f7a7 Show execution time in logs screen for http and timer functions 2025-12-02 20:08:56 +11:00
Peter Stockings
b863a5a9ae Fix http logs malformed file 2025-12-02 20:02:59 +11:00
Peter Stockings
bb20146143 Add syntax highlighting for different runtimes in function history for timer & http functions 2025-11-30 00:26:33 +11:00
Peter Stockings
a2367f3ed9 Revert breaking change to http client 2025-11-30 00:06:14 +11:00
Peter Stockings
c0970835ab Add feature to restore script content to a specific version on history page 2025-11-25 15:43:12 +11:00
Peter Stockings
f0bed51b66 Fix http overview template 2025-11-24 09:08:10 +11:00
Peter Stockings
89a17f68ab WIP: Add light/dark theme with toggle in navbar (dark theme styling incomplete - dont care for now) 2025-11-23 22:00:41 +11:00
Peter Stockings
fc494a9355 Improve look of http/timer header component 2025-11-21 11:43:28 +11:00
Peter Stockings
213abbfe93 Add community section where public functions can be viewed 2025-11-21 10:30:14 +11:00
Peter Stockings
2af2cdef0c Add button to expand nested functions 2025-11-19 18:01:04 +11:00
Peter Stockings
c6599c7543 Add badge for public functions and move function link to right 2025-11-19 17:47:18 +11:00
Peter Stockings
00c0d19e3e Update http functions overview page to show functions in searchable nested directory 2025-11-19 17:28:35 +11:00
Peter Stockings
ace9f0a896 Node js runtime adds logs as an array of arrays, whilst python stores it as an array. Adjust logs template to handle both 2025-09-28 23:02:40 +10:00
Peter Stockings
99723b4b6b Add support for python function runtime 2025-09-28 13:32:42 +10:00
Peter Stockings
e115d06691 Add support to switch between deno and nodejs function executor 2025-07-28 15:48:18 +10:00
Peter Stockings
d1f8f825c3 Add anlytics info and search to logs page 2025-07-25 15:46:56 +10:00
Peter Stockings
8f2838f920 Update function history view 2025-07-24 23:00:22 +10:00
Peter Stockings
d65495541f Move LLM logic to seperate route 2025-07-22 20:25:42 +10:00
Peter Stockings
f55f50d0dc Further refactor, still need to cleanup db.py 2025-07-21 23:25:25 +10:00
Peter Stockings
2ec44252bb Move http endpoints into seperate route 2025-07-21 22:05:58 +10:00
Peter Stockings
17457e492e Add version history view for timer functions
- Implement `/history/<function_id>` route in timer routes to fetch and display function versions
- Create new Mithril `DiffView` component for comparing script versions
- Add new history template for timer functions with version comparison
- Include version diff functionality using AceDiff library
- Update header and edit templates to include history URL for timer functions
2025-02-17 19:19:45 +11:00
Peter Stockings
77957a61a3 Add logs view for timer functions
- Create new database table `timer_function_invocations` to track function executions
- Implement `/logs/<function_id>` route in timer routes to fetch and display invocation logs
- Add new logs template for timer functions with detailed invocation information
- Update header templates to include logs URL for timer functions
2025-02-17 00:24:49 +11:00
Peter Stockings
aeb880ed0a Update cancel URL handling in HTTP and timer function templates
- Modify header template to use explicit `cancel_url` parameter
- Add `cancel_url` to new timer and HTTP function templates
- Remove default URL fallback in header template
2025-02-16 20:22:03 +11:00
Peter Stockings
9d48bbd285 Refactor HTTP functions overview and logs pages with improved UI and responsiveness
- Modernize the design of HTTP functions overview and logs pages
- Add more detailed styling with Tailwind CSS
- Improve layout and readability with better typography and spacing
- Add empty state handling for both logs and functions lists
- Enhance visual hierarchy and interaction states
2025-02-14 22:22:27 +11:00
Peter Stockings
5ec8bba9e8 Refactor HTTP function editor with Mithril components and new API endpoints
- Add new Mithril components for editor (editor.js), response view (responseView.js), and alerts (alert.js)
- Create new API endpoints for creating, updating, and deleting HTTP functions
- Update templates to use new Mithril editor component
- Improve header navigation with more consistent styling and active state indicators
- Remove old edit form route and template
- Add new dedicated editor route and template

cursor.ai
2025-02-14 00:40:45 +11:00
Peter Stockings
bc4a1ae9a6 Show original script as well, still need to add revert/switch version functionality 2024-05-18 22:46:44 +10:00
Peter Stockings
2b4ca571ca Add in version history for http functions
and also load .env in dev mode
2024-05-18 21:55:11 +10:00
Peter Stockings
b4c67d8346 Add versions for http_functions, whenever script is updated a new version is logged. 2024-04-06 19:49:46 +11:00
Peter Stockings
d25e8bb182 Fix dashboard -> http functions over view page not working on refresh (was sending html partial for htmx) 2024-03-29 21:40:37 +11:00
Peter Stockings
163a1dbc5f Disable send request button and display animation when request is already started 2024-03-29 20:19:52 +11:00
Peter Stockings
c2cf448528 For postman-like http client change default tab for response view to Browser Preview 2024-03-29 19:57:23 +11:00
Peter Stockings
e92a1ad69d Limit decimal places length of response time in ms 2024-03-29 19:07:17 +11:00
Peter Stockings
db191d7cf5 Format response time & size 2024-03-29 18:44:32 +11:00
Peter Stockings
6044d2e00b For postman-like mithril.js driven client made the following minor changes
* Display response status, size, time
* Toggle between response body (text), Browser preview (HTML), & headers
2024-03-29 18:38:48 +11:00
Peter Stockings
df458c2738 Use mithril.js to make postman like client (Previously was static html with a sprinkling of js) 2024-03-28 20:49:49 +11:00
Peter Stockings
1a496d2441 Fix issue where on page refresh when on function edit/new sub pages you would be redirected back to dashboard 2024-03-27 14:03:52 +11:00
Peter Stockings
48b013c1f4 Minor styling update for functions overview & edit/new pages to make it more usable after landing page changes, also started to work on making pages refreshable through htmx hx-push-url 2024-03-27 13:08:29 +11:00
Peter Stockings
c6554cf399 Create http function header template and move all http function related templates into same directory 2023-12-22 14:36:00 +11:00
Peter Stockings
37b9e10914 Add link to logs from edit page and vice versa for http functions, QOL change 2023-12-21 19:11:24 +11:00
Peter Stockings
19cebc0f45 Add option to toggle logging of request/response for http functions, this has been added to due storage capacity concerns 2023-12-21 14:45:25 +11:00
Peter Stockings
7c7dbae05a Add option to make http functions private (Require authentication, currently just redirects to login page; Should look into cookie + JWT + api key) 2023-12-21 14:03:25 +11:00
Peter Stockings
8d38c39604 Ensure you can only view/edit http functions created by the currently logged in user 2023-12-20 22:57:39 +11:00
Peter Stockings
223afec05d Refactor all function editor front end html + js into a single jinja template (also slight improvement to look of response/logs) 2023-12-19 21:20:11 +11:00
Peter Stockings
4b64430022 Add refresh view button on edit page, found it useful for testing to see updates to environment info 2023-12-19 19:10:58 +11:00
Peter Stockings
c30c666caf Update remaining editor maxLines to 100 from 15 2023-12-18 23:06:13 +11:00
Peter Stockings
17f98195a2 Update maxLines to 100 for all ace editors, this auto sizes the editors 2023-12-18 22:39:21 +11:00
Peter Stockings
4b0c356cda Add link to selected http function from edit/logs views. Also remove min number of lines from environment info ace editor 2023-12-18 22:18:31 +11:00
Peter Stockings
71ab2c3b6b Add refresh button on logs page 2023-12-18 20:57:57 +11:00
Peter Stockings
7bde81c89a Make logs table more responsive (Still needs alot of work - probably need to make accordion) 2023-12-18 20:44:24 +11:00
Peter Stockings
6f46198693 Add ability to see history of http functions invocations 2023-12-18 20:33:58 +11:00