Skip to content

Add story tips PDF link to story ideas form#1028

Merged
maebeale merged 4 commits intocopilot/add-story-categories-populations-v2from
copilot/sub-pr-1027
Feb 15, 2026
Merged

Add story tips PDF link to story ideas form#1028
maebeale merged 4 commits intocopilot/add-story-categories-populations-v2from
copilot/sub-pr-1027

Conversation

Copy link
Contributor

Copilot AI commented Feb 15, 2026

What is the goal of this PR and why is this important?

Replace the hardcoded Cloudinary link with a local seed resource for the "Tips for Sharing Impactful Stories" PDF on the story ideas form. This reduces external dependencies and provides users with helpful guidance when submitting stories.

How did you approach the change?

Form Enhancement

  • Added story tips section at top of story_ideas/_form.html.erb with info icon and PDF link
  • Styled with Tailwind CSS (blue link with hover state)
  • Link opens PDF in new tab

Seed Resources

  • Created lib/tasks/seed_resources.rake to download PDF from Cloudinary and info icon
  • Downloads to /public/documents/tips_for_sharing_impactful_stories.pdf and /public/images/info-icon.png
  • Integrated into db:seed for automatic setup
  • Graceful error handling with fallback instructions for manual download

Documentation

  • Added /public/documents/README.md with setup instructions for both automated and manual download

Anything else to add?

The rake task can be run independently via bundle exec rake seed:resources. Placeholder files are committed to maintain directory structure; actual files are downloaded during setup.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 15, 2026 14:33
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
@maebeale maebeale marked this pull request as ready for review February 15, 2026 14:35
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
@maebeale
Copy link
Collaborator

@copilot store it in assets/help_docs, not documents

Copy link
Contributor Author

Copilot AI commented Feb 15, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • res.cloudinary.com
    • Triggering command: /usr/bin/curl curl -L REDACTED -o public/documents/tips_for_sharing_impactful_stories.pdf (dns block)
  • stories.awbw.org
    • Triggering command: /usr/bin/curl curl -L REDACTED -o public/images/info-icon.png (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add story categories populations v2 Add story tips PDF link to story ideas form Feb 15, 2026
Copilot AI requested a review from maebeale February 15, 2026 14:36
@maebeale maebeale merged commit 3241326 into copilot/add-story-categories-populations-v2 Feb 15, 2026
1 check failed
@maebeale maebeale deleted the copilot/sub-pr-1027 branch February 15, 2026 14:37
Copilot stopped work on behalf of maebeale due to an error February 15, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants