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

[API Feature Request] Show Alerts #48

Closed
SvenTiigi opened this issue Oct 15, 2021 · 1 comment
Closed

[API Feature Request] Show Alerts #48

SvenTiigi opened this issue Oct 15, 2021 · 1 comment
Labels
api Issues related to API feature request New feature or improvement

Comments

@SvenTiigi
Copy link
Contributor

SvenTiigi commented Oct 15, 2021

Describe the feature and the current behavior/state.

An API to display Alerts to the user just like the System Extensions does when rebooting the system.

Bildschirmfoto 2021-10-15 um 19 22 27

Will this change the current api? How?

As this is an API feature request only additions would happen to the Raycast API.
The implementation could be based on the Toast API.

Example:

// Initialize a new Alert
const alert = new Alert({
  icon: Icon.Finder,
  title: 'Restart system',
  message: 'Are you sure you want to restart your computer now?',
  buttons: [
    {
      title: 'Cancel',
      style: AlertButtonStyle.cancel,
      action: () => {
        // Perform cancel action
      }
    },
    {
      title: 'Restart',
      style: AlertButtonStyle.destructive,
      action: () => {
        // Perform restart action
      }
    }
  ]
})

// Show Alert
await alert.show();

Additionally, adding a convenience function showAlert would be beneficial as the Toast API has an equivalent with showToast

Who will benefit with this feature?

Developers could add Alerts to get the user confirmation before executing a certain function for example a destructive action like deleting an entry.

@SvenTiigi SvenTiigi added api Issues related to API feature request New feature or improvement labels Oct 15, 2021
@PitNikola
Copy link
Member

Will certainly happen at some point. Either as free form API to show alerts or as attribute in actions to show confirmation popup.

@fe9lix fe9lix closed this as completed Dec 17, 2021
Parajulibkrm added a commit to Parajulibkrm/raycast-extensions that referenced this issue Nov 9, 2024
- initial features
- Merge pull request raycast#103 from axyut/port-to-oslo
- fix: expire session conditional
- feat: completely removed lucia-auth dependency
- minor changes
- fix: 🐛 no day selection on !isSameMonth
- feat: ✨ internal package for query
- feat: ✨ types package
- fix: minor
- refactor
- deps: change nepali date package
- backend: auth, google calendar integration
- Basic UI components
- minor fixes
- Added raycast initial
- feat: ✨ Migrated to v51 for expo
- initial commit
- added gitignore
- ignore turbo
- Added gitignores
- cleanup
- feat: ✨ Added announcement
- typo
- fix: 💄 view all events button not spanning full width
- chore: bump date package version
- fix: set fixed height of day cells
- Merge pull request raycast#64 from nabinkdl/main
- Update About.tsx
- Merge pull request raycast#60 from pandeysubash404/event-display
- Merge pull request raycast#61 from yuvrajdahal/main
- Merge pull request raycast#63 from PoskOfficial/fix/issue62
- fix: 🐛 app crashing on switching months
- Synchorization issue with previous code
- English date converter crashing fixed
- English date converter crashing fixed
- fix: 🚑 Update user logic on signin bug fix
- Updated to display today\'s date
- fix: 🐛 Update db information on sign in
- Merge pull request raycast#59 from pandeysubash404/event-display
- chore: 🐛 Fixed Positioning of Relative Date on Homepage
- chore: ♻️ Made the event string logic declarative
- conveys the logic in a more declarative manner
- adjustments to the relativeTimeFromElapsed function
- fixed event issue and hide user data from console
- Fixed the issue related event display
- Merge pull request raycast#57 from pandeysubash404/fix-date-issue
- chore: ➖ Removed Jest Dev Dependency
- Removed package-lock.json and added pnpm-lock.yaml as requested
- Remove pnpm dependency as requested by repository owner
- Fix date issue in input field
- Changed readme
- Create LICENSE
- Updated type definitions
- Merge pull request raycast#52 from nabin-kandel/main
- Merge branch \'PoskOfficial:main\' into main
- chore: ✨ updated screenshots
- ScreenShot Updated
- Merge pull request raycast#50 from PoskOfficial/develop
- fix: 🐛 page reloading in mobile view
- Merge pull request raycast#49 from nabin-kandel/main
- Added Open graph Description
- Update Readme.md
- Added og image
- Merge pull request raycast#48 from nabin-kandel/main
- Added banner image
- Merge pull request raycast#47 from PoskOfficial/fix_create_event_date
- style: 💄 changed footer border color
- fix: 🐛 event end and start date off by 1
- Added missing lock files
- Added missing lock files
- Merge pull request raycast#46 from PoskOfficial/develop
- chore: ✏️ updated translation values
- chore: ⚰️ removed unused translations
- feat: ✨ added footer
- moved imports
- Deleted large file
- Added update logic
- chore: 🚧 Added new SW
- Merge pull request raycast#45 from PoskOfficial/datepicker_fix
- style: 💄 fixed spinner\'s wrong positioning
- fix: 🐛 month date picker value offset by -1
- fix: 🐛 corrected photo url
- fix: 🐛 Fixed User Query issue
- fix: 🐛
- feat: 🐛 Added offline support to react query
- Added calendar picker to event creation modal
- fix: 🐛 Fixed width issues in homepage
- Removed unused param
- Made time field required
- fix: 🐛 Removed unnecessary console logs
- fix: 🐛 Fixed some UI Bugs
- Added missing adhik to english translation of chandrama
- fix: ⚰️ Removed redundant code
- fix: 🐛 Fixed Spinner Size
- perf: ⚡ Refactored for performance and readability
- Merge pull request raycast#43 from PoskOfficial/dark_mode
- style: 💄 added dark mode to the event dialogue
- feat: ✨ Added Analytics to install btn
- feat: ✨ added access role to events
- feat: ✨ Added endpoint to get calendar list
- Merge pull request raycast#42 from PoskOfficial/dark_mode
- fix: 💚 fixed build removing unused imports
- Merge branch \'main\' into dark_mode
- feat: ✨ added styles for dark mode
- feat: ✨ Added support for multiple calendars on backend
- feat: ✨ Added Analytics
- Merge pull request raycast#41 from PoskOfficial/nischal
- Merge branch \'nischal\' of https://github.com/PoskOfficial/Nepali-calendar-web into nischal
- fix: 🐛 fixed minor bug during language translation in dropdown
- fix language issue
- Merge remote-tracking branch \'origin/main\' into
- changes in translation files
- js to ts file
- Removed unused files
- Merge remote-tracking branch \'origin/main\' into nischal
- feat: ✨ Stored Dark Mode setting in local storage
- spinner in upcoming events page
- hide language change buttons
- feat: 🚧 added date difference string to single upcoming event, and setup language translation for date converter page
- Fixed ts issues in i18next
- Fixed Hamburger color
- Added Dark Mode Strategy to tailwind
- Refactored
- Bug fixes
- Added contact details in about page
- feat: ✨ Added credits in About Page
- bug fixes
- docs: 📝 Changed translation of Home
- fix: 🐛 Fixed Crash on clear
- Merge pull request raycast#40 from PoskOfficial/user_settings_disclosure
- refactor: ♻️ used higher quality icon for sign in with google
- refactor: ♻️ used sign in with google icon instead of text
- feat: ✨ added a disclosure to switch languages
- Added missing lock file
- Merge branch \'main\' of https://github.com/PoskOfficial/Nepali-calendar-web
- Added about page
- fix: ✨ Increased cookie life
- Merge pull request raycast#39 from PoskOfficial/nischal
- refactor: 🚚 moved useLanguage to helper and renamed useUser
- fix: 💚 removed unused imports, changed useLangauge name
- Merge remote-tracking branch \'origin/main\' into nischal
- feat: 🚧 added uselangauge hook,
- calendar date , reminder text and upcoming
- Merge pull request raycast#38 from poudelsanchit/main
- Merge branch \'main\' into pr/poudelsanchit/38
- Fix some linting errors
- fix: 🐛 Fixed no update on logout
- feat: ✨ Added Install Toaster Popup
- feat: ✨ Add PWA Install Button
- Added app shortcuts
- feat: ✨ Added Screenshots on install screen
- feat: 🐛 Added support for offline first in react query
- feat: ✨ DateConverter
- feat: ✨ Cached api response
- fix: 🐛 Fixed No event fetched on month change
- Bug fixes
- Merge pull request raycast#37 from PoskOfficial/add_react_query
- fix: 🩹 checked for loading state for rendering events list
- fix: ⚰️ removed unused imports
- Merge branch \'main\' into add_react_query
- fix: 🐛 off by 1 error in chandrama
- feat: ✨ added react query
- Added new logo
- feat: 🚧 progressed with the feature
- docs: 📝 Added Fork and setup instructions
- feat: 🚧 language translation
- Merge pull request raycast#36 from PoskOfficial/feat_nepali_date_picker
- Merge branch \'main\' into feat_nepali_date_picker
- fix: 🐛 next month to the selection being selected
- Merge branch \'feat_nepali_date_picker\' of github.com:PoskOfficial/Nepali-calendar-web into feat_nepali_date_picker
- fix: 🐛 end and start time, timezone error
- added node modules to gitignore
- Merge pull request raycast#35 from PoskOfficial/nischal
- Merge branch \'main\' into nischal
- added gitignore
- chore: Added single command to install both frontend and backend
- feat: ✨ added nepali date picker
- feat: ✨ added a popup modal for each reminder
- popup modal for single event
- Merge pull request raycast#34 from PoskOfficial/google_cal_compatible
- refactor: ♻️ made start and end date logic declarative
- fix: 🐛 multi day all day events not showing up
- Merge remote-tracking branch \'origin/main\' into nischal
- feat: 🚧 events popup
- feat: ✨ event date time compatible with google calendar
- feat: ✨ Added Delete Event Route
- feat: ✨ Added event background sync
- Merge pull request raycast#14 from PoskOfficial/nischal
- fixes in calendar.tsx
- feat: ✨ Added event color dot
- Added Event Creation and List
- feat: ✨ Fetched Event List from backend
- Added build step to docs
- docs: 📝 Added Readme
- added lib to gitignore
- feat: 🌱 Added missing files
- Added deta space configuration
- Merge branch \'main\' of https://github.com/Parajulibkrm/calendar-backend
- moved to backend folder
- moved files to frontend/
- feat: ✨ Added Google Authentication
- feat: ✨ Added Privacy Policy
- Merge pull request raycast#13 from nirajacharyaa/main
- Merge branch \'main\' into main
- fix: 🐛 Escaped APi Route from Client side cache
- feat: ✨ Changed hashrouter to browserrouter
- Fixed auth links cache issue
- fix: 🐛 upcoming events and minor styles
- Added Sign In
- Styling bug fixes
- Added a navbar
- Merge pull request raycast#12 from nirajacharyaa/view-added-events
- fix: 💚 build fix
- feat: ✨ user events modal and view events
- added .env to giitignore
- initial commit
- refactor: 🔥 Removed image for floating action button
- Merge pull request raycast#11 from PoskOfficial/popupmodal
- Reminder popup modal for indivdual day
- Merge branch \'main\' of https://github.com/PoskOfficial/Nepali-calendar-web
- added reminder popup
- feat: 🐛 fixed off by one error
- feat: ✨ Added upcoming events page. credit: @headshigh
- feat: ✨ Added Multiple Event List for each day
- Merge pull request raycast#10 from PoskOfficial/pwa-setup
- chore: 🐛 Fixed PWA issue
- chore: ✨ Added PWA configuration
- Merge pull request raycast#8 from nirajacharyaa/load_calendar_data
- fix: 🐛 Bug Fixes
- fix: minor changes
- Update issue templates
- Update issue templates
- Revert "Merge branch \'main\' into load_calendar_data"
- Merge branch \'main\' into load_calendar_data
- fix: events dots
- minor fixes
- Bug fixes
- fix: 🐛 Fixed off by one error
- memoized
- set selected day to today
- Merge pull request raycast#7 from PoskOfficial/nischal
- ts error fix
- lockfileversion
- improvements
- chore: loaded calendar data
- upcoming events page incomplete
- Merge branch \'main\' of https://github.com/PoskOfficial/Nepali-calendar-web
- chore: 🍱 Added Calendar Files
- Update issue templates
- fixed type warnings
- chore: 🎉 Initial Commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to API feature request New feature or improvement
Projects
None yet
Development

No branches or pull requests

3 participants