Git Product home page Git Product logo

add-ons-samples's People

Contributors

andrealeardini avatar asrivas avatar cwlind avatar dependabot[bot] avatar druwynings avatar googleworkspace-bot avatar grant avatar jpoehnelt avatar pierrickvoulet avatar rcanu avatar renovate[bot] avatar sqrrrl avatar tbutter avatar vinay-google avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

add-ons-samples's Issues

formInputs.participants only contains one user

Already filed a bug, but got no answer. (https://issuetracker.google.com/issues/77504617)
Now I even get the same problem on the web, not only on Android.

  1. In an email with 4 participants, keep all users selected in the "Schedule a meeting" card.
    image
  2. Click "Find times"
  3. Looking at the logs, the formInputs.participants shows only one participant
    image
  4. Therefore when then sending the meeting invite, the meeting only has myself (the one participant)

I have seen this consistently on Android, but now it also happens consistently on the Chrome on the desktop.

Click on Setting is raising error _. not defined

Hi, I'm new with Addons

When click on Settings and on Schedule a Meeting I get the same error. I need help because I don't know why. Is any library required?

ReferenceError: _ not defined.
Stack trace
at Settings:115 (cachedPropertiesForUser_)
at Settings:34 (getSettingsForUser)
at ActionHandlers:177
at Main:103 (dispatchActionInternal)
at Main:65 (handleShowSettings)

Code at line 115 in Settings.js:
return _.assign(Object.create(cachedPropertiesPrototype), {
properties: PropertiesService.getUserProperties(),
cache: CacheService.getUserCache()
});

The GIT add on suddenly got disappeared

Hey,
I did all the necessary step to install the add on on Gmail, but when i change the client secret and client id of the git hub account in my script properties, suddenly my add on got disappeared.
If i go to the setting I can still see that the add on is installed , but its not showing in my side pane.
PS I am new to creating add on, any leads will be appreciated.

[Gmail Addon Question] Communication between cards

Hi
I wonder if you can help me here, I read that you can send parameters with actions when building & pushing a new card using the navigation, but what is the best way to send data back to the previous card say when you do popCard()

Thank you
Alex

Meeting-assistant error, The specified time range is empty

I got error by clicking find times button i got this error. Am i did anything wrong here?

GoogleJsonResponseException: The specified time range is empty.

Stack trace
	at Code:33654
	at Code:33612
	at Code:34193
	at Code:34419 (dispatchActionInternal)
	at Code:34391 (dispatchAction)

Here's code from my gulp file to build Code.gs

const gulp = require('gulp');
const exec = require('child_process').exec
const concat = require('gulp-concat');
const clean = require('gulp-clean');

const src = [
	'./src/lib/*/*.js',
	'./src/Views.js',
	'./src/Settings.js',
	'./src/TimePeriod.js',
	'./src/Scheduler.js',
	'./src/MessageUtils.js',
	'./src/DeadlineMonitor.js',
	'./src/ActionHandlers.js',
	'./src/Main.js'
];

gulp.task('build-src', function() {
	return gulp.src(src)
	    .pipe(concat('Code.gs'))
	    .pipe(gulp.dest('./dist'));
});

Doesn't work properly on iPhone (URL: 'https://cataas.com' does not match any of the prefixes whitelisted for use in the add-on.)

In the gmail app on iPhone, when reading an email, clicking the cat-paw icon produces the following error:-

URL: 'https://cataas.com/' does not match any of the prefixes whitelisted for use in the add-on.

It works OK in Chrome on a PC though, suggesting this is a problem with the core iPhone runtime, rather than the script/manifest?

I tried adding this, which didn't fix or change anything:-

  "urlFetchWhitelist": [
    "https://cataas.com/",
    "https://cataas.com/cat",
    "https://cataas.com/cat/says"
  ],

[GitHub Add-on] SyntaxError: Invalid quantifier ?

After doing a git pull and clasp push, I'm getting the error SyntaxError: Invalid quantifier ? when trying to open the add-on. Reverting 7d0f4f2 seems to resolve the issue. I'm not sure what (?<!<) or (?!>) are trying to do, but that seems to be where the error is located.

[SyncRepoSettings bot] - Invalid config file

Failed to validate the config schema at '.github/sync-repo-settings.yaml': [
{
"instancePath": "/permissionRules/1/permission",
"schemaPath": "#/properties/permissionRules/items/properties/permission/enum",
"keyword": "enum",
"params": {
"allowedValues": [
"pull",
"push",
"admin"
]
},
"message": "must be equal to one of the allowed values"
}
]

Schema can be found at https://github.com/googleapis/repo-automation-bots/blob/main/packages/sync-repo-settings/src/schema.json

Clone which script?

Howdy. In your replication instructions, after we're told to use clasp to create the "Meeting Assistant" project, clasp will ask us which kind of project to create
? Clone which script? ❯ standalone docs sheets slides forms webapp api

This isn't specified in the instructions, but it should be. Thanks!

Gulp file not complete

Gulp file for meeting assistant not building real source code it's just build third party dependencies only.

Click on schedule meeting is raising error

Hi,

I am seeing the following issue not sure why. Please help me in resolving it.
An unexpected error occurred
GoogleJsonResponseException: Project 310354644286 is not found and cannot be used for API calls. If it is recently created, enable Calendar API by visiting https://console.developers.google.com/apis/api/calendar.googleapis.com/overview?project=310354644286 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Stack trace
at Settings (Views):24 (getUserTimezone)
at ActionHandlers (Views):33
at Main (Views):103 (dispatchActionInternal)
at Main (Views):53 (handleShowScheduler)

github sample fails to compile

Howdy. I'm not able to replicate the github project. When I attempt to run npm build, I get the following error:
`
FunkBook-Pro:github pdavisjones$ npm run build

[email protected] build /Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github
gulp

fs.js:25
'use strict';
^

ReferenceError: internalBinding is not defined
at fs.js:25:1
at req_ (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/natives/index.js:137:5)
at Object.req [as require] (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/natives/index.js:54:10)
at Object. (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: gulp
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pdavisjones/.npm/_logs/2019-05-16T20_48_36_612Z-debug.log
`

Error

When I use the New V8 JavaScript runtime in AppsScript I get the error
TypeError: CardService.newAction(...).setFunctionName(...).setLoadIndicator(...).setPersistValues is not a function [line: 281, function: buildSearchCard_, file: Code]

When I use the legacy runtime I get the error:
TypeError: Cannot find function setPersistValues in object Action. [line: 278, function: buildSearchCard_, file: Code]

If I remove this function (setPersistValues). Everything works fine.

Simplify github/meeting add-ons

While the structure of the code is useful for large scale add-ons, likely overkill for samples. Simplify the code to improve readability of the add-ons.

Runtime Issue - Questions about deployments

Hello!

I'm trying to build my custom addon with some third party libraries as well. I have followed all the steps pretty well (thank you again for this sample very interesting!).

Unfortunately, when running the addon in my Gmail, google executes the gulp.js :/

Hence my questions:

  • What do we really need to clasp push ? Does google is installing all the nodes modules and running gulp on its side before executing it or do we need to push the folder node_modules and the result of the npm run build ?
  • I tried to do the second point but:
    • When I open the app script console, I see no file that have been pushed (and actually its like its skipping the push completely with there is too many files)
    • When I run npm run build locally, I have no dist folder created (but there is no error).

I'm kind of confused as you can see on the deployment, execution in general of google app script when using third party libraries. Would you be ok to help me on this?

Thank you very much!

Strip <wbr> and other html tags from github link info

Noticed that if a link appears as part of the text of an email instead of in a href attribute it may contain HTML markup. Specifically, gmail may insert <wbr> tags. Users might also apply formatting which could affect things.

Need to update extractGitHubLinksFromText_ to sanitize the extracted strings and strip any HTML markup. This should be compatible with GitHub's naming rules which appear to disallow <> in owner/project names.

[GitHub Add-on] Disconnect flow doesn't work

The Disconnect account flow doesn't work in the GitHub add-on if you don't sign in with another GitHub account.

Repro:

  1. Install the add-on and sign in with a GitHub account.
  2. Go to the Settings screen and click "DISCONNECT ACCOUNT".
  3. When prompted to sign in with another GitHub account, close the add-on.
  4. Open add-on again on another email.

Expected:

The GitHub account is disconnected and you'll be prompted to log in again.

Actual:

The GitHub account isn't disconnected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.