{"id":28951700,"url":"https://github.com/sparna-git/sparnatural-history","last_synced_at":"2025-06-23T15:36:57.971Z","repository":{"id":287365769,"uuid":"964455668","full_name":"sparna-git/Sparnatural-history","owner":"sparna-git","description":"Sparnatural query history component","archived":false,"fork":false,"pushed_at":"2025-06-11T12:57:23.000Z","size":2394,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T02:07:26.232Z","etag":null,"topics":["sparnatural","sparql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparna-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-11T08:38:58.000Z","updated_at":"2025-06-11T12:57:27.000Z","dependencies_parsed_at":"2025-04-11T11:57:41.498Z","dependency_job_id":"0d5b876a-edab-4238-acd7-b32f9ae96987","html_url":"https://github.com/sparna-git/Sparnatural-history","commit_stats":null,"previous_names":["sparna-git/sparnatural-history"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sparna-git/Sparnatural-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2FSparnatural-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2FSparnatural-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2FSparnatural-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2FSparnatural-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparna-git","download_url":"https://codeload.github.com/sparna-git/Sparnatural-history/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2FSparnatural-history/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261505470,"owners_count":23169047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sparnatural","sparql"],"created_at":"2025-06-23T15:36:54.684Z","updated_at":"2025-06-23T15:36:57.915Z","avatar_url":"https://github.com/sparna-git.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sparnatural-history\nSparnatural query history component\n\n\n## Features Summary\n\n- **Local storage** of stored queries : queries are stored locally in the browser, and persist across sessions\n- **Query summary rendering** each query is displayed in a compact way in the history\n- **Easy integration** : open the modal dialog from any button or link or icon\n- **Favorites support** : Toggle the \"star\" to put queries in favorite and easily retrieve them\n- **Search inside the history** by date range and inside the query structure\n- **Sort the history** by date, type searched entity, or by favorites\n- **Copy, Load, Delete** actions for each saved query\n- **Internationalization** (English/French)\n\n## Internal Components\n\n### `SparnaturalHistoryComponent`\n\nThe main component rendered inside \u003csparnatural-history\u003e. Responsible for:\n\n- Rendering the full history interface\n- Initializing the selected language\n\n### `HistorySection`\n\nHandles all the UI logic for the modal, including:\n\n- Loading and displaying saved queries\n- Applying a custom scrollable summary renderer\n- Favoriting (star icons)\n- Copying to clipboard\n- Deleting entries\n- Filtering by date range with a modal\n- Graceful fallback for missing `specProvider`\n\n### `DateFilterModal`\n\nA modal window triggered by a calendar icon, allowing users to apply a date range filter (`minDate` / `maxDate`) on saved queries.\n\n### `ConfirmationModal`\n\nA confirmation dialog shown before critical actions, such as deleting a query or clearing all non-favorited history entries.\n\n### `SparnaturalHistoryI18n`\n\nLoads translation labels from language files in `/assets/lang/en-Hist.json` or `/fr-Hist.json`.\n\n### `LocalDataStorage`\n\nSingleton for handling browser `localStorage`:\n\n- `getHistory()` — retrieves saved history\n- `saveQuery(queryJson)` — saves a query with date\n- `deleteQuery(id)` — deletes a query\n- `clearHistory()` — clears all\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparna-git%2Fsparnatural-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparna-git%2Fsparnatural-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparna-git%2Fsparnatural-history/lists"}